Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordstadnik2006-09-29 18:48:22 +0000
committerdstadnik2006-09-29 18:48:22 +0000
commitabf2bdae6fc26a1bbcd15afb3c52e603f307b37c (patch)
tree0a796118a402bbd9aac4e296ecf5030e736519a2 /plugins/org.eclipse.gmf.codegen/templates/editor/NewDiagramFileWizard.javajet
parenteeba8412c97e1ef26da317fdfb05e636db80ddad (diff)
downloadorg.eclipse.gmf-tooling-abf2bdae6fc26a1bbcd15afb3c52e603f307b37c.tar.gz
org.eclipse.gmf-tooling-abf2bdae6fc26a1bbcd15afb3c52e603f307b37c.tar.xz
org.eclipse.gmf-tooling-abf2bdae6fc26a1bbcd15afb3c52e603f307b37c.zip
#114200 refactor 'open diagram editor' code to support RCP
Diffstat (limited to 'plugins/org.eclipse.gmf.codegen/templates/editor/NewDiagramFileWizard.javajet')
-rw-r--r--plugins/org.eclipse.gmf.codegen/templates/editor/NewDiagramFileWizard.javajet3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/org.eclipse.gmf.codegen/templates/editor/NewDiagramFileWizard.javajet b/plugins/org.eclipse.gmf.codegen/templates/editor/NewDiagramFileWizard.javajet
index d0d4107e9..62c77e8bf 100644
--- a/plugins/org.eclipse.gmf.codegen/templates/editor/NewDiagramFileWizard.javajet
+++ b/plugins/org.eclipse.gmf.codegen/templates/editor/NewDiagramFileWizard.javajet
@@ -36,7 +36,6 @@ importManager.addImport("org.eclipse.jface.viewers.IStructuredSelection");
importManager.addImport("org.eclipse.jface.wizard.Wizard");
importManager.addImport("org.eclipse.swt.widgets.Composite");
importManager.addImport("org.eclipse.ui.PartInitException");
-importManager.addImport("org.eclipse.ui.ide.IDE");
importManager.addImport("org.eclipse.ui.dialogs.WizardNewFileCreationPage");
importManager.addImport("org.eclipse.ui.IWorkbenchPage");
@@ -162,7 +161,7 @@ if (!genDiagram.isSynchronized()) {
try {
OperationHistoryFactory.getOperationHistory().execute(command, new NullProgressMonitor(), null);
diagramResource.save(Collections.EMPTY_MAP);
- IDE.openEditor(myWorkbenchPage, diagramFile);
+ <%=importManager.getImportedName(genDiagram.getDiagramEditorUtilQualifiedClassName())%>.openDiagramEditor(myWorkbenchPage, diagramFile);
} catch (ExecutionException e) {
<%=pluginActivatorClass%>.getInstance().logError("Unable to create model and diagram", e); //$NON-NLS-1$
} catch (IOException ex) {

Back to the top