com.pnp.xfeature.actions
Class CutAction

java.lang.Object
  extended by SelectionAction
      extended by com.pnp.xfeature.actions.CutAction

public class CutAction
extends SelectionAction

The visual represenation of the CutCommand

Author:
Ondrej Rohlik, created on 28.4.2005

Field Summary
static java.lang.String ID
          unique ID of the class
 
Constructor Summary
CutAction(IWorkbenchPart part)
          initializes the unique ID and calls the super class constructor
 
Method Summary
 void init()
          empty
 void run()
          creates and executes the CutCommand using GEF command stack; applies the action only on the first node is selected
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

public static final java.lang.String ID
unique ID of the class

See Also:
Constant Field Values
Constructor Detail

CutAction

public CutAction(IWorkbenchPart part)
initializes the unique ID and calls the super class constructor

Parameters:
part - the workbench part to which the action belongs, here the 'part' is the editor instance
Method Detail

init

public void init()
empty

See Also:
org.eclipse.gef.ui.actions.WorkbenchPartAction#init()

run

public void run()
creates and executes the CutCommand using GEF command stack; applies the action only on the first node is selected

See Also:
org.eclipse.jface.action.IAction#run()


Copyright © 2004 - 2008 ETH Zurich and P&P Software GmbH, All Rights Reserved.