com.pnp.xfeature.commands
Class DirectEditCommand

java.lang.Object
  extended by Command
      extended by com.pnp.xfeature.commands.DirectEditCommand

public class DirectEditCommand
extends Command

The Command class used to rename a node of a feature model diagram

Author:
Kamil, created on 24.9.2004

Constructor Summary
DirectEditCommand()
           
 
Method Summary
 void execute()
          sets the new name
 void setModel(java.lang.Object model)
          sets the node model to the internal private variable
 void setName(java.lang.String name)
          sets the new name to the internal private variable
 void undo()
          sets the name of the feature to its old name (saved when executing the command for the first time)
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectEditCommand

public DirectEditCommand()
Method Detail

execute

public void execute()
sets the new name

See Also:
org.eclipse.gef.commands.Command#execute()

setModel

public void setModel(java.lang.Object model)
sets the node model to the internal private variable

Parameters:
model -

setName

public void setName(java.lang.String name)
sets the new name to the internal private variable

Parameters:
name -

undo

public void undo()
sets the name of the feature to its old name (saved when executing the command for the first time)

See Also:
org.eclipse.gef.commands.Command#undo()


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