diff options
author | Michael Keppler | 2018-11-11 11:32:11 +0000 |
---|---|---|
committer | Alexander Kurtakov | 2018-11-16 21:43:54 +0000 |
commit | b7babca632f2b16932f56641a11200100b962515 (patch) | |
tree | 8758e75e6930db17bfa1722b964f260a6e69bff4 | |
parent | 0354d56031725ffdb9839e02c38de9c1a4f410c3 (diff) | |
download | eclipse.platform.ui-b7babca632f2b16932f56641a11200100b962515.tar.gz eclipse.platform.ui-b7babca632f2b16932f56641a11200100b962515.tar.xz eclipse.platform.ui-b7babca632f2b16932f56641a11200100b962515.zip |
Bug 541007 - Use icon for "Open perspective" menuI20181118-0600I20181117-1800I20181117-0600
Same icon as in the "Open perspective" toolbar button.
Change-Id: Ib5dbafcfa439122c00772292abeac4b9b392a66e
Signed-off-by: Michael Keppler <Michael.Keppler@gmx.de>
2 files changed, 5 insertions, 2 deletions
diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/WorkbenchActionBuilder.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/WorkbenchActionBuilder.java index c9277ad1a63..5746e0d33b7 100644 --- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/WorkbenchActionBuilder.java +++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/WorkbenchActionBuilder.java @@ -65,6 +65,8 @@ import org.eclipse.ui.handlers.IHandlerService; import org.eclipse.ui.ide.IDEActionFactory; import org.eclipse.ui.ide.IIDEActionConstants; import org.eclipse.ui.internal.IPreferenceConstants; +import org.eclipse.ui.internal.IWorkbenchGraphicConstants; +import org.eclipse.ui.internal.WorkbenchImages; import org.eclipse.ui.internal.WorkbenchMessages; import org.eclipse.ui.internal.WorkbenchPlugin; import org.eclipse.ui.internal.handlers.IActionCommandMappingService; @@ -710,7 +712,8 @@ public final class WorkbenchActionBuilder extends ActionBarAdvisor { // 'Open Perspective' menu entry String openText = IDEWorkbenchMessages.Workbench_openPerspective; - MenuManager changePerspMenuMgr = new MenuManager(openText, "openPerspective"); //$NON-NLS-1$ + MenuManager changePerspMenuMgr = new MenuManager(openText, + WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_ETOOL_NEW_PAGE), "openPerspective"); //$NON-NLS-1$ IContributionItem changePerspMenuItem = ContributionItemFactory.PERSPECTIVES_SHORTLIST.create(getWindow()); changePerspMenuMgr.add(changePerspMenuItem); menu.add(changePerspMenuMgr); diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/actions/ContributionItemFactory.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/actions/ContributionItemFactory.java index 6b2e61b2284..dcde358c72f 100644 --- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/actions/ContributionItemFactory.java +++ b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/actions/ContributionItemFactory.java @@ -210,7 +210,7 @@ public abstract class ContributionItemFactory { * promising perspectives and an "Other" subitem. Selecting * one of the items makes the corresponding perspective active. Should a * new perspective need to be opened, a workbench user preference controls - * whether the prespective is opened in the active window or a new window. + * whether the perspective is opened in the active window or a new window. * This action dynamically maintains the perspectives shortlist. */ public static final ContributionItemFactory PERSPECTIVES_SHORTLIST = new ContributionItemFactory( |