Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 225996 Details for
Bug 394171
'Build All' menu item not correctly enabled and disabled
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Possible Fix
eclipse.platform.ui.patch (text/plain), 1.90 KB, created by
Dani Megert
on 2013-01-23 12:46:32 EST
(
hide
)
Description:
Possible Fix
Filename:
MIME Type:
Creator:
Dani Megert
Created:
2013-01-23 12:46:32 EST
Size:
1.90 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.ui.workbench >diff --git Eclipse UI/org/eclipse/ui/internal/MakeHandlersGo.java Eclipse UI/org/eclipse/ui/internal/MakeHandlersGo.java >index 51da911..5d9b253 100644 >--- Eclipse UI/org/eclipse/ui/internal/MakeHandlersGo.java >+++ Eclipse UI/org/eclipse/ui/internal/MakeHandlersGo.java >@@ -1,5 +1,5 @@ > /******************************************************************************* >- * Copyright (c) 2011, 2012 IBM Corporation and others. >+ * Copyright (c) 2011, 2013 IBM Corporation and others. > * All rights reserved. This program and the accompanying materials > * are made available under the terms of the Eclipse Public License v1.0 > * which accompanies this distribution, and is available at >@@ -20,6 +20,7 @@ > import org.eclipse.core.commands.ExecutionException; > import org.eclipse.core.commands.HandlerEvent; > import org.eclipse.core.commands.IHandler; >+import org.eclipse.core.commands.IHandler2; > import org.eclipse.core.commands.NotEnabledException; > import org.eclipse.core.commands.NotHandledException; > import org.eclipse.core.commands.Parameterization; >@@ -164,6 +165,26 @@ > > /* > * (non-Javadoc) >+ * @see org.eclipse.core.commands.AbstractHandler#setEnabled(java.lang.Object) >+ */ >+ @Override >+ public void setEnabled(Object evaluationContext) { >+ EHandlerService service = (EHandlerService) workbench.getService(EHandlerService.class); >+ if (service == null) { >+ return; >+ } >+ IEclipseContext ctx = (IEclipseContext) workbench.getService(IEclipseContext.class); >+ Object handler = HandlerServiceImpl.lookUpHandler(ctx, commandId); >+ if (handler instanceof E4HandlerProxy) { >+ Object handler2= ((E4HandlerProxy) handler).getHandler(); >+ if (handler2 instanceof IHandler2) { >+ ((IHandler2)handler2).setEnabled(evaluationContext); >+ } >+ } >+ } >+ >+ /* >+ * (non-Javadoc) > * > * @see > * org.eclipse.ui.commands.IElementUpdater#updateElement(org.eclipse.ui.
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 394171
: 225996