|
TPTP 4.2.0 Platform Project Internal API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.hyades.trace.ui.internal.actions.AbstractProfileActionDelegate
| Constructor Summary | |
|---|---|
AbstractProfileActionDelegate()
It's crucial that delegate actions have a zero-arg constructor so that they can be reflected into existence when referenced in an action set in the plugin's plugin.xml file. |
|
| Method Summary | |
|---|---|
void |
dispose()
|
protected abstract void |
doAction(java.lang.Object element)
Does the specific action of this action to the process. |
protected boolean |
enableForMultiSelection()
Returns whether this action should be enabled if there is multi selection. |
protected org.eclipse.jface.action.IAction |
getAction()
|
protected boolean |
getEnableStateForSelection(org.eclipse.jface.viewers.IStructuredSelection selection)
Return whether the action should be enabled or not based on the given selection. |
protected org.eclipse.jface.viewers.IStructuredSelection |
getSelection()
Returns the most recent selection |
protected org.eclipse.ui.IViewPart |
getView()
Returns this action's view part, or null
if not installed in a view. |
void |
init(org.eclipse.ui.IViewPart view)
|
void |
init(org.eclipse.ui.IWorkbenchWindow window)
|
protected boolean |
initialize(org.eclipse.jface.action.IAction action,
org.eclipse.jface.viewers.ISelection selection)
Initialize this delegate, updating this delegate's presentation. |
protected abstract boolean |
isEnabledFor(java.lang.Object element)
Returns whether this action will work for the given element |
protected boolean |
isInitialized()
|
void |
run(org.eclipse.jface.action.IAction action)
|
void |
selectionChanged(org.eclipse.jface.action.IAction action,
org.eclipse.jface.viewers.ISelection s)
Set the icons for this action on the first selection changed event. |
void |
selectionChanged(org.eclipse.ui.IWorkbenchPart part,
org.eclipse.jface.viewers.ISelection selection)
|
protected void |
setAction(org.eclipse.jface.action.IAction action)
|
protected void |
setInitialized(boolean initialized)
|
protected void |
setView(org.eclipse.ui.IViewPart viewPart)
|
protected void |
update(org.eclipse.jface.action.IAction action,
org.eclipse.jface.viewers.ISelection s)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AbstractProfileActionDelegate()
| Method Detail |
public void dispose()
dispose in interface org.eclipse.ui.IWorkbenchWindowActionDelegateIWorkbenchWindowActionDelegate.dispose()public void init(org.eclipse.ui.IWorkbenchWindow window)
init in interface org.eclipse.ui.IWorkbenchWindowActionDelegateIWorkbenchWindowActionDelegate.init(IWorkbenchWindow)public void run(org.eclipse.jface.action.IAction action)
run in interface org.eclipse.ui.IActionDelegateIActionDelegate#run(IAction)
public void selectionChanged(org.eclipse.jface.action.IAction action,
org.eclipse.jface.viewers.ISelection s)
AbstractProfileActionDelegates come in 2 flavors: IViewActionDelegate, IWorkbenchWindowActionDelegate delegates.
Only want to call update(action, selection) for IViewActionDelegates. An initialize call to update(action, selection) is made for all flavors to set the initial enabled state of the underlying action. IWorkbenchWindowActionDelegate's listen to selection changes in the debug view only.
selectionChanged in interface org.eclipse.ui.IActionDelegateIActionDelegate#selectionChanged(IAction, ISelection)
protected void update(org.eclipse.jface.action.IAction action,
org.eclipse.jface.viewers.ISelection s)
protected boolean getEnableStateForSelection(org.eclipse.jface.viewers.IStructuredSelection selection)
protected boolean enableForMultiSelection()
protected abstract void doAction(java.lang.Object element)
throws java.lang.Exception
java.lang.Exceptionprotected abstract boolean isEnabledFor(java.lang.Object element)
public void init(org.eclipse.ui.IViewPart view)
init in interface org.eclipse.ui.IViewActionDelegateIViewActionDelegate.init(IViewPart)protected org.eclipse.ui.IViewPart getView()
null
if not installed in a view.
null
protected boolean initialize(org.eclipse.jface.action.IAction action,
org.eclipse.jface.viewers.ISelection selection)
action - the presentation for this action
protected org.eclipse.jface.viewers.IStructuredSelection getSelection()
public void selectionChanged(org.eclipse.ui.IWorkbenchPart part,
org.eclipse.jface.viewers.ISelection selection)
selectionChanged in interface org.eclipse.ui.ISelectionListenerISelectionListener.selectionChanged(IWorkbenchPart, ISelection)protected void setView(org.eclipse.ui.IViewPart viewPart)
protected boolean isInitialized()
protected void setInitialized(boolean initialized)
protected void setAction(org.eclipse.jface.action.IAction action)
protected org.eclipse.jface.action.IAction getAction()
|
TPTP 4.2.0 Platform Project Internal API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||