Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcdamus2013-03-01 00:31:54 +0000
committercdamus2013-03-01 00:31:54 +0000
commitda68e66aae0e321af4120a84a341cd306f72cae5 (patch)
tree974d9ee04ce4eb5b8e916bcd3a238a17f84608fa
parent446c3894079e6e40d0fb00bc1919a446c0461906 (diff)
downloadorg.eclipse.papyrus-da68e66aae0e321af4120a84a341cd306f72cae5.tar.gz
org.eclipse.papyrus-da68e66aae0e321af4120a84a341cd306f72cae5.tar.xz
org.eclipse.papyrus-da68e66aae0e321af4120a84a341cd306f72cae5.zip
Don't assume that profiles are in XMI resources.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=401830
-rw-r--r--plugins/uml/profilefacet/org.eclipse.papyrus.uml.profilefacet/src/org/eclipse/papyrus/uml/profilefacet/utils/AdditionalContentsUtils.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/uml/profilefacet/org.eclipse.papyrus.uml.profilefacet/src/org/eclipse/papyrus/uml/profilefacet/utils/AdditionalContentsUtils.java b/plugins/uml/profilefacet/org.eclipse.papyrus.uml.profilefacet/src/org/eclipse/papyrus/uml/profilefacet/utils/AdditionalContentsUtils.java
index 4ec899290d5..4918f6ff7e9 100644
--- a/plugins/uml/profilefacet/org.eclipse.papyrus.uml.profilefacet/src/org/eclipse/papyrus/uml/profilefacet/utils/AdditionalContentsUtils.java
+++ b/plugins/uml/profilefacet/org.eclipse.papyrus.uml.profilefacet/src/org/eclipse/papyrus/uml/profilefacet/utils/AdditionalContentsUtils.java
@@ -1,5 +1,5 @@
/*****************************************************************************
- * Copyright (c) 2012 CEA LIST.
+ * Copyright (c) 2012, 2013 CEA LIST.
*
*
* All rights reserved. This program and the accompanying materials
@@ -9,6 +9,7 @@
*
* Contributors:
* Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation
+ * Christian W. Damus (CEA) - Don't assume that profiles are in XMI resources (CDO)
*
*****************************************************************************/
package org.eclipse.papyrus.uml.profilefacet.utils;
@@ -148,8 +149,7 @@ public class AdditionalContentsUtils {
* This is a collection, because in case of a model splitted in several file, we could have several representation for the same profile
*/
public static final Collection<ProfileFacetSet> getAllFacetSet(final Profile profile) {
- final XMIResource resource = (XMIResource)profile.eResource();
- final String profileID = resource.getID(profile);
+ final String profileID = profile.eResource().getURIFragment(profile);
final Collection<ProfileFacetSet> facetSets = new HashSet<ProfileFacetSet>();
final ResourceSet resourceSet = profile.eResource().getResourceSet();

Back to the top