Author: tfmorris
Date: 2008-11-10 14:53:18-0800
New Revision: 16016

Modified:
   trunk/src/argouml-app/src/org/argouml/kernel/Project.java

Log:
Deprecate getActiveDiagram/setActiveDiagram for uses other than argo.tee 
persistence

Modified: trunk/src/argouml-app/src/org/argouml/kernel/Project.java
Url: 
http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/kernel/Project.java?view=diff&rev=16016&p1=trunk/src/argouml-app/src/org/argouml/kernel/Project.java&p2=trunk/src/argouml-app/src/org/argouml/kernel/Project.java&r1=16015&r2=16016
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/kernel/Project.java   (original)
+++ trunk/src/argouml-app/src/org/argouml/kernel/Project.java   2008-11-10 
14:53:18-0800
@@ -634,19 +634,28 @@
     public void setVetoSupport(VetoableChangeSupport theVetoSupport);
 
     /**
-     * Get the current viewed diagram. <p>
+     * Get the current viewed diagram.
+     * <p>
+     * Used by "argo.tee" to save the name of this diagram, so that the same
+     * diagram can be initially shown when reloading this project. This 
probably
+     * needs to be converted to an ordered list of open diagram windows to
+     * support MDI.
      * 
-     * Used by "argo.tee" to save the name 
-     * of this diagram, so that the same diagram 
-     * can be initially shown when reloading this project..
-     *
      * @return the current viewed diagram
+     * @deprecated for 0.27.2 by tfmorris for all uses other than argo.tee. The
+     *             active diagram is a concept associated with the current
+     *             editing window, not a project. It can be retrieved from
+     *          [EMAIL PROTECTED] 
org.argouml.uml.diagram.DiagramUtils#getActiveDiagram()}.
      */
+    @Deprecated
     public ArgoDiagram getActiveDiagram();
 
     /**
      * @param theDiagram the ArgoDiagram
+     * @deprecated for 0.27.2 by tfmorris.  The active diagram is a concept
+     * associated with the current editing window, not a project.
      */
+    @Deprecated
     public void setActiveDiagram(final ArgoDiagram theDiagram);
     
     /**

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to