Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/org.eclipse.gmf.codegen/templates/impl/diagram/editparts/NodeEditPart.xpt9
1 files changed, 9 insertions, 0 deletions
diff --git a/plugins/org.eclipse.gmf.codegen/templates/impl/diagram/editparts/NodeEditPart.xpt b/plugins/org.eclipse.gmf.codegen/templates/impl/diagram/editparts/NodeEditPart.xpt
index d81ae9608..70a5bf3a4 100644
--- a/plugins/org.eclipse.gmf.codegen/templates/impl/diagram/editparts/NodeEditPart.xpt
+++ b/plugins/org.eclipse.gmf.codegen/templates/impl/diagram/editparts/NodeEditPart.xpt
@@ -371,6 +371,15 @@ new org.eclipse.gmf.runtime.diagram.ui.editpolicies.BorderItemSelectionEditPolic
return getPrimaryShape().«childViewmap.getterName»();
}
«ENDLET»«ENDFOREACH-»
+«FOREACH getPinnedCompartmentsWithModeledViewmaps(self) AS compartment-»
+«LET compartment.viewmap.oclAsType(gmfgen::ModeledViewmap) AS childViewmap-»
+«LET childViewmap.figureModel.oclAsType(gmfgraph::Compartment).accessor.accessor AS getterName-»
+ if (editPart instanceof «compartment.getEditPartQualifiedClassName()») {
+ return getPrimaryShape().«getterName»();
+ }
+«ENDLET-»
+«ENDLET-»
+«ENDFOREACH-»
«IF hasBorderItems(self)-»
if (editPart instanceof org.eclipse.gmf.runtime.diagram.ui.editparts.IBorderItemEditPart) {
return getBorderedFigure().getBorderItemContainer();

Back to the top