Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.gmf.codegen.xtend/xtend/impl/diagram/editparts/CompartmentEditPart.xtend')
-rw-r--r--plugins/org.eclipse.gmf.codegen.xtend/xtend/impl/diagram/editparts/CompartmentEditPart.xtend9
1 files changed, 2 insertions, 7 deletions
diff --git a/plugins/org.eclipse.gmf.codegen.xtend/xtend/impl/diagram/editparts/CompartmentEditPart.xtend b/plugins/org.eclipse.gmf.codegen.xtend/xtend/impl/diagram/editparts/CompartmentEditPart.xtend
index d39bc264f..c06300066 100644
--- a/plugins/org.eclipse.gmf.codegen.xtend/xtend/impl/diagram/editparts/CompartmentEditPart.xtend
+++ b/plugins/org.eclipse.gmf.codegen.xtend/xtend/impl/diagram/editparts/CompartmentEditPart.xtend
@@ -144,14 +144,9 @@ import org.eclipse.gmf.codegen.xtend.annotations.Localization import xpt.provide
return this;
}
«ENDFOR»
- «IF listCompartmentHasChildren(it)»
+ «IF !listCompartmentHasChildren(it)»return getParent().getTargetEditPart(request);«ENDIF»
}
- return getParent().getTargetEditPart(request);
- «ELSE»
- return getParent().getTargetEditPart(request);
- }
- return super.getTargetEditPart(request);
- «ENDIF»
+ return «IF listCompartmentHasChildren(it)»getParent()«ELSE»super«ENDIF».getTargetEditPart(request);
}
'''

Back to the top