com.ibm.jdg2e.msseditor.ui.actions
Class ChangeAlignmentAction

java.lang.Object
  extended byorg.eclipse.core.commands.common.EventManager
      extended byorg.eclipse.jface.action.AbstractAction
          extended byorg.eclipse.jface.action.Action
              extended bycom.ibm.jdg2e.msseditor.ui.actions.MiniSSEditorAction
                  extended bycom.ibm.jdg2e.msseditor.ui.actions.ChangeAlignmentAction
All Implemented Interfaces:
org.eclipse.jface.action.IAction

public class ChangeAlignmentAction
extends MiniSSEditorAction

Action to change the column alignment of the mini-spreadsheet editor.

Note: The alignment attribute is not persisted, although a fuller implementation would probably do so.


Field Summary
 
Fields inherited from class com.ibm.jdg2e.msseditor.ui.actions.MiniSSEditorAction
editor
 
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
ChangeAlignmentAction(java.lang.String id, int newAlignment)
          Constructor.
 
Method Summary
 int getStyle()
          Alignment attribute is mutually exclusive (radio button).
 void run()
          Notify the editor to update its alignment.
 void setActiveEditor(AbstractMiniSSEditor editor)
          Since this action is shared, it must resynchronize its display to match the attributes of the newly activated editor.
 
Methods inherited from class com.ibm.jdg2e.msseditor.ui.actions.MiniSSEditorAction
getMiniSpreadsheet, 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, 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, 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

ChangeAlignmentAction

public ChangeAlignmentAction(java.lang.String id,
                             int newAlignment)
Constructor.

Method Detail

getStyle

public int getStyle()
Alignment attribute is mutually exclusive (radio button).


run

public void run()
Notify the editor to update its alignment.


setActiveEditor

public void setActiveEditor(AbstractMiniSSEditor editor)
Since this action is shared, it must resynchronize its display to match the attributes of the newly activated editor.

Overrides:
setActiveEditor in class MiniSSEditorAction