Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorashatalin2006-05-15 17:18:06 +0000
committerashatalin2006-05-15 17:18:06 +0000
commit80f23362dad2010f1b1105d43aee1f70ddcf7b15 (patch)
tree17409f1dd989974ad4b2468ae80bba5113c61d6d /plugins/org.eclipse.gmf.codegen/templates/editor/NewDiagramFileWizard.javajet
parentb7890dea6b7aef6b9d365c990f7cab2ba9014d64 (diff)
downloadorg.eclipse.gmf-tooling-80f23362dad2010f1b1105d43aee1f70ddcf7b15.tar.gz
org.eclipse.gmf-tooling-80f23362dad2010f1b1105d43aee1f70ddcf7b15.tar.xz
org.eclipse.gmf-tooling-80f23362dad2010f1b1105d43aee1f70ddcf7b15.zip
#131543 Obsolete code should be eliminated
Diffstat (limited to 'plugins/org.eclipse.gmf.codegen/templates/editor/NewDiagramFileWizard.javajet')
-rw-r--r--plugins/org.eclipse.gmf.codegen/templates/editor/NewDiagramFileWizard.javajet7
1 files changed, 2 insertions, 5 deletions
diff --git a/plugins/org.eclipse.gmf.codegen/templates/editor/NewDiagramFileWizard.javajet b/plugins/org.eclipse.gmf.codegen/templates/editor/NewDiagramFileWizard.javajet
index f39e1f353..9734ff222 100644
--- a/plugins/org.eclipse.gmf.codegen/templates/editor/NewDiagramFileWizard.javajet
+++ b/plugins/org.eclipse.gmf.codegen/templates/editor/NewDiagramFileWizard.javajet
@@ -2,9 +2,6 @@
imports="org.eclipse.gmf.codegen.gmfgen.* org.eclipse.emf.codegen.ecore.genmodel.* java.util.* org.eclipse.gmf.common.codegen.*"
skeleton="../common.skeleton"%>
<%
-// TODO: move this attribute to the genmodel
-final boolean isSynchronizedDiagram = true;
-
final GenDiagram genDiagram = (GenDiagram) ((Object[]) argument)[0];
final ImportAssistant importManager = (ImportAssistant) ((Object[]) argument)[1];
final GenEditorGenerator editorGen = genDiagram.getEditorGen();
@@ -149,7 +146,7 @@ public class <%=genDiagram.getNewDiagramFileWizardClassName()%> extends Wizard {
diagramResource.getContents().add(diagram.getElement());
<%
}
-if (!isSynchronizedDiagram) {
+if (!genDiagram.isSynchronized()) {
%>
initDiagramContents(diagram, diagramModelObject);
<%}%>
@@ -188,7 +185,7 @@ if (!isSynchronizedDiagram) {
}
return null;
}
-<%if (!isSynchronizedDiagram) {%>
+<%if (!genDiagram.isSynchronized()) {%>
<%@ include file="../semanticSync.jetinc/initDiagramContents.jetinc"%>
<%}%>

Back to the top