svn commit: r17051 - trunk/src/argouml-app/src/org/argouml/profile/CoreProfileReference.java
Thomas Neustupny <[email protected]>
| Newsgroups | gmane.comp.lang.uml.argouml.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: thn
Date: 2009-04-06 10:23:48-0700
New Revision: 17051
Modified:
trunk/src/argouml-app/src/org/argouml/profile/CoreProfileReference.java
Log:
UML2: allow to change the static profile paths to the uml22 directory (intermediate solution)
Modified: trunk/src/argouml-app/src/org/argouml/profile/CoreProfileReference.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/profile/CoreProfileReference.java?view=diff&pathrev=17051&r1=17050&r2=17051
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/profile/CoreProfileReference.java (original)
+++ trunk/src/argouml-app/src/org/argouml/profile/CoreProfileReference.java 2009-04-06 10:23:48-0700
@@ -34,10 +34,10 @@
*/
public class CoreProfileReference extends ProfileReference {
- static final String PROFILES_RESOURCE_PATH =
+ static String PROFILES_RESOURCE_PATH =
"/org/argouml/profile/profiles/uml14/";
- static final String PROFILES_BASE_URL =
+ static String PROFILES_BASE_URL =
"http://argouml.org/profiles/uml14/";
/**
@@ -59,4 +59,16 @@
assert !"".equals(fileName)
: "the empty string isn't acceptable as the profile file name.";
}
+
+ /**
+ * Sets the directory name where the profiles can be found. Initially,
+ * 'uml14' is used. TODO: Intermediate solution for UML 2.x support,
+ * please implement a better solution.
+ *
+ * @param dir Name of the directory for the profiles
+ */
+ public static void setProfileDirectory(String dir) {
+ PROFILES_RESOURCE_PATH = "/org/argouml/profile/profiles/" + dir + '/';
+ PROFILES_BASE_URL = "http://argouml.org/profiles" + dir + '/';
+ }
}
------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=5905&dsMessageId=1563368
To unsubscribe from this discussion, e-mail: [[email protected]].