svn commit: r17703 - trunk/src/argouml-core-model/src/org/argouml/model

Bob Tarling <[email protected]>
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: bobtarling
Date: 2009-12-23 08:15:09-0800
New Revision: 17703

Modified:
   trunk/src/argouml-core-model/src/org/argouml/model/AbstractUmlHelperDecorator.java
   trunk/src/argouml-core-model/src/org/argouml/model/UmlHelper.java

Log:
Show move buttons on model elements lists with items that can be moved.

Modified: trunk/src/argouml-core-model/src/org/argouml/model/AbstractUmlHelperDecorator.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-core-model/src/org/argouml/model/AbstractUmlHelperDecorator.java?view=diff&pathrev=17703&r1=17702&r2=17703
==============================================================================
--- trunk/src/argouml-core-model/src/org/argouml/model/AbstractUmlHelperDecorator.java	(original)
+++ trunk/src/argouml-core-model/src/org/argouml/model/AbstractUmlHelperDecorator.java	2009-12-23 08:15:09-0800
@@ -73,4 +73,11 @@
         impl.move(parent, element, direction);
     }
 
+    /*
+     * @see org.argouml.model.UmlHelper#move(java.lang.Object)
+     */
+    public boolean isMovable(Object element) {
+        return impl.isMovable(element);
+    }
+
 }

Modified: trunk/src/argouml-core-model/src/org/argouml/model/UmlHelper.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-core-model/src/org/argouml/model/UmlHelper.java?view=diff&pathrev=17703&r1=17702&r2=17703
==============================================================================
--- trunk/src/argouml-core-model/src/org/argouml/model/UmlHelper.java	(original)
+++ trunk/src/argouml-core-model/src/org/argouml/model/UmlHelper.java	2009-12-23 08:15:09-0800
@@ -76,6 +76,13 @@
     Object getDestination(Object relationShip);
     
     /**
+     * Returns true if a model element can be moved within its parent 
+     * @param parent the parent model element
+     * @param element the element to move
+     */
+    boolean isMovable(Object element);
+    
+    /**
      * This is used to change the ordering of elements that are already
      * in some container. E.g. attributes within a class. They can be moved
      * up, down or to top or bottom.

------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=5905&dsMessageId=2432650

To unsubscribe from this discussion, e-mail: [[email protected]].
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.