svn commit: r19105 - trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/UMLUtil.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: thn
Date: 2011-03-04 17:04:10-0800
New Revision: 19105

Modified:
   trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/UMLUtil.java

Log:
Allow .uml extension in XMI reference urls

Modified: trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/UMLUtil.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/UMLUtil.java?view=diff&pathrev=19105&r1=19104&r2=19105
==============================================================================
--- trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/UMLUtil.java	(original)
+++ trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/UMLUtil.java	2011-03-04 17:04:10-0800
@@ -163,7 +163,8 @@
     static Resource getResource(
             EUMLModelImplementation modelImplementation, URI uri,
             boolean readOnly) {
-        if (!"xmi".equals(uri.fileExtension())) { //$NON-NLS-1$
+        if (!"xmi".equals(uri.fileExtension()) //$NON-NLS-1$
+                && !"uml".equals(uri.fileExtension())) { //$NON-NLS-1$
             // Make sure we have a recognized file extension
             uri = uri.appendFileExtension("xmi"); //$NON-NLS-1$
         }

------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=5905&dsMessageId=2709619

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.