COSMOS ${releaseVersion} resource-modeling Project
Internal API Specification

org.eclipse.cosmos.rm.validation.internal.actions
Class AbstractAction

java.lang.Object
  extended by org.eclipse.cosmos.rm.validation.internal.actions.AbstractAction
All Implemented Interfaces:
org.eclipse.ui.IActionDelegate, org.eclipse.ui.IObjectActionDelegate
Direct Known Subclasses:
ValidateResourceAction

public abstract class AbstractAction
extends java.lang.Object
implements org.eclipse.ui.IObjectActionDelegate

An abstract class that all other object action delegates are expected to extend.


Constructor Summary
AbstractAction()
           
 
Method Summary
 org.eclipse.jface.viewers.IStructuredSelection getSelection()
           
protected  boolean noValidSelection()
           
 void selectionChanged(org.eclipse.jface.action.IAction action, org.eclipse.jface.viewers.ISelection selection)
           
 void setActivePart(org.eclipse.jface.action.IAction action, org.eclipse.ui.IWorkbenchPart targetPart)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.ui.IActionDelegate
run
 

Constructor Detail

AbstractAction

public AbstractAction()
Method Detail

setActivePart

public void setActivePart(org.eclipse.jface.action.IAction action,
                          org.eclipse.ui.IWorkbenchPart targetPart)
Specified by:
setActivePart in interface org.eclipse.ui.IObjectActionDelegate
See Also:
IObjectActionDelegate.setActivePart(org.eclipse.jface.action.IAction, org.eclipse.ui.IWorkbenchPart)

selectionChanged

public void selectionChanged(org.eclipse.jface.action.IAction action,
                             org.eclipse.jface.viewers.ISelection selection)
Specified by:
selectionChanged in interface org.eclipse.ui.IActionDelegate
See Also:
IActionDelegate.selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection)

getSelection

public org.eclipse.jface.viewers.IStructuredSelection getSelection()
Returns:
the selection

noValidSelection

protected boolean noValidSelection()

COSMOS ${releaseVersion} resource-modeling Project
Internal API Specification