Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoratikhomirov2007-04-19 10:40:40 -0400
committeratikhomirov2007-04-19 10:40:40 -0400
commit8343dadce240f3bc559a5b49aae3865291e05539 (patch)
tree9aa8a589db6cfbc55fb5ff9978b60b5bf2ffd315
parentf1606e6e0a872970c8eaa40bc2971afe539dad62 (diff)
downloadorg.eclipse.gmf-tooling-8343dadce240f3bc559a5b49aae3865291e05539.tar.gz
org.eclipse.gmf-tooling-8343dadce240f3bc559a5b49aae3865291e05539.tar.xz
org.eclipse.gmf-tooling-8343dadce240f3bc559a5b49aae3865291e05539.zip
there's never a documentRoot for pure-design diagrams
-rw-r--r--plugins/org.eclipse.gmf.codegen/templates/xpt/editor/GenDiagram.ext2
1 files changed, 1 insertions, 1 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 487d120e6..667791675 100644
--- a/plugins/org.eclipse.gmf.codegen/templates/xpt/editor/GenDiagram.ext
+++ b/plugins/org.eclipse.gmf.codegen/templates/xpt/editor/GenDiagram.ext
@@ -23,7 +23,7 @@ boolean hasDocumentRoot(gmfgen::GenDiagram genDiagram) :
;
genmodel::GenClass getDocumentRoot(gmfgen::GenDiagram genDiagram) :
- genDiagram.domainDiagramElement.genPackage.getDocumentRoot()
+ genDiagram.domainDiagramElement == null ? null : genDiagram.domainDiagramElement.genPackage.getDocumentRoot()
;
genmodel::GenFeature getDocumentRootSetFeature(gmfgen::GenDiagram genDiagram) :

Back to the top