public class ValidateCommand
extends org.eclipse.emf.edit.ui.action.ValidateAction
Constructor and Description |
---|
ValidateCommand() |
Modifier and Type | Method and Description |
---|---|
protected org.eclipse.emf.ecore.util.Diagnostician |
createDiagnostician(org.eclipse.emf.common.notify.AdapterFactory adapterFactory,
org.eclipse.core.runtime.IProgressMonitor progressMonitor) |
protected void |
fireHandlerChanged(org.eclipse.core.commands.HandlerEvent handlerEvent)
Fires an event to all registered listeners describing changes to this
instance.
|
protected void |
handleDiagnostic(org.eclipse.emf.common.util.Diagnostic diagnostic) |
protected boolean |
hasListeners()
Returns true iff there is one or more IHandlerListeners attached to this
AbstractHandler.
|
void |
setActiveWorkbenchPart(org.eclipse.ui.IWorkbenchPart workbenchPart) |
boolean |
updateSelection(org.eclipse.jface.viewers.IStructuredSelection selection) |
run, selectionChanged, validate
convertAccelerator, convertAccelerator, findKeyCode, findKeyString, findModifier, findModifierString, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isEnabled, isHandled, notifyResult, removeAcceleratorText, removeMnemonics, runWithEvent, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipText
addPropertyChangeListener, firePropertyChange, firePropertyChange, removePropertyChangeListener
protected org.eclipse.emf.ecore.util.Diagnostician createDiagnostician(org.eclipse.emf.common.notify.AdapterFactory adapterFactory, @Nullable org.eclipse.core.runtime.IProgressMonitor progressMonitor)
createDiagnostician
in class org.eclipse.emf.edit.ui.action.ValidateAction
protected void fireHandlerChanged(org.eclipse.core.commands.HandlerEvent handlerEvent)
Subclasses may extend the definition of this method (i.e., if a different
type of listener can be attached to a subclass). This is used primarily
for support of AbstractHandler
in
org.eclipse.ui.workbench
, and clients should be wary of
overriding this behaviour. If this method is overridden, then the first
line of the method should be "super.fireHandlerChanged(handlerEvent);
".
handlerEvent
- the event describing changes to this instance. Must not be
null
.protected void handleDiagnostic(org.eclipse.emf.common.util.Diagnostic diagnostic)
handleDiagnostic
in class org.eclipse.emf.edit.ui.action.ValidateAction
protected boolean hasListeners()
Returns true iff there is one or more IHandlerListeners attached to this AbstractHandler.
Subclasses may extend the definition of this method (i.e., if a different
type of listener can be attached to a subclass). This is used primarily
for support of AbstractHandler
in
org.eclipse.ui.workbench
, and clients should be wary of
overriding this behaviour. If this method is overridden, then the return
value should include "super.hasListeners() ||
".
public void setActiveWorkbenchPart(org.eclipse.ui.IWorkbenchPart workbenchPart)
setActiveWorkbenchPart
in class org.eclipse.emf.edit.ui.action.ValidateAction
public boolean updateSelection(org.eclipse.jface.viewers.IStructuredSelection selection)
updateSelection
in class org.eclipse.emf.edit.ui.action.ValidateAction