Merge remote-tracking branch 'origin/master'

This commit is contained in:
Dmitry Batkovich
2015-10-15 14:51:34 +03:00
2 changed files with 7 additions and 3 deletions
@@ -145,18 +145,19 @@ public class PositionPanel extends EditorBasedWidget implements StatusBarWidget.
SelectionModel selectionModel = editor.getSelectionModel();
int caretCount = editor.getCaretModel().getCaretCount();
if (caretCount > 1) {
message.append(caretCount).append(" carets");
message.append(UIBundle.message("position.panel.caret.count", caretCount));
}
else {
if (selectionModel.hasSelection()) {
int selectionStart = selectionModel.getSelectionStart();
int selectionEnd = selectionModel.getSelectionEnd();
if (selectionEnd > selectionStart) {
message.append(selectionEnd - selectionStart).append(" chars");
message.append(UIBundle.message("position.panel.selected.chars.count", selectionEnd - selectionStart));
int selectionStartLine = editor.getDocument().getLineNumber(selectionStart);
int selectionEndLine = editor.getDocument().getLineNumber(selectionEnd);
if (selectionEndLine > selectionStartLine) {
message.append(", ").append(selectionEndLine - selectionStartLine + 1).append(" lines");
message.append(", ");
message.append(UIBundle.message("position.panel.selected.lines.count", selectionEndLine - selectionStartLine + 1));
}
message.append(" ");
}
@@ -72,6 +72,9 @@ memory.usage.panel.statistics.message=Allocated heap size: {0}M Used: {1}M
memory.usage.panel.message.text={0,number,####} of {1,number,####}M
go.to.line.command.name=Go to Line
go.to.line.command.double.click=Click to go to line
position.panel.caret.count={0} carets
position.panel.selected.chars.count={0} chars
position.panel.selected.lines.count={0} lines
popup.hints.panel.click.to.configure.highlighting.tooltip.text=Click to configure highlighting for this file
popup.hints.panel.click.to.configure.profile.text=Click to configure inspection profiles
read.only.attr.panel.double.click.to.toggle.attr.tooltip.text=Click to toggle the read-only attribute