Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/org.eclipse.gmf.codegen/templates/xpt/editor/GenDiagram.ext6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/org.eclipse.gmf.codegen/templates/xpt/editor/GenDiagram.ext b/plugins/org.eclipse.gmf.codegen/templates/xpt/editor/GenDiagram.ext
index 364647d29..049679345 100644
--- a/plugins/org.eclipse.gmf.codegen/templates/xpt/editor/GenDiagram.ext
+++ b/plugins/org.eclipse.gmf.codegen/templates/xpt/editor/GenDiagram.ext
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2007 Borland Software Corporation
+ * Copyright (c) 2007, 2008 Borland Software Corporation
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
@@ -32,6 +32,6 @@ genmodel::GenFeature getDocumentRootSetFeature(gmfgen::GenDiagram genDiagram) :
// const ETypedElement.UNSPECIFIED_MULTIPLICITY = -2
private boolean isDocRootSetFeature(genmodel::GenFeature gf, ecore::EClass eType) :
- (!gf.isListType() && gf.ecoreFeature.changeable) && -2 == gf.ecoreFeature.upperBound && ((EClass) gf.ecoreFeature.eType).isSuperTypeOf(eType)
- // Perhaps, makes sense to check instanceof EReference && isContainment
+ (!gf.isListType() && gf.ecoreFeature.changeable) && -2 == gf.ecoreFeature.upperBound && gf.ecoreFeature.eClass().name == "EReference" && ((EClass) gf.ecoreFeature.eType).isSuperTypeOf(eType)
+ // Perhaps, makes sense to check isContainment
; \ No newline at end of file

Back to the top