org.argouml.ui.explorer
Class PerspectiveManager

java.lang.Object
  extended byorg.argouml.ui.explorer.PerspectiveManager

public class PerspectiveManager
extends java.lang.Object

Provides a model and event management for perspectives(views) of the Explorer.

Since:
0.15.2

Field Summary
private static org.apache.log4j.Logger cat
           
private static PerspectiveManager instance
           
private  java.util.List perspectiveListeners
           
private  java.util.List perspectives
           
private  java.util.List rules
           
 java.lang.String RULES_PACKAGE
           
 
Constructor Summary
private PerspectiveManager()
          Creates a new instance of PerspectiveManager
 
Method Summary
 void addAllPerspectives(java.util.Collection newPerspectives)
           
 void addListener(PerspectiveManagerListener listener)
           
 void addPerspective(java.lang.Object perspective)
           
static PerspectiveManager getInstance()
           
 java.util.List getPerspectives()
           
 java.util.Collection getRules()
           
 void loadDefaultPerspectives()
          tries to load user defined perspectives, if it can't it calls oldLoadDefaultPerspectives() to load the default perspectives.
 void loadRules()
          hard coded rules library for now, it is quite a lot of work to get all possible rule names in "org.argouml.ui.explorer.rules" from the classpath.
 void oldLoadDefaultPerspectives()
          loads a default set of perspectives.
 void removeAllPerspectives()
           
 void removeListener(PerspectiveManagerListener listener)
           
 void removePerspective(java.lang.Object perspective)
           
 void saveUserPerspectives()
           
 java.lang.String toString()
          string representation of the perspectives in the same format as saved in the user properties.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

cat

private static org.apache.log4j.Logger cat

instance

private static PerspectiveManager instance

perspectiveListeners

private java.util.List perspectiveListeners

perspectives

private java.util.List perspectives

rules

private java.util.List rules

RULES_PACKAGE

public final java.lang.String RULES_PACKAGE
See Also:
Constant Field Values
Constructor Detail

PerspectiveManager

private PerspectiveManager()
Creates a new instance of PerspectiveManager

Method Detail

getInstance

public static PerspectiveManager getInstance()

addListener

public void addListener(PerspectiveManagerListener listener)

removeListener

public void removeListener(PerspectiveManagerListener listener)

addPerspective

public void addPerspective(java.lang.Object perspective)

addAllPerspectives

public void addAllPerspectives(java.util.Collection newPerspectives)

removePerspective

public void removePerspective(java.lang.Object perspective)

removeAllPerspectives

public void removeAllPerspectives()

getPerspectives

public java.util.List getPerspectives()

loadDefaultPerspectives

public void loadDefaultPerspectives()
tries to load user defined perspectives, if it can't it calls oldLoadDefaultPerspectives() to load the default perspectives.


oldLoadDefaultPerspectives

public void oldLoadDefaultPerspectives()
loads a default set of perspectives.


loadRules

public void loadRules()
hard coded rules library for now, it is quite a lot of work to get all possible rule names in "org.argouml.ui.explorer.rules" from the classpath.


getRules

public java.util.Collection getRules()

saveUserPerspectives

public void saveUserPerspectives()

toString

public java.lang.String toString()
string representation of the perspectives in the same format as saved in the user properties.



ArgoUML © 1996-2004 (20040316)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook