org.eclipse.cdt.debug.internal.ui.sourcelookup
Class SourceContainerAction

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.cdt.debug.internal.ui.sourcelookup.SourceContainerAction
All Implemented Interfaces:
org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelectionChangedListener
Direct Known Subclasses:
AddContainerAction, DownAction, EditContainerAction, RemoveAction, UpAction

public abstract class SourceContainerAction
extends org.eclipse.ui.actions.SelectionListenerAction

The abstract class for all source lookup actions.


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
SourceContainerAction(java.lang.String label)
          The constructor for the action
 
Method Summary
 void setButton(org.eclipse.swt.widgets.Button button)
          Sets the button that invokes this action
 void setEnabled(boolean enabled)
           
 void setShell(org.eclipse.swt.widgets.Shell shell)
          Sets the shell used to realize this action's dialog (if any).
 void setViewer(SourceContainerViewer viewer)
          Sets the viewer on which this action operates.
 
Methods inherited from class org.eclipse.ui.actions.BaseSelectionListenerAction
getStructuredSelection, runWithEvent, selectionChanged, selectionChanged
 
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, 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
 
Methods inherited from interface org.eclipse.jface.action.IAction
addPropertyChangeListener, removePropertyChangeListener
 

Constructor Detail

SourceContainerAction

public SourceContainerAction(java.lang.String label)
The constructor for the action

Parameters:
label - the label for the action's button
Method Detail

setViewer

public void setViewer(SourceContainerViewer viewer)
Sets the viewer on which this action operates.

Parameters:
viewer - the viewer on which this action operates

setButton

public void setButton(org.eclipse.swt.widgets.Button button)
Sets the button that invokes this action


setEnabled

public void setEnabled(boolean enabled)
Specified by:
setEnabled in interface org.eclipse.jface.action.IAction
Overrides:
setEnabled in class org.eclipse.jface.action.Action
See Also:
IAction#setEnabled(boolean)

setShell

public void setShell(org.eclipse.swt.widgets.Shell shell)
Sets the shell used to realize this action's dialog (if any).