mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-29 09:47:50 +08:00
coordinates_system.md: Replace StringBuilder with string concatenation
This commit is contained in:
parent
307ef13711
commit
29962a4e05
@ -34,10 +34,9 @@ public class EditorAreaIllustration extends AnAction {
|
|||||||
VisualPosition visualPos = primaryCaret.getVisualPosition();
|
VisualPosition visualPos = primaryCaret.getVisualPosition();
|
||||||
int caretOffset = primaryCaret.getOffset();
|
int caretOffset = primaryCaret.getOffset();
|
||||||
// Build and display the caret report.
|
// Build and display the caret report.
|
||||||
StringBuilder report = new StringBuilder(logicalPos.toString() + "\n");
|
String report = logicalPos.toString() + "\n" + visualPos.toString() + "\n" +
|
||||||
report.append(visualPos.toString() + "\n");
|
"Offset: " + caretOffset;
|
||||||
report.append("Offset: " + caretOffset);
|
Messages.showInfoMessage(report, "Caret Parameters Inside The Editor");
|
||||||
Messages.showInfoMessage(report.toString(), "Caret Parameters Inside The Editor");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user