com.tensegrity.skeleton.commands
Class OpenLayoutsCommand

java.lang.Object
  extended bycom.tensegrity.generic.command.BaseCommand
      extended bycom.tensegrity.skeleton.commands.CommonBaseCommand
          extended bycom.tensegrity.skeleton.commands.OpenLayoutsCommand
All Implemented Interfaces:
Command

public class OpenLayoutsCommand
extends CommonBaseCommand

OpenLayoutsCommand

Author:
BurkhardWick

Constructor Summary
OpenLayoutsCommand(ApplicationFrame appFrame, java.lang.String id)
          Constructor
 
Method Summary
protected  void checkConflicts(ElementDefinitionWrapper edw)
           
protected  java.util.List getOpenedVisualGraphViewList()
          Returns the list of all currently used VisualGraphView instances of the currently open documents.
protected  void loadDefinitions(java.io.File file)
           
 void perform(java.lang.Object args)
          Updates the StatusBar with this commands title string.
protected  void updateRepository(AttributeList repository, java.lang.String resID, java.lang.String name, boolean createNewCat)
           
protected  void updateRepository(java.io.File file, boolean createNewCat)
           
 
Methods inherited from class com.tensegrity.skeleton.commands.CommonBaseCommand
getApplicationFrame, getTitle
 
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

OpenLayoutsCommand

public OpenLayoutsCommand(ApplicationFrame appFrame,
                          java.lang.String id)
Constructor

Parameters:
appFrame -
id -
Method Detail

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)

loadDefinitions

protected void loadDefinitions(java.io.File file)
                        throws XMLParseException,
                               ReadException,
                               java.io.IOException,
                               IllegalAttributeException,
                               ConstraintViolationException,
                               java.lang.CloneNotSupportedException
Parameters:
file -
Throws:
XMLParseException
ReadException
java.io.IOException
java.lang.CloneNotSupportedException
ConstraintViolationException
IllegalAttributeException

getOpenedVisualGraphViewList

protected final java.util.List getOpenedVisualGraphViewList()
Returns the list of all currently used VisualGraphView instances of the currently open documents.

Returns:
List of VisualGraphView instances.

checkConflicts

protected void checkConflicts(ElementDefinitionWrapper edw)
                       throws XMLParseException,
                              ReadException,
                              java.io.IOException,
                              IllegalAttributeException,
                              ConstraintViolationException,
                              java.lang.CloneNotSupportedException
Parameters:
edw -
Throws:
XMLParseException
ReadException
java.io.IOException
java.lang.CloneNotSupportedException
ConstraintViolationException
IllegalAttributeException

updateRepository

protected void updateRepository(java.io.File file,
                                boolean createNewCat)
                         throws XMLParseException,
                                ReadException,
                                java.io.IOException
Parameters:
file -
createNewCat -
Throws:
XMLParseException
ReadException
java.io.IOException

updateRepository

protected void updateRepository(AttributeList repository,
                                java.lang.String resID,
                                java.lang.String name,
                                boolean createNewCat)
                         throws XMLParseException,
                                ReadException,
                                java.io.IOException
Parameters:
repository -
resID -
name -
createNewCat -
Throws:
XMLParseException
ReadException
java.io.IOException


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