Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian W. Damus2015-02-02 23:41:40 +0000
committerChristian W. Damus2015-02-02 23:41:40 +0000
commitd934ce7183fde0694bc66df4dd4a9c5abca61ce3 (patch)
tree69d2fb327d8c5e5112048cb629e5d8e01b3ea3bd /plugins/developer/org.eclipse.papyrus.def/xtend
parent18aeeeae72a08cb7051514290068ef09d8443d90 (diff)
downloadorg.eclipse.papyrus-d934ce7183fde0694bc66df4dd4a9c5abca61ce3.tar.gz
org.eclipse.papyrus-d934ce7183fde0694bc66df4dd4a9c5abca61ce3.tar.xz
org.eclipse.papyrus-d934ce7183fde0694bc66df4dd4a9c5abca61ce3.zip
451230: Restore missing edit policy in Use Case Diagram
https://bugs.eclipse.org/bugs/show_bug.cgi?id=451230 Restore the Xtend template change lost in a bad merge commit ae20f7c that installs the DefaultGraphicalNodeEditPolicy in NodeEditParts and regenerate the Use Case Diagram. This fixes a regression in the creation of Associations in use case diagrams (the palette tool failed to create associations between use cases and actors in any combination).
Diffstat (limited to 'plugins/developer/org.eclipse.papyrus.def/xtend')
-rw-r--r--plugins/developer/org.eclipse.papyrus.def/xtend/aspects/impl/diagram/editparts/NodeEditPart.xtend7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/developer/org.eclipse.papyrus.def/xtend/aspects/impl/diagram/editparts/NodeEditPart.xtend b/plugins/developer/org.eclipse.papyrus.def/xtend/aspects/impl/diagram/editparts/NodeEditPart.xtend
index f6ab147f25e..cc8b7381f91 100644
--- a/plugins/developer/org.eclipse.papyrus.def/xtend/aspects/impl/diagram/editparts/NodeEditPart.xtend
+++ b/plugins/developer/org.eclipse.papyrus.def/xtend/aspects/impl/diagram/editparts/NodeEditPart.xtend
@@ -33,7 +33,6 @@ import utils.EditPartsUtils_qvto
import xpt.Common
import xpt.diagram.editparts.EditPartFactory
import xpt.diagram.editparts.Utils_qvto
-import xpt.diagram.editpolicies.TextSelectionEditPolicy
import xpt.CodeStyle
import xpt.diagram.ViewmapAttributesUtils_qvto
import org.eclipse.papyrus.papyrusgmfgenextension.SpecificNodePlate
@@ -126,6 +125,12 @@ override addFixedChild (GenNode it)'''
}
'''
+ override installGraphicalNodeEditPolicy(GenNode it) '''
+
+ installEditPolicy(org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE, new org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultGraphicalNodeEditPolicy());
+
+ '''
+
override def setLineWidth(GenNode it) '''
«generatedMemberComment»
protected void setLineWidth(int width) {

Back to the top