Bug 206815 - Need the Navigate-> Show In contribution moved to a command
Summary: Need the Navigate-> Show In contribution moved to a command
Status: RESOLVED DUPLICATE of bug 182018
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: 3.4   Edit
Assignee: Paul Webster CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 173649
Blocks:
  Show dependency tree
 
Reported: 2007-10-18 16:16 EDT by Tod Creasey CLA
Modified: 2008-03-31 09:22 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tod Creasey CLA 2007-10-18 16:16:53 EDT
20071016

The Navigate-> Show In contribution is used in a pile of places (like the markers views) and we need a command defined for it so that we use it in a commands only story.

Here is where we do this internally in WorkbenchActionBuilder#createNavigateMenu()

 menu.add(new Separator(IWorkbenchActionConstants.SHOW_EXT));
        {

            MenuManager showInSubMenu = new MenuManager(IDEWorkbenchMessages.Workbench_showIn, "showIn") { //$NON-NLS-1$
                public String getMenuText() {
                    String result = super.getMenuText();
                    if (showInQuickMenu == null) {
						return null;
					}
                    String shortCut = showInQuickMenu.getShortCutString();
                    if (shortCut == null) {
						return result;
					}
                    return result + "\t" + shortCut; //$NON-NLS-1$
                }
            };
            showInSubMenu.add(ContributionItemFactory.VIEWS_SHOW_IN
                    .create(getWindow()));
            menu.add(showInSubMenu);
        }
Comment 1 Markus Keller CLA 2008-01-11 05:45:26 EST
Sounds like the same as bug 182018.
Comment 2 Paul Webster CLA 2008-01-11 07:56:41 EST

*** This bug has been marked as a duplicate of bug 182018 ***