Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorashatalin2006-04-06 13:05:14 +0000
committerashatalin2006-04-06 13:05:14 +0000
commit3a6bf477a730141a697632df76fa7da1981c73a5 (patch)
tree0fb96281e62b05ea3c5b6a68a5effb4b4a7f6911 /plugins/org.eclipse.gmf.codegen/templates/editor/NewDiagramFileWizard.javajet
parentb4f092e6637a8b76bbc577831aa670ddaf2bcf67 (diff)
downloadorg.eclipse.gmf-tooling-3a6bf477a730141a697632df76fa7da1981c73a5.tar.gz
org.eclipse.gmf-tooling-3a6bf477a730141a697632df76fa7da1981c73a5.tar.xz
org.eclipse.gmf-tooling-3a6bf477a730141a697632df76fa7da1981c73a5.zip
#132465 Bidi3.2: [HCG]Encoding of the mindmap diagram is always ASCII
Diffstat (limited to 'plugins/org.eclipse.gmf.codegen/templates/editor/NewDiagramFileWizard.javajet')
-rw-r--r--plugins/org.eclipse.gmf.codegen/templates/editor/NewDiagramFileWizard.javajet6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/org.eclipse.gmf.codegen/templates/editor/NewDiagramFileWizard.javajet b/plugins/org.eclipse.gmf.codegen/templates/editor/NewDiagramFileWizard.javajet
index 43ed78ec4..0801c0eae 100644
--- a/plugins/org.eclipse.gmf.codegen/templates/editor/NewDiagramFileWizard.javajet
+++ b/plugins/org.eclipse.gmf.codegen/templates/editor/NewDiagramFileWizard.javajet
@@ -108,6 +108,12 @@ public class <%=genDiagram.getNewDiagramFileWizardClassName()%> extends Wizard {
}
IFile diagramFile = myFileCreationPage.createNewFile();
+ try {
+ diagramFile.setCharset("UTF-8", new NullProgressMonitor()); //$NON-NLS-1$
+ } catch (<%=importManager.getImportedName("org.eclipse.core.runtime.CoreException")%> e) {
+ <%=importManager.getImportedName(genDiagram.getEditorGen().getPlugin().getActivatorQualifiedClassName())%>.getInstance().logError("Unable to set charset for diagram file", e); //$NON-NLS-1$
+ }
+
ResourceSet resourceSet = myEditingDomain.getResourceSet();
final Resource diagramResource = resourceSet.createResource(URI.createPlatformResourceURI(diagramFile.getFullPath().toString()));

Back to the top