Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian W. Damus2015-02-19 17:15:16 +0000
committerChristian W. Damus2015-02-19 17:15:16 +0000
commit21501347ce0082fd97307ead125a9bb069b9020e (patch)
treec304b18c46d75613963c6dcff4b731da57536b8c /plugins/uml/assistants/org.eclipse.papyrus.uml.profile.assistants.generator/src/org/eclipse/papyrus/uml/profile/assistants/generator/ModelingAssistantProviderRule.xtend
parentd97a5956274ba189966b49c7f2201aaaab936bcd (diff)
downloadorg.eclipse.papyrus-21501347ce0082fd97307ead125a9bb069b9020e.tar.gz
org.eclipse.papyrus-21501347ce0082fd97307ead125a9bb069b9020e.tar.xz
org.eclipse.papyrus-21501347ce0082fd97307ead125a9bb069b9020e.zip
Bug 460363: [Assistants] Popup assistants generated for some elements that should be connections
https://bugs.eclipse.org/bugs/show_bug.cgi?id=460363 Ensure that elements of the following types are considered as relationship-like for the purpose of visualization as connections, not nodes: - Connector - ActivityEdge - Transition - Message - GeneralizationSet
Diffstat (limited to 'plugins/uml/assistants/org.eclipse.papyrus.uml.profile.assistants.generator/src/org/eclipse/papyrus/uml/profile/assistants/generator/ModelingAssistantProviderRule.xtend')
-rw-r--r--plugins/uml/assistants/org.eclipse.papyrus.uml.profile.assistants.generator/src/org/eclipse/papyrus/uml/profile/assistants/generator/ModelingAssistantProviderRule.xtend5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.assistants.generator/src/org/eclipse/papyrus/uml/profile/assistants/generator/ModelingAssistantProviderRule.xtend b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.assistants.generator/src/org/eclipse/papyrus/uml/profile/assistants/generator/ModelingAssistantProviderRule.xtend
index c9cb22d39d9..4cc780fb28f 100644
--- a/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.assistants.generator/src/org/eclipse/papyrus/uml/profile/assistants/generator/ModelingAssistantProviderRule.xtend
+++ b/plugins/uml/assistants/org.eclipse.papyrus.uml.profile.assistants.generator/src/org/eclipse/papyrus/uml/profile/assistants/generator/ModelingAssistantProviderRule.xtend
@@ -17,10 +17,9 @@ import javax.inject.Singleton
import org.eclipse.papyrus.infra.gmfdiag.assistant.AssistantFactory
import org.eclipse.papyrus.infra.gmfdiag.assistant.ModelingAssistantProvider
import org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.Identifiers
+import org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.UML
import org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.UMLElementTypes
import org.eclipse.uml2.uml.Profile
-import org.eclipse.uml2.uml.UMLPackage
-import org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.UML
/**
* Transformation rule for generating a {@link ModelingAssistantProvider} from a UML {@link Profile}.
@@ -52,7 +51,7 @@ class ModelingAssistantProviderRule {
// And filters for the same, which the user may employ in edits of the model
profileElementTypes.forEach[toElementTypeFilter(umlProfile)]
- if (!UMLPackage.Literals.RELATIONSHIP.isSuperTypeOf(ext.metaclass.EClass)) {
+ if (!ext.metaclass.EClass.isRelationship) {
// Popup assistants to create non-relationships
popupAssistants.addAll(ext.metaclass.diagramSpecificElementTypes.map[ext.toPopupAssistant(it)])
} else {

Back to the top