Class PinTmfViewAction

java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.jface.action.AbstractAction
org.eclipse.jface.action.Action
org.eclipse.tracecompass.tmf.ui.views.PinTmfViewAction
All Implemented Interfaces:
org.eclipse.jface.action.IAction

public class PinTmfViewAction extends org.eclipse.jface.action.Action
Author:
Bernd Hufmann
  • 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

    Constructors
    Constructor
    Description
    Creates a new PinTmfViewAction as a check box.
    Creates a new PinTmfViewAction as a drop-down.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns the pin state.
    void
    run()
     
    void
    Sets the pinned trace.

    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, removePropertyChangeListener

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PinTmfViewAction

      public PinTmfViewAction()
      Creates a new PinTmfViewAction as a check box. The action is controlled through the IAction.CHECKED property.
    • PinTmfViewAction

      public PinTmfViewAction(ITmfPinnable pinnable)
      Creates a new PinTmfViewAction as a drop-down. The action is controlled through the @link ITmfPinnable interface.
      Parameters:
      pinnable - the pinnable view
      Since:
      3.2
  • Method Details

    • run

      public void run()
      Specified by:
      run in interface org.eclipse.jface.action.IAction
      Overrides:
      run in class org.eclipse.jface.action.Action
    • isPinned

      public boolean isPinned()
      Returns the pin state.
      Returns:
      true if the action is pinned, false otherwise.
      Since:
      3.2
    • setPinnedTrace

      public void setPinnedTrace(ITmfTrace trace)
      Sets the pinned trace.
      Parameters:
      trace - the pinned trace, or null to unpin
      Since:
      3.2