svn commit: r19104 - trunk/src/argouml-app/src/org/argouml/profile/UserDefinedProfileHelper.java
| Newsgroups | gmane.comp.lang.uml.argouml.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: thn
Date: 2011-03-03 13:07:06-0800
New Revision: 19104
Modified:
trunk/src/argouml-app/src/org/argouml/profile/UserDefinedProfileHelper.java
Log:
make .uml files loadable as profiles, and prevent mass loading of .xml files
Modified: trunk/src/argouml-app/src/org/argouml/profile/UserDefinedProfileHelper.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/profile/UserDefinedProfileHelper.java?view=diff&pathrev=19104&r1=19103&r2=19104
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/profile/UserDefinedProfileHelper.java (original)
+++ trunk/src/argouml-app/src/org/argouml/profile/UserDefinedProfileHelper.java 2011-03-03 13:07:06-0800
@@ -71,6 +71,7 @@
String s = file.getName().toLowerCase();
return file.isDirectory() || (file.isFile() && (
s.endsWith(".xmi") || s.endsWith(".xml")
+ || s.endsWith(".uml") // for AndroMDA
|| s.endsWith(".xmi.zip") || s.endsWith(".xml.zip")));
}
@@ -130,7 +131,8 @@
}
} else {
String s = curFile.getName().toLowerCase();
- if (s.endsWith(".xmi") || s.endsWith(".xml")
+ if (s.endsWith(".xmi")
+ || s.endsWith(".uml") // for AndroMDA profiles
|| s.endsWith(".xmi.zip")
|| s.endsWith(".xml.zip")) {
results.add(curFile);
------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=5905&dsMessageId=2709399
To unsubscribe from this discussion, e-mail: [[email protected]].