mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
lst: escape mnemonics in changelist names
This commit is contained in:
+1
-1
@@ -345,7 +345,7 @@ public class SimpleLocalChangeListDiffViewer extends SimpleDiffViewer {
|
||||
protected String getText(@NotNull List<MySimpleDiffChange> selectedChanges) {
|
||||
if (!selectedChanges.isEmpty() && ContainerUtil.and(selectedChanges, change -> !change.isFromActiveChangelist())) {
|
||||
String shortChangeListName = StringUtil.trimMiddle(myChangelistName, 40);
|
||||
return String.format("Move to '%s' Changelist", shortChangeListName);
|
||||
return String.format("Move to '%s' Changelist", StringUtil.escapeMnemonics(shortChangeListName));
|
||||
}
|
||||
else {
|
||||
return ActionsBundle.message("action.ChangesView.Move.text");
|
||||
|
||||
@@ -608,7 +608,7 @@ class ChangelistsLocalLineStatusTracker(project: Project,
|
||||
private inner class MoveToChangeListAction(editor: Editor, range: Range, val mousePosition: Point?, val changelist: LocalChangeList)
|
||||
: RangeMarkerAction(editor, range, null) {
|
||||
init {
|
||||
templatePresentation.text = StringUtil.trimMiddle(changelist.name, 60)
|
||||
templatePresentation.setText(StringUtil.trimMiddle(changelist.name, 60), false)
|
||||
}
|
||||
|
||||
override fun isEnabled(editor: Editor, range: Range): Boolean = range is LocalRange
|
||||
|
||||
Reference in New Issue
Block a user