Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
riseclipse-metamodel-cim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
RiseClipseGroup
riseclipse-metamodel-cim
Commits
a547c711
Commit
a547c711
authored
6 years ago
by
Dominique Marcadet
Browse files
Options
Downloads
Patches
Plain Diff
use OPTION_XML_MAP on getDefaultSaveOptions()
parent
afe703e8
No related branches found
No related tags found
1 merge request
!19
Resolve "OPTION_XML_MAP is a save option"
Pipeline
#1060
passed
6 years ago
Stage: build
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
fr.centralesupelec.edf.riseclipse.cim.util/src/fr/centralesupelec/edf/riseclipse/cim/util/cimxml/CimResourceFactoryImpl.java
+3
-2
3 additions, 2 deletions
...df/riseclipse/cim/util/cimxml/CimResourceFactoryImpl.java
with
3 additions
and
2 deletions
fr.centralesupelec.edf.riseclipse.cim.util/src/fr/centralesupelec/edf/riseclipse/cim/util/cimxml/CimResourceFactoryImpl.java
+
3
−
2
View file @
a547c711
...
...
@@ -29,6 +29,7 @@ import org.eclipse.emf.ecore.xmi.impl.XMLMapImpl;
import
org.eclipse.emf.ecore.xmi.impl.XMLParserPoolImpl
;
/**
*/
public
abstract
class
CimResourceFactoryImpl
extends
ResourceFactoryImpl
{
...
...
@@ -69,7 +70,7 @@ public abstract class CimResourceFactoryImpl extends ResourceFactoryImpl {
// TODO: find usage
//result.getDefaultLoadOptions().put( XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE );
// <?xml line is set by CimResourceHandler.preS
v
ae
// <?xml line is set by CimResourceHandler.preSa
v
e
result
.
getDefaultSaveOptions
().
put
(
XMLResource
.
OPTION_DECLARE_XML
,
Boolean
.
FALSE
);
result
.
getDefaultSaveOptions
().
put
(
XMLResource
.
OPTION_ENCODING
,
"UTF-8"
);
// Keep all values that has been set
...
...
@@ -80,7 +81,7 @@ public abstract class CimResourceFactoryImpl extends ResourceFactoryImpl {
XMLResource
.
XMLMap
map
=
new
XMLMapImpl
();
// rdf prefix may be hardcoded because we know we use it for saving
map
.
setIDAttributeName
(
CimConstants
.
qualifiedRdfID
);
result
.
getDefault
Load
Options
().
put
(
XMLResource
.
OPTION_XML_MAP
,
map
);
result
.
getDefault
Save
Options
().
put
(
XMLResource
.
OPTION_XML_MAP
,
map
);
// From https://www.eclipse.org/modeling/emf/docs/performance/EMFPerformanceTips.html
// and https://sdqweb.ipd.kit.edu/wiki/EMF_Model_Loading_Performance_Tweaks
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment