Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.gmf.codegen/templates/impl/diagram/editparts/CompartmentEditPart.xpt')
-rw-r--r--plugins/org.eclipse.gmf.codegen/templates/impl/diagram/editparts/CompartmentEditPart.xpt9
1 files changed, 2 insertions, 7 deletions
diff --git a/plugins/org.eclipse.gmf.codegen/templates/impl/diagram/editparts/CompartmentEditPart.xpt b/plugins/org.eclipse.gmf.codegen/templates/impl/diagram/editparts/CompartmentEditPart.xpt
index 8b24f11ce..ed3d04fbd 100644
--- a/plugins/org.eclipse.gmf.codegen/templates/impl/diagram/editparts/CompartmentEditPart.xpt
+++ b/plugins/org.eclipse.gmf.codegen/templates/impl/diagram/editparts/CompartmentEditPart.xpt
@@ -122,14 +122,9 @@
return this;
}
«ENDFOREACH-»
- «IF listCompartmentHasChildren(self)-»
+ «IF not listCompartmentHasChildren(self)»return getParent().getTargetEditPart(request);«ENDIF-»
}
- return getParent().getTargetEditPart(request);
- «ELSE-»
- return getParent().getTargetEditPart(request);
- }
- return super.getTargetEditPart(request);
- «ENDIF-»
+ return «IF listCompartmentHasChildren(self)»getParent()«ELSE»super«ENDIF».getTargetEditPart(request);
}
«ENDDEFINE»

Back to the top