Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoratikhomirov2008-06-27 12:38:56 -0400
committeratikhomirov2008-06-27 12:38:56 -0400
commit66d3b02d732846334d9bbf5c9d4d83a2c754feb4 (patch)
tree4ac2bdc81b7af29bed6c9e6ec1f326669e667ece /plugins
parentbb7fbe4f0156776b318aa989eaf98cb1e39f37b2 (diff)
downloadorg.eclipse.gmf-tooling-66d3b02d732846334d9bbf5c9d4d83a2c754feb4.tar.gz
org.eclipse.gmf-tooling-66d3b02d732846334d9bbf5c9d4d83a2c754feb4.tar.xz
org.eclipse.gmf-tooling-66d3b02d732846334d9bbf5c9d4d83a2c754feb4.zip
[193585] do not fail when there are erroneous root xsd:element specification in a Ecore's source XSD
Diffstat (limited to 'plugins')
-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