Author: thn
Date: 2010-12-15 10:16:53-0800
New Revision: 18921
Modified:
trunk/src/argouml-app/src/org/argouml/kernel/ProjectImpl.java
Log:
UML2 only: update automatically to newest profile version
Modified: trunk/src/argouml-app/src/org/argouml/kernel/ProjectImpl.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/kernel/ProjectImpl.java?view=diff&pathrev=18921&r1=18920&r2=18921
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/kernel/ProjectImpl.java (original)
+++ trunk/src/argouml-app/src/org/argouml/kernel/ProjectImpl.java 2010-12-15 10:16:53-0800
@@ -994,7 +994,7 @@
for (Object e : Model.getModelManagementHelper().getRootElements(m)) {
if (!roots.contains(e)) {
roots.add(e);
- checkProfileFor(e);
+ checkProfileFor(e, m);
}
}
}
@@ -1150,7 +1150,7 @@
ProjectManager.getManager().setSaveEnabled(isDirty);
}
- private void checkProfileFor(Object o) {
+ private void checkProfileFor(Object o, Object m) {
Profile profile = null;
if (Model.getFacade().isAAppliedProfileElement(o)) {
Object pkg = Model.getFacade().getNamespace(o);
@@ -1161,7 +1161,7 @@
}
}
if (profile != null) {
- getProfileConfiguration().addProfile(profile, null);
+ getProfileConfiguration().addProfile(profile, m);
}
}
}
------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=5905&dsMessageId=2690964
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.