org.eclipse.ocl.examples.xtext.base.ui.commands
Class ValidateCommand

java.lang.Object
  extended by org.eclipse.core.commands.common.EventManager
      extended by org.eclipse.jface.action.AbstractAction
          extended by org.eclipse.jface.action.Action
              extended by org.eclipse.emf.edit.ui.action.ValidateAction
                  extended by org.eclipse.ocl.examples.xtext.base.ui.commands.ValidateCommand
All Implemented Interfaces:
org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelectionChangedListener

public class ValidateCommand
extends org.eclipse.emf.edit.ui.action.ValidateAction


Nested Class Summary
protected static class ValidateCommand.Diagnostician_2_8
           
protected static class ValidateCommand.Diagnostician_2_9
           
protected static class ValidateCommand.PivotDiagnostician
           
 
Nested classes/interfaces inherited from class org.eclipse.emf.edit.ui.action.ValidateAction
org.eclipse.emf.edit.ui.action.ValidateAction.EclipseResourcesUtil
 
Field Summary
 
Fields inherited from class org.eclipse.emf.edit.ui.action.ValidateAction
domain, eclipseResourcesUtil, selectedObjects, selectionProvider
 
Fields inherited from interface org.eclipse.jface.action.IAction
AS_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 Summary
ValidateCommand()
           
 
Method Summary
protected  org.eclipse.emf.ecore.util.Diagnostician createDiagnostician(org.eclipse.emf.common.notify.AdapterFactory adapterFactory, org.eclipse.core.runtime.IProgressMonitor progressMonitor)
           
protected static boolean diagnosticianHasDoValidate()
           
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)
           
 
Methods inherited from class org.eclipse.emf.edit.ui.action.ValidateAction
run, selectionChanged, validate
 
Methods inherited from class org.eclipse.jface.action.Action
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
 
Methods inherited from class org.eclipse.jface.action.AbstractAction
addPropertyChangeListener, firePropertyChange, firePropertyChange, removePropertyChangeListener
 
Methods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidateCommand

public ValidateCommand()
Method Detail

diagnosticianHasDoValidate

protected static boolean diagnosticianHasDoValidate()

createDiagnostician

protected org.eclipse.emf.ecore.util.Diagnostician createDiagnostician(org.eclipse.emf.common.notify.AdapterFactory adapterFactory,
                                                                       org.eclipse.core.runtime.IProgressMonitor progressMonitor)
Overrides:
createDiagnostician in class org.eclipse.emf.edit.ui.action.ValidateAction

fireHandlerChanged

protected void fireHandlerChanged(org.eclipse.core.commands.HandlerEvent handlerEvent)
Fires an event to all registered listeners describing changes to this instance.

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);".

Parameters:
handlerEvent - the event describing changes to this instance. Must not be null.

handleDiagnostic

protected void handleDiagnostic(org.eclipse.emf.common.util.Diagnostic diagnostic)
Overrides:
handleDiagnostic in class org.eclipse.emf.edit.ui.action.ValidateAction

hasListeners

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() ||".

Returns:
true iff there is one or more IHandlerListeners attached to this AbstractHandler

setActiveWorkbenchPart

public void setActiveWorkbenchPart(org.eclipse.ui.IWorkbenchPart workbenchPart)
Overrides:
setActiveWorkbenchPart in class org.eclipse.emf.edit.ui.action.ValidateAction

updateSelection

public boolean updateSelection(org.eclipse.jface.viewers.IStructuredSelection selection)
Overrides:
updateSelection in class org.eclipse.emf.edit.ui.action.ValidateAction