|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.ibm.jdg2e.extensionpoint.ToolActionsPulldownDelegate
Creates the menu items for the common tools toolbar pulldown menu. When an
item is selected, it invokes the run method of the corresponding
IToolsAction instance specified on the
<tool action=IToolAction label="xxx"> tag.
This class also responds to dynamic additions to the extension
registry by listening for
Platform.getExtensionRegistry().addRegistryChangeListener
events. See Handling Dynamic Plug-ins in Chapter 11
and FAQ 118,
How do I make my plug-in dynamic aware? for more details.
IToolAction,
IWorkbenchWindowPulldownDelegate| Constructor Summary | |
ToolActionsPulldownDelegate()
|
|
| Method Summary | |
void |
dispose()
|
org.eclipse.swt.widgets.Menu |
getMenu(org.eclipse.swt.widgets.Control parent)
Returns the menu for this pull down action. |
protected java.util.List |
getToolActionDescriptors()
|
void |
init(org.eclipse.ui.IWorkbenchWindow window)
|
void |
registryChanged(org.eclipse.core.runtime.IRegistryChangeEvent event)
Handle plug-in registry changes by reconstructing the tool actions pulldown. |
void |
run(org.eclipse.jface.action.IAction action)
Notifies this action delegate that menu pulldown was selected (i.e., not one of its menu item choices). |
void |
selectionChanged(org.eclipse.jface.action.IAction action,
org.eclipse.jface.viewers.ISelection selection)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ToolActionsPulldownDelegate()
| Method Detail |
public void dispose()
dispose in interface org.eclipse.ui.IWorkbenchWindowActionDelegatepublic org.eclipse.swt.widgets.Menu getMenu(org.eclipse.swt.widgets.Control parent)
getMenu in interface org.eclipse.ui.IWorkbenchWindowPulldownDelegateprotected java.util.List getToolActionDescriptors()
public void init(org.eclipse.ui.IWorkbenchWindow window)
init in interface org.eclipse.ui.IWorkbenchWindowActionDelegatepublic void registryChanged(org.eclipse.core.runtime.IRegistryChangeEvent event)
registryChanged in interface org.eclipse.core.runtime.IRegistryChangeListenerIRegistryChangeListener.registryChanged(org.eclipse.core.runtime.IRegistryChangeEvent)public void run(org.eclipse.jface.action.IAction action)
run in interface org.eclipse.ui.IActionDelegate
public void selectionChanged(org.eclipse.jface.action.IAction action,
org.eclipse.jface.viewers.ISelection selection)
selectionChanged in interface org.eclipse.ui.IActionDelegate
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||