TPTP 4.5.0 Testing Tools Project
Internal API Specification

org.eclipse.hyades.test.ui.internal.model.ui
Class AddChildAction

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.ui.actions.BaseSelectionListenerAction
                  extended by org.eclipse.ui.actions.SelectionListenerAction
                      extended by org.eclipse.hyades.test.ui.internal.model.ui.AddChildAction
All Implemented Interfaces:
org.eclipse.hyades.ui.util.IDisposable, org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelectionChangedListener
Direct Known Subclasses:
AddConfigPropertyAction, AddDeploymentChildAction, AddTestAssetAction, AddTestSuiteChildAction

public class AddChildAction
extends org.eclipse.ui.actions.SelectionListenerAction
implements org.eclipse.hyades.ui.util.IDisposable


Field Summary
 
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
AddChildAction(org.eclipse.emf.ecore.EClassifier parentClassifier, java.lang.String text)
          Constructor for AddTestSuiteChildAction
 
Method Summary
 boolean actionPerformed()
          Returns whether the most recent wizard has being completed or canceled.
 void dispose()
           
protected  org.eclipse.emf.ecore.EObject getParent(org.eclipse.jface.viewers.IStructuredSelection structuredSelection)
          Returns the parent associated with the first element of the structured selection or null.
protected  void setActionPerformed(boolean actionPerformed)
           
 void setParent(org.eclipse.emf.ecore.EObject parent)
          Sets the default parent EObject that is returned by getParent(IStructuredSelection).
 
Methods inherited from class org.eclipse.ui.actions.SelectionListenerAction
clearCache, getSelectedNonResources, getSelectedResources, resourceIsType, selectionIsOfType
 
Methods inherited from class org.eclipse.ui.actions.BaseSelectionListenerAction
getStructuredSelection, runWithEvent, selectionChanged, selectionChanged, updateSelection
 
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, run, 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
 
Methods inherited from interface org.eclipse.jface.action.IAction
addPropertyChangeListener, removePropertyChangeListener
 

Constructor Detail

AddChildAction

public AddChildAction(org.eclipse.emf.ecore.EClassifier parentClassifier,
                      java.lang.String text)
Constructor for AddTestSuiteChildAction

Parameters:
parentClass -
text -
Method Detail

dispose

public void dispose()
Specified by:
dispose in interface org.eclipse.hyades.ui.util.IDisposable
See Also:
IDisposable.dispose()

actionPerformed

public boolean actionPerformed()
Returns whether the most recent wizard has being completed or canceled. This information is reset at the beging of an execution and when the selection changes.

Returns:
true if the wizard was completed or false if it was canceled.

setActionPerformed

protected void setActionPerformed(boolean actionPerformed)

setParent

public void setParent(org.eclipse.emf.ecore.EObject parent)
Sets the default parent EObject that is returned by getParent(IStructuredSelection). If null then the selection is analysed in order to identify the parent.

The parent must be an instance of the parentClassifier specified in the constructor.

Parameters:
parent -

getParent

protected org.eclipse.emf.ecore.EObject getParent(org.eclipse.jface.viewers.IStructuredSelection structuredSelection)
Returns the parent associated with the first element of the structured selection or null.

Parameters:
structuredSelection -
Returns:
EOBject

TPTP 4.5.0 Testing Tools Project
Internal API Specification