svn commit: r13142 - trunk/src/model/src/org/argouml/model/Facade.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: tfmorris
Date: 2007-07-24 12:37:11-0700
New Revision: 13142

Modified:
   trunk/src/model/src/org/argouml/model/Facade.java

Log:
Add getRootElements method

Modified: trunk/src/model/src/org/argouml/model/Facade.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/model/src/org/argouml/model/Facade.java?view=diff&rev=13142&p1=trunk/src/model/src/org/argouml/model/Facade.java&p2=trunk/src/model/src/org/argouml/model/Facade.java&r1=13141&r2=13142
==============================================================================
--- trunk/src/model/src/org/argouml/model/Facade.java	(original)
+++ trunk/src/model/src/org/argouml/model/Facade.java	2007-07-24 12:37:11-0700
@@ -2026,6 +2026,16 @@
      * @return model for the model element.
      */
     Object getModel(Object handle);
+    
+    /**
+     * Return a collection of all Elements which have no owner (ie top level
+     * elements).
+     * <p>
+     * For ArgoUML created models this will typically just return a single 
+     * top level Model model element, but models created by other tools may
+     * have other top level elements.
+     */
+    Collection getRootElements();
 
     /**
      * Get the ModelElement which is one of:
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.