com.ibm.lab.soln.editor.extras
Class DoubleActionDelegate

java.lang.Object
  |
  +--com.ibm.lab.soln.editor.extras.DoubleActionDelegate
All Implemented Interfaces:
org.eclipse.ui.IActionDelegate, org.eclipse.ui.IEditorActionDelegate

public class DoubleActionDelegate
extends java.lang.Object
implements org.eclipse.ui.IEditorActionDelegate

Action to double the selected row(s) from the mini-spreadsheet.


Constructor Summary
DoubleActionDelegate()
           
 
Method Summary
 void run(org.eclipse.jface.action.IAction action)
          Double the cells in the selected rows.
 void selectionChanged(org.eclipse.jface.action.IAction action, org.eclipse.jface.viewers.ISelection selection)
          Enable the action if there is at least one cell containing an integer.
 void setActiveEditor(org.eclipse.jface.action.IAction action, org.eclipse.ui.IEditorPart targetEditor)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DoubleActionDelegate

public DoubleActionDelegate()
Method Detail

run

public void run(org.eclipse.jface.action.IAction action)
Double the cells in the selected rows.

Specified by:
run in interface org.eclipse.ui.IActionDelegate
See Also:
IActionDelegate.run(IAction)

selectionChanged

public void selectionChanged(org.eclipse.jface.action.IAction action,
                             org.eclipse.jface.viewers.ISelection selection)
Enable the action if there is at least one cell containing an integer.

Specified by:
selectionChanged in interface org.eclipse.ui.IActionDelegate
See Also:
IActionDelegate.selectionChanged(IAction, ISelection)

setActiveEditor

public void setActiveEditor(org.eclipse.jface.action.IAction action,
                            org.eclipse.ui.IEditorPart targetEditor)
Specified by:
setActiveEditor in interface org.eclipse.ui.IEditorActionDelegate