Skip to content
This repository has been archived by the owner on Aug 23, 2023. It is now read-only.

Commit

Permalink
[Exporter] Make exported XML files easier to read
Browse files Browse the repository at this point in the history
And sets version to 0.2
  • Loading branch information
jbsarrodie committed Sep 9, 2015
1 parent 33d21c4 commit 6c1e910
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion org.archicontribs.grafico/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: GRAFICO Import and Export Plugin
Bundle-SymbolicName: org.archicontribs.grafico;singleton:=true
Bundle-Version: 0.1
Bundle-Version: 0.2
Bundle-Vendor: Jean-Baptiste Sarrodie / Quentin Varquet / Phil Beauvoir
Bundle-Localization: plugin
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@ private void createResource(File file, EObject object) throws IOException {
// Create a new resource for selected file and add object to persist
XMLResource resource = (XMLResource) resourceSet.createResource(URI.createFileURI(file.getAbsolutePath()));
resource.getDefaultSaveOptions().put(XMLResource.OPTION_ENCODING, "UTF-8"); //$NON-NLS-1$
resource.getDefaultSaveOptions().put(XMLResource.OPTION_LINE_WIDTH, new Integer(5));
resource.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE,Boolean.TRUE);
resource.getDefaultSaveOptions().put(XMLResource.OPTION_DECLARE_XML,Boolean.FALSE);
resource.getDefaultSaveOptions().put(XMLResource.OPTION_CONFIGURATION_CACHE,Boolean.TRUE);
resource.getContents().add(object);
}

Expand Down

0 comments on commit 6c1e910

Please sign in to comment.