com.tensegrity.skeleton.swt.commands
Class SwtCloneDocumentCommand
java.lang.Object
com.tensegrity.generic.command.BaseCommand
com.tensegrity.skeleton.commands.CommonBaseCommand
com.tensegrity.skeleton.swt.commands.SwtCommonBaseCommand
com.tensegrity.skeleton.swt.commands.SwtDocumentCommand
com.tensegrity.skeleton.swt.commands.SwtGraphDocumentCommand
com.tensegrity.skeleton.swt.commands.SwtCloneDocumentCommand
- All Implemented Interfaces:
- Command
- public class SwtCloneDocumentCommand
- extends SwtGraphDocumentCommand
This command, to be used within applications in a SWT context, creates a
clone of the currently active
GraphDocument and adds it
to the application's documents container.
- Version:
- $Id: SwtCloneDocumentCommand.java,v 1.4 2005/08/01 09:22:19 SebastienGuyon Exp $
- Author:
- MichaelKegel, Gilles Iachelini, Stepan RUtz, S�bastien Guyon
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SwtCloneDocumentCommand
public SwtCloneDocumentCommand(ApplicationFrame applicationFrame,
java.lang.String command)
- Creates a command to clone documents.
- Parameters:
applicationFrame - Application context for this command.command - the ID of this command.
perform
public void perform(java.lang.Object args)
- Description copied from class:
CommonBaseCommand
- Updates the StatusBar with this commands title string.
(non-Javadoc)
- Specified by:
perform in interface Command- Overrides:
perform in class CommonBaseCommand
- See Also:
Command.perform(java.lang.Object)
newDocument
protected GraphDocument newDocument(java.lang.String name,
GraphController controller,
VisualGraphView visualgraphview)
- This methods adds a new document to the tabbed pane.
- Parameters:
name - the initial name for the documentcontroller - a controller for the graph.visualgraphview - the VisualGraphView to display.
- Returns:
- the cloned
GraphDocument.
Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.