be.ac.vub.cocompose.eclipse.commands
Class ApplySolutionPatternCommand

java.lang.Object
  extended byorg.eclipse.gef.commands.Command
      extended bybe.ac.vub.cocompose.eclipse.commands.ApplySolutionPatternCommand

public class ApplySolutionPatternCommand
extends Command

Eclipse GEF command for applying a solution pattern.

Since:
0.2.11
Version:
0.2.11, 17/05/2004
Author:
Dennis Wagelaar

Constructor Summary
ApplySolutionPatternCommand(CoComposeEditor editor, ModelFactory factory)
          Creates an ApplySolutionPatternCommand.
 
Method Summary
 void execute()
           
 SolutionPattern getSolutionPattern()
          Gets the solution pattern to apply.
protected  void primExecute()
          Execute implementation.
 void redo()
           
 void setSolutionPattern(SolutionPattern pattern)
          Sets the solution pattern to apply.
 void undo()
           
 
Methods inherited from class org.eclipse.gef.commands.Command
canExecute, canUndo, chain, dispose, getDebugLabel, getLabel, setDebugLabel, setLabel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplySolutionPatternCommand

public ApplySolutionPatternCommand(CoComposeEditor editor,
                                   ModelFactory factory)
Creates an ApplySolutionPatternCommand.

Parameters:
editor - the CoCompose editor.
factory - the factory to create new elements.
Method Detail

getSolutionPattern

public SolutionPattern getSolutionPattern()
Gets the solution pattern to apply.

Returns:
the solution pattern to apply.

setSolutionPattern

public void setSolutionPattern(SolutionPattern pattern)
Sets the solution pattern to apply.

Parameters:
pattern - the solution pattern to apply.

execute

public void execute()
See Also:
Command.execute()

redo

public void redo()
See Also:
Command.redo()

undo

public void undo()
See Also:
Command.undo()

primExecute

protected void primExecute()
Execute implementation.

See Also:
Command.execute()