Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 266839 | Differences between
and this patch

Collapse All | Expand All

(-)Eclipse UI/org/eclipse/ui/IWorkbenchCommandConstants.java (+17 lines)
Lines 275-304 Link Here
275
     */
275
     */
276
    public static final String NAVIGATE_SHOWIN = "org.eclipse.ui.navigate.showIn"; //$NON-NLS-1$
276
    public static final String NAVIGATE_SHOWIN = "org.eclipse.ui.navigate.showIn"; //$NON-NLS-1$
277
277
278
    /**
279
     * Id for command "Show In" in category "Navigate"
280
     * (value is <code>"org.eclipse.ui.navigate.showInQuickMenu"</code>).
281
     */
282
    public static final String NAVIGATE_SHOWINQUICKMENU = "org.eclipse.ui.navigate.showInQuickMenu"; //$NON-NLS-1$
283
278
    // project category
284
    // project category
279
    
285
    
280
    /**
286
    /**
281
     * Id for command "Build All" in category "Project".
287
     * Id for command "Build All" in category "Project".
288
     * (value is <code>"org.eclipse.ui.project.buildAll"</code>).
282
     */
289
     */
283
    public static final String PROJECT_BUILDALL = "org.eclipse.ui.project.buildAll"; //$NON-NLS-1$
290
    public static final String PROJECT_BUILDALL = "org.eclipse.ui.project.buildAll"; //$NON-NLS-1$
284
291
285
    /**
292
    /**
286
     * Id for command "Build Project" in category "Project".
293
     * Id for command "Build Project" in category "Project".
294
     * (value is <code>"org.eclipse.ui.project.buildProject"</code>).
287
     */
295
     */
288
    public static final String PROJECT_BUILDPROJECT = "org.eclipse.ui.project.buildProject"; //$NON-NLS-1$
296
    public static final String PROJECT_BUILDPROJECT = "org.eclipse.ui.project.buildProject"; //$NON-NLS-1$
289
297
290
    /**
298
    /**
291
     * Id for command "Close Project" in category "Project".
299
     * Id for command "Close Project" in category "Project".
300
     * (value is <code>"org.eclipse.ui.project.closeProject"</code>).
292
     */
301
     */
293
    public static final String PROJECT_CLOSEPROJECT = "org.eclipse.ui.project.closeProject"; //$NON-NLS-1$
302
    public static final String PROJECT_CLOSEPROJECT = "org.eclipse.ui.project.closeProject"; //$NON-NLS-1$
294
303
295
    /**
304
    /**
296
     * Id for command "Close Unrelated Projects" in category "Project".
305
     * Id for command "Close Unrelated Projects" in category "Project".
306
     * (value is <code>"org.eclipse.ui.project.closeUnrelatedProjects"</code>).
297
     */
307
     */
298
    public static final String PROJECT_CLOSEUNRELATEDPROJECTS = "org.eclipse.ui.project.closeUnrelatedProjects"; //$NON-NLS-1$
308
    public static final String PROJECT_CLOSEUNRELATEDPROJECTS = "org.eclipse.ui.project.closeUnrelatedProjects"; //$NON-NLS-1$
299
309
300
    /**
310
    /**
301
     * Id for command "Open Project" in category "Project".
311
     * Id for command "Open Project" in category "Project".
312
     * (value is <code>"org.eclipse.ui.project.openProject"</code>).
302
     */
313
     */
303
    public static final String PROJECT_OPENPROJECT = "org.eclipse.ui.project.openProject"; //$NON-NLS-1$
314
    public static final String PROJECT_OPENPROJECT = "org.eclipse.ui.project.openProject"; //$NON-NLS-1$
304
315
Lines 317-322 Link Here
317
    public static final String WINDOW_NEWEDITOR = "org.eclipse.ui.window.newEditor"; //$NON-NLS-1$
328
    public static final String WINDOW_NEWEDITOR = "org.eclipse.ui.window.newEditor"; //$NON-NLS-1$
318
329
319
    /**
330
    /**
331
     * Id for command "Show View Menu" in category "Window"
332
     * (value is <code>"org.eclipse.ui.window.showViewMenu"</code>).
333
     */
334
    public static final String WINDOW_SHOWVIEWMENU = "org.eclipse.ui.window.showViewMenu"; //$NON-NLS-1$
335
336
    /**
320
     * Id for command "Activate Editor" in category "Window"
337
     * Id for command "Activate Editor" in category "Window"
321
     * (value is <code>"org.eclipse.ui.window.activateEditor"</code>).
338
     * (value is <code>"org.eclipse.ui.window.activateEditor"</code>).
322
     */
339
     */
(-)Eclipse UI/org/eclipse/ui/actions/ActionFactory.java (-2 / +3 lines)
Lines 1503-1509 Link Here
1503
     * maintains its enablement state.
1503
     * maintains its enablement state.
1504
     */
1504
     */
1505
    public static final ActionFactory SHOW_VIEW_MENU = new ActionFactory(
1505
    public static final ActionFactory SHOW_VIEW_MENU = new ActionFactory(
1506
            "showViewMenu") {//$NON-NLS-1$
1506
            "showViewMenu", IWorkbenchCommandConstants.WINDOW_SHOWVIEWMENU) {//$NON-NLS-1$
1507
        
1507
        
1508
        /* (non-Javadoc)
1508
        /* (non-Javadoc)
1509
         * @see org.eclipse.ui.actions.ActionFactory#create(org.eclipse.ui.IWorkbenchWindow)
1509
         * @see org.eclipse.ui.actions.ActionFactory#create(org.eclipse.ui.IWorkbenchWindow)
Lines 1512-1518 Link Here
1512
            if (window == null) {
1512
            if (window == null) {
1513
                throw new IllegalArgumentException();
1513
                throw new IllegalArgumentException();
1514
            }
1514
            }
1515
            WorkbenchCommandAction action=new WorkbenchCommandAction("org.eclipse.ui.window.showViewMenu",window); //$NON-NLS-1$
1515
			WorkbenchCommandAction action = new WorkbenchCommandAction(
1516
					getCommandId(), window);
1516
            action.setId(getId());
1517
            action.setId(getId());
1517
            action.setText(WorkbenchMessages.ShowViewMenuAction_text);
1518
            action.setText(WorkbenchMessages.ShowViewMenuAction_text);
1518
            action.setToolTipText(WorkbenchMessages.ShowViewMenuAction_toolTip);
1519
            action.setToolTipText(WorkbenchMessages.ShowViewMenuAction_toolTip);
(-)src/org/eclipse/ui/internal/ide/WorkbenchActionBuilder.java (-1 / +2 lines)
Lines 40-45 Link Here
40
import org.eclipse.ui.IPageListener;
40
import org.eclipse.ui.IPageListener;
41
import org.eclipse.ui.ISharedImages;
41
import org.eclipse.ui.ISharedImages;
42
import org.eclipse.ui.IWorkbenchActionConstants;
42
import org.eclipse.ui.IWorkbenchActionConstants;
43
import org.eclipse.ui.IWorkbenchCommandConstants;
43
import org.eclipse.ui.IWorkbenchPage;
44
import org.eclipse.ui.IWorkbenchPage;
44
import org.eclipse.ui.IWorkbenchWindow;
45
import org.eclipse.ui.IWorkbenchWindow;
45
import org.eclipse.ui.actions.ActionFactory;
46
import org.eclipse.ui.actions.ActionFactory;
Lines 1128-1134 Link Here
1128
            register(introAction);
1129
            register(introAction);
1129
        }
1130
        }
1130
1131
1131
        String showInQuickMenuId = "org.eclipse.ui.navigate.showInQuickMenu"; //$NON-NLS-1$
1132
        String showInQuickMenuId = IWorkbenchCommandConstants.NAVIGATE_SHOWINQUICKMENU;
1132
        showInQuickMenu = new QuickMenuAction(showInQuickMenuId) {
1133
        showInQuickMenu = new QuickMenuAction(showInQuickMenuId) {
1133
            protected void fillMenu(IMenuManager menu) {
1134
            protected void fillMenu(IMenuManager menu) {
1134
                menu.add(ContributionItemFactory.VIEWS_SHOW_IN
1135
                menu.add(ContributionItemFactory.VIEWS_SHOW_IN
(-)src/org/eclipse/ui/views/markers/internal/MarkerView.java (-1 / +2 lines)
Lines 80-85 Link Here
80
import org.eclipse.ui.ISelectionListener;
80
import org.eclipse.ui.ISelectionListener;
81
import org.eclipse.ui.IViewSite;
81
import org.eclipse.ui.IViewSite;
82
import org.eclipse.ui.IWorkbenchActionConstants;
82
import org.eclipse.ui.IWorkbenchActionConstants;
83
import org.eclipse.ui.IWorkbenchCommandConstants;
83
import org.eclipse.ui.IWorkbenchPart;
84
import org.eclipse.ui.IWorkbenchPart;
84
import org.eclipse.ui.PartInitException;
85
import org.eclipse.ui.PartInitException;
85
import org.eclipse.ui.PlatformUI;
86
import org.eclipse.ui.PlatformUI;
Lines 1598-1604 Link Here
1598
				.getWorkbench().getAdapter(IBindingService.class);
1599
				.getWorkbench().getAdapter(IBindingService.class);
1599
		if (bindingService != null) {
1600
		if (bindingService != null) {
1600
			String keyBinding = bindingService
1601
			String keyBinding = bindingService
1601
					.getBestActiveBindingFormattedFor("org.eclipse.ui.navigate.showInQuickMenu"); //$NON-NLS-1$
1602
					.getBestActiveBindingFormattedFor(IWorkbenchCommandConstants.NAVIGATE_SHOWINQUICKMENU);
1602
			if (keyBinding != null) {
1603
			if (keyBinding != null) {
1603
				showInLabel += '\t' + keyBinding;
1604
				showInLabel += '\t' + keyBinding;
1604
			}
1605
			}

Return to bug 266839