Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian W. Damus2014-01-10 18:45:43 +0000
committerChristian W. Damus2014-01-10 18:45:43 +0000
commit9b4e4906f21da4f53dd8be6c72f1313eed2a920f (patch)
treef87c95acef930603996eb6054d55616769e15f32
parentd2af1f2e27f27126b6bbb2b20cb2665ab45776e1 (diff)
downloadorg.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.java8
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)));

Back to the top