svn commit: r15228 - trunk/src/argouml-app/src/org/argouml/notation/providers/uml/AttributeNotationUml.java
| Newsgroups | gmane.comp.lang.uml.argouml.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: tfmorris
Date: 2008-07-09 21:59:05-0700
New Revision: 15228
Modified:
trunk/src/argouml-app/src/org/argouml/notation/providers/uml/AttributeNotationUml.java
Log:
Issue 5211: Remove side effect of notation parsing which modifies reference portion of model
Modified: trunk/src/argouml-app/src/org/argouml/notation/providers/uml/AttributeNotationUml.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/notation/providers/uml/AttributeNotationUml.java?view=diff&rev=15228&p1=trunk/src/argouml-app/src/org/argouml/notation/providers/uml/AttributeNotationUml.java&p2=trunk/src/argouml-app/src/org/argouml/notation/providers/uml/AttributeNotationUml.java&r1=15227&r2=15228
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/notation/providers/uml/AttributeNotationUml.java (original)
+++ trunk/src/argouml-app/src/org/argouml/notation/providers/uml/AttributeNotationUml.java 2008-07-09 21:59:05-0700
@@ -138,23 +138,7 @@
s = text.substring(start, end).trim();
if (s.length() > 0) {
// yes, there are more:
- Object model = project.getModel();
Object attrType = project.getDefaultAttributeType();
- // Force type element into given namespace if not already there
- // Dangerous! Why are we changing the model
- // as a side effect? - tfm 20070307
- // Because if the type is unknown, a class without valid
- // was created, so we MUST set it's namespace! - thn 20080709
- Object ns = Model.getFacade().getNamespace(attrType);
- while (ns != null && !Model.getFacade().isAModel(ns)) {
- ns = Model.getFacade().getNamespace(ns);
- }
- if (!project.getModels().contains(ns)) {
- // namespace not found in the project's namespace tree, so
- // set a valid namespace: (unfortunately never called, see
- // issue 5229)
- Model.getCoreHelper().setNamespace(attrType, model);
- }
Object newAttribute = Model.getUmlFactory().buildNode(
Model.getMetaTypes().getAttribute());