java.lang.Objectorg.eclipse.jface.action.Action
com.ibm.jdg2e.msseditor.ui.actions.MiniSSEditorAction
com.ibm.jdg2e.msseditor.ui.actions.ChangeAlignmentAction
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, 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 |
addPropertyChangeListener, convertAccelerator, convertAccelerator, findKeyCode, findKeyString, findModifier, findModifierString, firePropertyChange, firePropertyChange, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getText, getToolTipText, isChecked, isEnabled, notifyResult, removeAcceleratorText, removeMnemonics, removePropertyChangeListener, runWithEvent, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipText |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ChangeAlignmentAction(java.lang.String id,
int newAlignment)
| Method Detail |
public int getStyle()
public void run()
public void setActiveEditor(AbstractMiniSSEditor editor)
setActiveEditor in class MiniSSEditorAction