TPTP 4.4.0 Platform Project
Public API Specification

org.eclipse.hyades.trace.ui.actions
Class OpenAssociatedTraceViewAction

java.lang.Object
  extended byorg.eclipse.core.commands.common.EventManager
      extended byorg.eclipse.jface.action.AbstractAction
          extended byorg.eclipse.jface.action.Action
              extended byorg.eclipse.hyades.trace.ui.actions.OpenAssociatedTraceViewAction
All Implemented Interfaces:
org.eclipse.jface.action.IAction
Direct Known Subclasses:
FilterTypeSampleViewAction

public abstract class OpenAssociatedTraceViewAction
extends org.eclipse.jface.action.Action

Abstract class that each org.eclipse.hyades.ui.analyzerExtenstions extension should implement for any open view action that is assocated with a type.

Each open view action is associated with a type, and getViewID method returns the view id of the actions trying to open. The view id is used on object type and view association validation.

Since:
4.0
See Also:
Action

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
OpenAssociatedTraceViewAction()
          Constructor
OpenAssociatedTraceViewAction(java.lang.String text)
          Constructor
OpenAssociatedTraceViewAction(java.lang.String text, org.eclipse.jface.resource.ImageDescriptor image)
          Constructor
OpenAssociatedTraceViewAction(java.lang.String text, int style)
          Constructor
 
Method Summary
abstract  java.lang.String getViewID()
          Return view id that action opens.
 boolean isEnabledForObject(java.lang.Object obj)
          Returns true if this action is enabled for the given selected object.
 
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, 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
 
Methods inherited from interface org.eclipse.jface.action.IAction
addPropertyChangeListener, removePropertyChangeListener
 

Constructor Detail

OpenAssociatedTraceViewAction

public OpenAssociatedTraceViewAction()
Constructor

See Also:
Action

OpenAssociatedTraceViewAction

public OpenAssociatedTraceViewAction(java.lang.String text,
                                     org.eclipse.jface.resource.ImageDescriptor image)
Constructor

See Also:
Action

OpenAssociatedTraceViewAction

public OpenAssociatedTraceViewAction(java.lang.String text,
                                     int style)
Constructor

See Also:
Action

OpenAssociatedTraceViewAction

public OpenAssociatedTraceViewAction(java.lang.String text)
Constructor

See Also:
Action
Method Detail

getViewID

public abstract java.lang.String getViewID()
Return view id that action opens.

Returns:
Fully qualify view id

isEnabledForObject

public boolean isEnabledForObject(java.lang.Object obj)
Returns true if this action is enabled for the given selected object.

Parameters:
obj -
Returns:

TPTP 4.4.0 Platform Project
Public API Specification