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
ConstructorsConstructorDescriptionCreates a newPinTmfViewActionas a check box.PinTmfViewAction(ITmfPinnable pinnable) Creates a newPinTmfViewActionas a drop-down. -
Method Summary
Modifier and TypeMethodDescriptionbooleanisPinned()Returns the pin state.voidrun()voidsetPinnedTrace(ITmfTrace trace) 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, setToolTipTextMethods inherited from class org.eclipse.jface.action.AbstractAction
addPropertyChangeListener, removePropertyChangeListener
-
Constructor Details
-
PinTmfViewAction
public PinTmfViewAction()Creates a newPinTmfViewActionas a check box. The action is controlled through theIAction.CHECKEDproperty. -
PinTmfViewAction
Creates a newPinTmfViewActionas a drop-down. The action is controlled through the @linkITmfPinnableinterface.- Parameters:
pinnable- the pinnable view- Since:
- 3.2
-
-
Method Details
-
run
public void run()- Specified by:
runin interfaceorg.eclipse.jface.action.IAction- Overrides:
runin classorg.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
Sets the pinned trace.- Parameters:
trace- the pinned trace, or null to unpin- Since:
- 3.2
-