svn commit: r15997 - trunk/src/argouml-app/src/org/argouml/ui/DisplayTextTree.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: tfmorris
Date: 2008-11-08 15:22:27-0800
New Revision: 15997

Modified:
   trunk/src/argouml-app/src/org/argouml/ui/DisplayTextTree.java

Log:
Replace GEF Diagram dependency with ArgoDiagram

Modified: trunk/src/argouml-app/src/org/argouml/ui/DisplayTextTree.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/ui/DisplayTextTree.java?view=diff&rev=15997&p1=trunk/src/argouml-app/src/org/argouml/ui/DisplayTextTree.java&p2=trunk/src/argouml-app/src/org/argouml/ui/DisplayTextTree.java&r1=15996&r2=15997
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/ui/DisplayTextTree.java	(original)
+++ trunk/src/argouml-app/src/org/argouml/ui/DisplayTextTree.java	2008-11-08 15:22:27-0800
@@ -27,13 +27,11 @@
 import java.text.MessageFormat;
 import java.util.ArrayList;
 import java.util.Collection;
-
 import java.util.HashMap;
 import java.util.Hashtable;
 import java.util.Iterator;
 import java.util.List;
 
-
 import javax.swing.JTree;
 import javax.swing.tree.TreeModel;
 import javax.swing.tree.TreePath;
@@ -49,8 +47,8 @@
 import org.argouml.model.Model;
 import org.argouml.notation.NotationProvider;
 import org.argouml.notation.NotationProviderFactory2;
+import org.argouml.uml.diagram.ArgoDiagram;
 import org.argouml.uml.ui.UMLTreeCellRenderer;
-import org.tigris.gef.base.Diagram;
 
 /**
  * This is the JTree that is the GUI component view of the UML model
@@ -261,8 +259,8 @@
             }            
         }
 
-        if (value instanceof Diagram) {
-            return ((Diagram) value).getName();
+        if (value instanceof ArgoDiagram) {
+            return ((ArgoDiagram) value).getName();
         }
 
         if (value != null) {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.