svn commit: r15551 - trunk/src/argouml-core-model-mdr/src/org/argouml/model/mdr/UmlFactoryMDRImpl.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: tfmorris
Date: 2008-08-11 17:02:51-0700
New Revision: 15551

Modified:
   trunk/src/argouml-core-model-mdr/src/org/argouml/model/mdr/UmlFactoryMDRImpl.java

Log:
Issue 4994: Update TODO with more information

Modified: trunk/src/argouml-core-model-mdr/src/org/argouml/model/mdr/UmlFactoryMDRImpl.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-core-model-mdr/src/org/argouml/model/mdr/UmlFactoryMDRImpl.java?view=diff&rev=15551&p1=trunk/src/argouml-core-model-mdr/src/org/argouml/model/mdr/UmlFactoryMDRImpl.java&p2=trunk/src/argouml-core-model-mdr/src/org/argouml/model/mdr/UmlFactoryMDRImpl.java&r1=15550&r2=15551
==============================================================================
--- trunk/src/argouml-core-model-mdr/src/org/argouml/model/mdr/UmlFactoryMDRImpl.java	(original)
+++ trunk/src/argouml-core-model-mdr/src/org/argouml/model/mdr/UmlFactoryMDRImpl.java	2008-08-11 17:02:51-0700
@@ -33,7 +33,6 @@
 
 import javax.jmi.reflect.InvalidObjectException;
 import javax.jmi.reflect.RefObject;
-import javax.jmi.reflect.RefPackage;
 
 import org.apache.log4j.Logger;
 import org.argouml.model.DummyModelCommand;
@@ -615,9 +614,11 @@
         if (Model.getModelManagementHelper().isReadOnly(fromElement)) {
             // Don't allow connections to be created from a read only
             // model element to any other
-            // TODO: Maybe we should allow association so long as both ends
-            // are not read only. We would then have to reverse the ends in
-            // buildConnection and force to unidirectional.
+            // TODO: This should be considered a workaround.  It only works
+            // because, by default, we place newly created relationships in
+            // the namespace of the fromElement.  The correct behavior in
+            // the presence of read-only elements really depends on the type of
+            // connection as well as the writeability of both ends.
             return false;
         }
         // Get the list of valid model item pairs for the given connection type
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.