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 180794 Details for
Bug 327690
WizardHandlers could update the contribution's UI properties
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]
Patch v01
WizardHandlerUpdate 01.txt (text/plain), 2.33 KB, created by
Prakash Rangaraj
on 2010-10-13 13:09:56 EDT
(
hide
)
Description:
Patch v01
Filename:
MIME Type:
Creator:
Prakash Rangaraj
Created:
2010-10-13 13:09:56 EDT
Size:
2.33 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.ui.workbench >Index: Eclipse UI/org/eclipse/ui/internal/handlers/WizardHandler.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/handlers/WizardHandler.java,v >retrieving revision 1.8 >diff -u -r1.8 WizardHandler.java >--- Eclipse UI/org/eclipse/ui/internal/handlers/WizardHandler.java 1 Jun 2010 19:22:35 -0000 1.8 >+++ Eclipse UI/org/eclipse/ui/internal/handlers/WizardHandler.java 13 Oct 2010 17:06:34 -0000 >@@ -11,6 +11,7 @@ > *******************************************************************************/ > package org.eclipse.ui.internal.handlers; > >+import java.util.Map; > import org.eclipse.core.commands.AbstractHandler; > import org.eclipse.core.commands.ExecutionEvent; > import org.eclipse.core.commands.ExecutionException; >@@ -28,6 +29,7 @@ > import org.eclipse.ui.IWorkbenchWindow; > import org.eclipse.ui.IWorkbenchWizard; > import org.eclipse.ui.PlatformUI; >+import org.eclipse.ui.commands.IElementUpdater; > import org.eclipse.ui.handlers.HandlerUtil; > import org.eclipse.ui.internal.IWorkbenchHelpContextIds; > import org.eclipse.ui.internal.LegacyResourceSupport; >@@ -35,6 +37,7 @@ > import org.eclipse.ui.internal.dialogs.ImportExportWizard; > import org.eclipse.ui.internal.dialogs.NewWizard; > import org.eclipse.ui.internal.util.Util; >+import org.eclipse.ui.menus.UIElement; > import org.eclipse.ui.wizards.IWizardDescriptor; > import org.eclipse.ui.wizards.IWizardRegistry; > >@@ -47,7 +50,7 @@ > * > * @since 3.2 > */ >-public abstract class WizardHandler extends AbstractHandler { >+public abstract class WizardHandler extends AbstractHandler implements IElementUpdater { > > /** > * Default handler for launching export wizards. >@@ -318,6 +321,19 @@ > return StructuredSelection.EMPTY; > } > >+ public void updateElement(UIElement element, Map parameters) { >+ >+ String wizardId = (String) parameters.get(getWizardIdParameterId()); >+ if (wizardId == null) >+ return; >+ IWizardDescriptor wizard = getWizardRegistry().findWizard(wizardId); >+ if (wizard != null) { >+ element.setText(wizard.getLabel()); >+ element.setTooltip(wizard.getDescription()); >+ element.setIcon(wizard.getImageDescriptor()); >+ } >+ } >+ > /** > * Returns the id of the parameter used to indicate which wizard this > * command should launch.
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 327690
: 180794 |
180795
|
180796