Class ObjectPluginAction
- All Implemented Interfaces:
- EventListener,- IAction,- ISelectionChangedListener,- INullSelectionListener,- IPartListener2,- IPluginContribution,- ISelectionListener
 For backward compatibility, the delegate object can implement either
 IActionDelegate or IObjectActionDelegate.
 
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final StringThe configuration element attribute for the identifier of the action which this action is intended to override (i.e., replace).Fields inherited from interface org.eclipse.jface.action.IActionAS_CHECK_BOX, AS_DROP_DOWN_MENU, AS_PUSH_BUTTON, AS_RADIO_BUTTON, AS_UNSPECIFIED, CHECKED, DESCRIPTION, ENABLED, HANDLED, IMAGE, RESULT, TEXT, TOOL_TIP_TEXT
- 
Constructor SummaryConstructorsConstructorDescriptionObjectPluginAction(IConfigurationElement actionElement, String id, int style) Constructs a new ObjectPluginAction.
- 
Method SummaryModifier and TypeMethodDescriptionvoiddispose()Disposes this plugin action.Returns the action identifier this action overrides.protected voidInitialize the action delegate by calling its lifecycle method.voidpartActivated(IWorkbenchPartReference partRef) Notifies this listener that the given part has been activated.voidpartBroughtToTop(IWorkbenchPartReference partRef) Notifies this listener that the given part has been brought to the top.voidpartClosed(IWorkbenchPartReference partRef) Notifies this listener that the given part has been closed.voidpartDeactivated(IWorkbenchPartReference partRef) Notifies this listener that the given part has been deactivated.voidpartHidden(IWorkbenchPartReference partRef) Notifies this listener that the given part is hidden or obscured by another part.voidpartInputChanged(IWorkbenchPartReference partRef) Notifies this listener that the given part's input was changed.voidpartOpened(IWorkbenchPartReference partRef) Notifies this listener that the given part has been opened.voidpartVisible(IWorkbenchPartReference partRef) Notifies this listener that the given part is visible.voidsetActivePart(IWorkbenchPart targetPart) Sets the active part for the delegate.Methods inherited from class org.eclipse.ui.internal.PluginActioncreateDelegate, disposeDelegate, getConfigElement, getDelegate, getLocalId, getMenuCreator, getPluginId, getSelection, isOkToCreateDelegate, refreshEnablement, run, runWithEvent, selectionChanged, selectionChanged, selectionChanged, validateDelegateMethods inherited from class org.eclipse.jface.action.ActionconvertAccelerator, convertAccelerator, findKeyCode, findKeyString, findModifier, findModifierString, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getStyle, getText, getToolTipText, isChecked, isEnabled, isHandled, notifyResult, removeAcceleratorText, removeMnemonics, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipTextMethods inherited from class org.eclipse.jface.action.AbstractActionaddPropertyChangeListener, firePropertyChange, firePropertyChange, removePropertyChangeListenerMethods inherited from class org.eclipse.core.commands.common.EventManageraddListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
- 
Field Details- 
ATT_OVERRIDE_ACTION_IDThe configuration element attribute for the identifier of the action which this action is intended to override (i.e., replace).- See Also:
 
 
- 
- 
Constructor Details- 
ObjectPluginActionConstructs a new ObjectPluginAction.- Parameters:
- actionElement- The configuration element used to construct this action; must not be- null.
- id- The identifier for this action; must not be- null.
- style- The style bits
 
 
- 
- 
Method Details- 
partActivatedDescription copied from interface:IPartListener2Notifies this listener that the given part has been activated.- Specified by:
- partActivatedin interface- IPartListener2
- Parameters:
- partRef- the part that was activated
- See Also:
 
- 
partBroughtToTopDescription copied from interface:IPartListener2Notifies this listener that the given part has been brought to the top.These events occur when an editor is brought to the top in the editor area, or when a view is brought to the top in a page book with multiple views. They are normally only sent when a part is brought to the top programmatically (via IPerspective.bringToTop). When a part is activated by the user clicking on it, onlypartActivatedis sent.- Specified by:
- partBroughtToTopin interface- IPartListener2
- Parameters:
- partRef- the part that was surfaced
- See Also:
 
- 
partClosedDescription copied from interface:IPartListener2Notifies this listener that the given part has been closed.Note that if other perspectives in the same page share the view, this notification is not sent. It is only sent when the view is being removed from the page entirely (it is being disposed). - Specified by:
- partClosedin interface- IPartListener2
- Parameters:
- partRef- the part that was closed
- See Also:
 
- 
partDeactivatedDescription copied from interface:IPartListener2Notifies this listener that the given part has been deactivated.- Specified by:
- partDeactivatedin interface- IPartListener2
- Parameters:
- partRef- the part that was deactivated
- See Also:
 
- 
partHiddenDescription copied from interface:IPartListener2Notifies this listener that the given part is hidden or obscured by another part.- Specified by:
- partHiddenin interface- IPartListener2
- Parameters:
- partRef- the part that is hidden or obscured by another part
 
- 
partInputChangedDescription copied from interface:IPartListener2Notifies this listener that the given part's input was changed.- Specified by:
- partInputChangedin interface- IPartListener2
- Parameters:
- partRef- the part whose input was changed
 
- 
partOpenedDescription copied from interface:IPartListener2Notifies this listener that the given part has been opened.Note that if other perspectives in the same page share the view, this notification is not sent. It is only sent when the view is being newly opened in the page (it is being created). - Specified by:
- partOpenedin interface- IPartListener2
- Parameters:
- partRef- the part that was opened
- See Also:
 
- 
partVisibleDescription copied from interface:IPartListener2Notifies this listener that the given part is visible.- Specified by:
- partVisiblein interface- IPartListener2
- Parameters:
- partRef- the part that is visible
 
- 
initDelegateprotected void initDelegate()Description copied from class:PluginActionInitialize the action delegate by calling its lifecycle method. Subclasses may override but must call this implementation first.- Overrides:
- initDelegatein class- PluginAction
 
- 
setActivePartSets the active part for the delegate.This method will be called every time the action appears in a popup menu. The targetPart may change with each invocation. - Parameters:
- targetPart- the new part target
 
- 
getOverrideActionIdReturns the action identifier this action overrides.- Overrides:
- getOverrideActionIdin class- PluginAction
- Returns:
- the action identifier to override or null
 
- 
disposepublic void dispose()Description copied from class:PluginActionDisposes this plugin action.- Overrides:
- disposein class- PluginAction
 
 
-