Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortlandre2010-03-18 18:18:28 +0000
committertlandre2010-03-18 18:18:28 +0000
commit254f0bf21beae5d5d48101e755171a7d7db4d173 (patch)
tree8b49a8bc6aca1cdd9268b1459a25e95edb2a6037 /plugins/profile-tool
parentdf8e02b6ce210c33d91c5f7408fd8f33b9627bee (diff)
downloadorg.eclipse.papyrus-254f0bf21beae5d5d48101e755171a7d7db4d173.tar.gz
org.eclipse.papyrus-254f0bf21beae5d5d48101e755171a7d7db4d173.tar.xz
org.eclipse.papyrus-254f0bf21beae5d5d48101e755171a7d7db4d173.zip
Add the sub profiles to SysML profile application
Diffstat (limited to 'plugins/profile-tool')
-rw-r--r--plugins/profile-tool/org.eclipse.papyrus.diagramprofile/src/org/eclipse/papyrus/diagramprofile/utils/StereotypeUtils.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/profile-tool/org.eclipse.papyrus.diagramprofile/src/org/eclipse/papyrus/diagramprofile/utils/StereotypeUtils.java b/plugins/profile-tool/org.eclipse.papyrus.diagramprofile/src/org/eclipse/papyrus/diagramprofile/utils/StereotypeUtils.java
index 4febccb91ee..4f0b81b7fcf 100644
--- a/plugins/profile-tool/org.eclipse.papyrus.diagramprofile/src/org/eclipse/papyrus/diagramprofile/utils/StereotypeUtils.java
+++ b/plugins/profile-tool/org.eclipse.papyrus.diagramprofile/src/org/eclipse/papyrus/diagramprofile/utils/StereotypeUtils.java
@@ -151,6 +151,12 @@ public class StereotypeUtils {
Profile profile = loadProfile(SYSML_URI, element.eResource().getResourceSet());
if (profile != null) {
element.applyProfile(profile);
+ // Apply sub profiles of SysML
+ for(Element e : profile.getOwnedElements()){
+ if(e instanceof Profile){
+ element.applyProfile((Profile)e);
+ }
+ }
}
}

Back to the top