diff options
author | Christian W. Damus | 2014-01-10 18:45:43 +0000 |
---|---|---|
committer | Christian W. Damus | 2014-01-10 18:45:43 +0000 |
commit | 9b4e4906f21da4f53dd8be6c72f1313eed2a920f (patch) | |
tree | f87c95acef930603996eb6054d55616769e15f32 | |
parent | d2af1f2e27f27126b6bbb2b20cb2665ab45776e1 (diff) | |
download | org.eclipse.uml2-bugs/401804.tar.gz org.eclipse.uml2-bugs/401804.tar.xz org.eclipse.uml2-bugs/401804.zip |
[401804] Initialize ePackageNsURIToProfileLocationMap for standalone usagebugs/401804
https://bugs.eclipse.org/bugs/show_bug.cgi?id=401804
Code review comments: explain some odd-looking code and make consistent use of type name imports.
-rw-r--r-- | plugins/org.eclipse.uml2.uml/src/org/eclipse/uml2/uml/UMLPlugin.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/org.eclipse.uml2.uml/src/org/eclipse/uml2/uml/UMLPlugin.java b/plugins/org.eclipse.uml2.uml/src/org/eclipse/uml2/uml/UMLPlugin.java index 7847a4e11..711f9e0f3 100644 --- a/plugins/org.eclipse.uml2.uml/src/org/eclipse/uml2/uml/UMLPlugin.java +++ b/plugins/org.eclipse.uml2.uml/src/org/eclipse/uml2/uml/UMLPlugin.java @@ -15,6 +15,7 @@ package org.eclipse.uml2.uml; import java.util.HashMap; +import java.util.HashSet; import java.util.Map; import java.util.Set; @@ -283,9 +284,10 @@ public final class UMLPlugin private static void mapPlatformPluginURIs() { // The resources plug-in doesn't register any genmodels, so EMF will - // not automatically map its platform:/plugin location. Let's force - // the issue - Set<URI> umlResourceURIs = new java.util.HashSet<URI>(); + // not automatically map its platform:/plugin/... URI to a location + // URI. Let's force the issue by asking EMF to map some + // representative URI that maps to the resources plug-in + Set<URI> umlResourceURIs = new HashSet<URI>(); umlResourceURIs.add(URIConverter.INSTANCE.normalize(URI .createURI(UMLResource.LIBRARIES_PATHMAP))); |