com.tensegrity.skeleton.swt.commands
Class SwtCommonBaseCommand

java.lang.Object
  extended bycom.tensegrity.generic.command.BaseCommand
      extended bycom.tensegrity.skeleton.commands.CommonBaseCommand
          extended bycom.tensegrity.skeleton.swt.commands.SwtCommonBaseCommand
All Implemented Interfaces:
Command
Direct Known Subclasses:
SwtDocumentCommand, SwtLoadStylesCommand, SwtNewDocumentCommand

public class SwtCommonBaseCommand
extends CommonBaseCommand

This subclass of CommonBaseCommand is used, directly or indirectly, as the parent class of commands valid solely within SWT-based applications.

Version:
$Id: SwtCommonBaseCommand.java,v 1.5 2005/12/16 09:09:42 BurkhardWick Exp $
Author:
S�bastien Guyon

Constructor Summary
SwtCommonBaseCommand(ApplicationFrame applicationFrame, java.lang.String command)
           This is the default constructor for SwtCommonBaseCommands.
 
Method Summary
protected  GraphApplication getGraphApplication()
          Returns the current GraphApplication.
protected  GraphDocument newGraphDocumentFromFactory(java.lang.String name, GraphApplication graphapplication, GraphController graphcontroller, VisualGraphView visualgraphview)
          This method invokes the newGraphDocument method in the document factory and can be overridden by subclasses to perform custom post-intialization work.
 
Methods inherited from class com.tensegrity.skeleton.commands.CommonBaseCommand
getApplicationFrame, getTitle, perform
 
Methods inherited from class com.tensegrity.generic.command.BaseCommand
getDescription, getId, getPerformDescription, isEnabled, setEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SwtCommonBaseCommand

public SwtCommonBaseCommand(ApplicationFrame applicationFrame,
                            java.lang.String command)

This is the default constructor for SwtCommonBaseCommands.

Parameters:
applicationFrame - Application context for this command.
command - the ID of this command.
Method Detail

getGraphApplication

protected GraphApplication getGraphApplication()
Returns the current GraphApplication.

Returns:
the GraphApplication instance.

newGraphDocumentFromFactory

protected GraphDocument newGraphDocumentFromFactory(java.lang.String name,
                                                    GraphApplication graphapplication,
                                                    GraphController graphcontroller,
                                                    VisualGraphView visualgraphview)
This method invokes the newGraphDocument method in the document factory and can be overridden by subclasses to perform custom post-intialization work.

Parameters:
name - name of the document.
graphapplication - reference to the application context.
graphcontroller - the graphcontroller instance that keeps the model.
visualgraphview - the visualgraph instance to show in the document.
Returns:
the created graph document instance.


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.