public class BasicValidationActionProvider extends AbstractValidationActionProvider
Actions are populated to contextual menu under item "Validation".
Note | This action provider is not contributed by the hosting plug-in in order to avoid duplicate entries of actions. If any client application is really interested in this action provider, it should contribute it by itself. |
Modifier and Type | Field and Description |
---|---|
protected BasicCleanProblemMarkersAction |
cleanProblemMarkersAction
Action responsible for cleaning existing problem markers on model's elements.
|
protected BasicValidateAction |
validateAction
Action responsible for the batch validation of a selected model.
|
selectionProvider, viewer, viewerId, workbenchPart
Constructor and Description |
---|
BasicValidationActionProvider() |
Modifier and Type | Method and Description |
---|---|
protected org.eclipse.jface.action.IMenuManager |
addSubMenu(org.eclipse.jface.action.IMenuManager contextMenuManager)
Returns the
sub menu into which the actions
provided by this action provider implementation are to be placed. |
protected BasicCleanProblemMarkersAction |
createCleanProblemMarkersAction() |
protected BasicValidateAction |
createValidateAction() |
void |
doInit()
Method to override in order to provide a custom initialization of this action
provider.
|
protected void |
populateActions(org.eclipse.jface.action.IMenuManager menu,
org.eclipse.jface.viewers.IStructuredSelection selection,
boolean enabled)
Populates specified menu with the actions
provided by this
action provider implementation. |
fillSubMenu, isEnabled, isEnabled
depopulateManager, depopulateManager, extractSubmenuActions, fillContextMenu, getEditingDomainFromSelection, init, isActivePropertySheet, isTransient, populateManager, populateManager
filterAction, getActionSite, restoreState, saveState
protected BasicValidateAction validateAction
protected BasicCleanProblemMarkersAction cleanProblemMarkersAction
public void doInit()
BasicActionProvider
doInit
in class BasicActionProvider
protected BasicValidateAction createValidateAction()
protected BasicCleanProblemMarkersAction createCleanProblemMarkersAction()
protected org.eclipse.jface.action.IMenuManager addSubMenu(org.eclipse.jface.action.IMenuManager contextMenuManager)
BasicActionProvider
sub menu
into which the actions
provided by this action provider
implementation are to be placed. Creates a new
sub menu
and appends it to specified context menu
if no such is present
yet. Returns null
if the actions should go directly
into the context menu
. The default implementation returns null
. Subclasses may
override or extend this method.addSubMenu
in class BasicActionProvider
contextMenuManager
- The context menu
for which the sub menu
is to be retrieved
or created.sub menu
into which the actions
provided by this action provider
implementation are to be placed or
null
if they should go directly into the context menu
.BasicActionProvider.fillSubMenu(IMenuManager)
protected void populateActions(org.eclipse.jface.action.IMenuManager menu, org.eclipse.jface.viewers.IStructuredSelection selection, boolean enabled)
AbstractValidationActionProvider
action provider
implementation. Initializes
actions with given selection and
enabled
status.populateActions
in class AbstractValidationActionProvider
menu
- The menu actions should be added to.selection
- The selection actions must act upon.enabled
- Enablement status indicating if actions should be enabled or not.