com.pnp.xfeature.actions
Class RemoveConstraintAction

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

public class RemoveConstraintAction
extends SelectionAction

The visual represenation of the RemoveConstraintCommand

Author:
Ondrej Rohlik, created on 13.04.2007

Field Summary
static java.lang.String ID
          unique ID of the class
 
Constructor Summary
RemoveConstraintAction(IWorkbenchPart part, org.w3c.dom.Element constraint)
          calls the super class constructor only
 
Method Summary
 void init()
          initializes the unique ID
 void run()
          creates and executes the RemoveConstraintCommand using GEF command stack; applies the action on each item of the selection
 void setConstraint(org.w3c.dom.Element constraint)
           
 
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

RemoveConstraintAction

public RemoveConstraintAction(IWorkbenchPart part,
                              org.w3c.dom.Element constraint)
calls the super class constructor only

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

init

public void init()
initializes the unique ID

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

run

public void run()
creates and executes the RemoveConstraintCommand using GEF command stack; applies the action on each item of the selection

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

setConstraint

public void setConstraint(org.w3c.dom.Element constraint)


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