Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormgolubev2011-07-17 15:39:36 +0000
committermgolubev2011-07-17 15:39:36 +0000
commite43ba62b97bbda6cda1a3303550a32421eb7393d (patch)
tree1387d9947d1b9048d67bf43fdcabd1db0f4b836f
parent5020a3ee3a2b0c3f877b0bd6f8c1925b870b7b3b (diff)
downloadorg.eclipse.gmf-tooling-e43ba62b97bbda6cda1a3303550a32421eb7393d.tar.gz
org.eclipse.gmf-tooling-e43ba62b97bbda6cda1a3303550a32421eb7393d.tar.xz
org.eclipse.gmf-tooling-e43ba62b97bbda6cda1a3303550a32421eb7393d.zip
[352271] - temporary workaround for compilation error, to be revisited in 3.0
-rw-r--r--plugins/org.eclipse.gmf.codegen/templates/impl/diagram/update/CanonicalUpdate.xpt7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/org.eclipse.gmf.codegen/templates/impl/diagram/update/CanonicalUpdate.xpt b/plugins/org.eclipse.gmf.codegen/templates/impl/diagram/update/CanonicalUpdate.xpt
index de5f056ab..e84650321 100644
--- a/plugins/org.eclipse.gmf.codegen/templates/impl/diagram/update/CanonicalUpdate.xpt
+++ b/plugins/org.eclipse.gmf.codegen/templates/impl/diagram/update/CanonicalUpdate.xpt
@@ -135,7 +135,12 @@ private boolean isMyDiagramElement(org.eclipse.gmf.runtime.notation.View view) {
// Alternative implementation of CEP.refreshSemanticChildren
«DEFINE refreshSemanticChildren(String createdViewsVar, gmfgen::GenDiagramUpdater diagramUpdater) FOR gmfgen::GenContainerBase-»
«LET hasConformableSemanticChildren(self) AS childrenShareSameMetaclass-»
- «EXPAND CodeStyle::G('java.util.List', diagramUpdater.getNodeDescriptorQualifiedClassName())» childDescriptors = «EXPAND xpt::diagram::updater::DiagramUpdater::getSemanticChildrenMethodCall»((org.eclipse.gmf.runtime.notation.View) getHost().getModel());
+ «EXPAND CodeStyle::G('java.util.List', diagramUpdater.getNodeDescriptorQualifiedClassName())» childDescriptors = «-»
+ «IF hasSemanticChildren(self) /*REVISIT: is there real need for this check - Generator seems to consult needsCanonicalEP, which in turns ensures there are semantic children?, but with respect to #352271*/-»
+ «EXPAND xpt::diagram::updater::DiagramUpdater::getSemanticChildrenMethodCall»((org.eclipse.gmf.runtime.notation.View) getHost().getModel());
+ «ELSE-»
+ /* see #352271 */ «EXPAND CodeStyle::emptyList»;
+ «ENDIF-»
«EXPAND CodeStyle::newGenericInstance('orphaned', 'java.util.LinkedList', 'org.eclipse.gmf.runtime.notation.View')»();
// we care to check only views we recognize as ours
«EXPAND CodeStyle::newGenericInstance('knownViewChildren', 'java.util.LinkedList', 'org.eclipse.gmf.runtime.notation.View')»();

Back to the top