Skip to content

Commit 09eea87

Browse files
orionllakurtakov
authored andcommitted
Avoid "null" in "Show In" menu when there is no key binding
1 parent 6a3eb35 commit 09eea87

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bundles/org.eclipse.ui.navigator.resources/src/org/eclipse/ui/internal/navigator/resources/actions/ShowInActionProvider.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,6 @@ private String getShowInMenuLabel() {
4545
? bindingService
4646
.getBestActiveBindingFormattedFor(IWorkbenchCommandConstants.NAVIGATE_SHOW_IN_QUICK_MENU)
4747
: ""; //$NON-NLS-1$
48-
return WorkbenchNavigatorMessages.ShowInActionProvider_showInAction_label + '\t' + keyBinding;
48+
return WorkbenchNavigatorMessages.ShowInActionProvider_showInAction_label + (keyBinding != null ? '\t' + keyBinding : ""); //$NON-NLS-2$
4949
}
50-
}
50+
}

0 commit comments

Comments
 (0)