Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoratikhomirov2007-04-19 06:20:06 -0400
committeratikhomirov2007-04-19 06:20:06 -0400
commit6d7f359053225f15e83e8c7c372c23dfdf9cf10a (patch)
tree463c85290280abe44bd5995f6f76aebdfd2c6814
parent3f5db6025e86d00103906db61190c5ce9c17b946 (diff)
downloadorg.eclipse.gmf-tooling-6d7f359053225f15e83e8c7c372c23dfdf9cf10a.tar.gz
org.eclipse.gmf-tooling-6d7f359053225f15e83e8c7c372c23dfdf9cf10a.tar.xz
org.eclipse.gmf-tooling-6d7f359053225f15e83e8c7c372c23dfdf9cf10a.zip
no need to override encoding of user's model
-rw-r--r--plugins/org.eclipse.gmf.codegen.ui/src/org/eclipse/gmf/internal/codegen/popup/actions/GMFGenExtensionModelWizard.java14
1 files changed, 1 insertions, 13 deletions
diff --git a/plugins/org.eclipse.gmf.codegen.ui/src/org/eclipse/gmf/internal/codegen/popup/actions/GMFGenExtensionModelWizard.java b/plugins/org.eclipse.gmf.codegen.ui/src/org/eclipse/gmf/internal/codegen/popup/actions/GMFGenExtensionModelWizard.java
index 67c86be5c..b3ba00a64 100644
--- a/plugins/org.eclipse.gmf.codegen.ui/src/org/eclipse/gmf/internal/codegen/popup/actions/GMFGenExtensionModelWizard.java
+++ b/plugins/org.eclipse.gmf.codegen.ui/src/org/eclipse/gmf/internal/codegen/popup/actions/GMFGenExtensionModelWizard.java
@@ -12,9 +12,7 @@ package org.eclipse.gmf.internal.codegen.popup.actions;
import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
-import java.util.HashMap;
import java.util.List;
-import java.util.Map;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.runtime.IProgressMonitor;
@@ -25,7 +23,6 @@ import org.eclipse.emf.ecore.EcorePackage;
import org.eclipse.emf.ecore.resource.Resource;
import org.eclipse.emf.ecore.resource.ResourceSet;
import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl;
-import org.eclipse.emf.ecore.xmi.XMLResource;
import org.eclipse.gmf.internal.bridge.ui.Plugin;
import org.eclipse.gmf.internal.bridge.wizards.WizardUtil;
import org.eclipse.gmf.internal.common.ui.ElementSelectorExtension;
@@ -50,7 +47,6 @@ public class GMFGenExtensionModelWizard extends Wizard implements IWorkbenchWiza
private ElementSelectorExtension myRootElementSelectorExtension;
private ResourceSet myResourceSet;
private ResourceLocationProvider myResourceLocationProvider;
- private Map<String, Object> myGmfgenResourceSaveOptions;
public GMFGenExtensionModelWizard() {
super();
@@ -77,14 +73,6 @@ public class GMFGenExtensionModelWizard extends Wizard implements IWorkbenchWiza
return myResourceSet;
}
- private Map<String, Object> getGmfgenResourceSaveOptions() {
- if (myGmfgenResourceSaveOptions == null) {
- myGmfgenResourceSaveOptions = new HashMap<String, Object>();
- myGmfgenResourceSaveOptions.put(XMLResource.OPTION_ENCODING, "UTF-8"); //$NON-NLS-1$
- }
- return myGmfgenResourceSaveOptions;
- }
-
public ElementSelectorExtension getRootElementSelectorExtension() {
return myRootElementSelectorExtension;
}
@@ -179,7 +167,7 @@ public class GMFGenExtensionModelWizard extends Wizard implements IWorkbenchWiza
Resource gmfgenModel = getResourceSet().createResource(nextGmfgenURI);
gmfgenModel.load(getResourceSet().getLoadOptions());
gmfgenModel.getContents().add(instantiated);
- gmfgenModel.save(getGmfgenResourceSaveOptions());
+ gmfgenModel.save(null);
gmfgenModel.unload();
}

Back to the top