Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorashatalin2006-04-20 20:36:48 +0000
committerashatalin2006-04-20 20:36:48 +0000
commit9e59d27423a97898afb8ac60325cf2012cf06999 (patch)
tree07567fd80b5af7766cbfef6a8968bb47bfc2c049 /plugins/org.eclipse.gmf.codegen/templates/editor/NewDiagramFileWizard.javajet
parentfdc6327debc9f35642c3c7103d4c56039a5318e2 (diff)
downloadorg.eclipse.gmf-tooling-9e59d27423a97898afb8ac60325cf2012cf06999.tar.gz
org.eclipse.gmf-tooling-9e59d27423a97898afb8ac60325cf2012cf06999.tar.xz
org.eclipse.gmf-tooling-9e59d27423a97898afb8ac60325cf2012cf06999.zip
#125900 Redundant annotations added to View in generated view factory
Diffstat (limited to 'plugins/org.eclipse.gmf.codegen/templates/editor/NewDiagramFileWizard.javajet')
-rw-r--r--plugins/org.eclipse.gmf.codegen/templates/editor/NewDiagramFileWizard.javajet2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/org.eclipse.gmf.codegen/templates/editor/NewDiagramFileWizard.javajet b/plugins/org.eclipse.gmf.codegen/templates/editor/NewDiagramFileWizard.javajet
index 182397a92..0f5ded03d 100644
--- a/plugins/org.eclipse.gmf.codegen/templates/editor/NewDiagramFileWizard.javajet
+++ b/plugins/org.eclipse.gmf.codegen/templates/editor/NewDiagramFileWizard.javajet
@@ -123,7 +123,7 @@ public class <%=genDiagram.getNewDiagramFileWizardClassName()%> extends Wizard {
AbstractTransactionalCommand command = new AbstractTransactionalCommand(myEditingDomain, "Initializing diagram contents", affectedFiles) { //$NON-NLS-1$
protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
int diagramVID = <%=importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())%>.INSTANCE.getDiagramVisualID(diagramModelObject);
- if (diagramVID != <%=genDiagram.getVisualID()%>) {
+ if (diagramVID != <%=importManager.getImportedName(genDiagram.getEditPartQualifiedClassName())%>.VISUAL_ID) {
return CommandResult.newErrorCommandResult("Incorrect model object stored as a root resource object"); //$NON-NLS-1$
}
Diagram diagram = ViewService.createDiagram(diagramModelObject, <%=importManager.getImportedName(genDiagram.getEditPartQualifiedClassName())%>.MODEL_ID, <%=pluginActivatorClass%>.DIAGRAM_PREFERENCES_HINT);

Back to the top