Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
RiseClipseMetamodel_SCL2003
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Packages
Packages
Container Registry
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
RiseClipseGroup
RiseClipseMetamodel_SCL2003
Commits
2db872fe
Commit
2db872fe
authored
May 14, 2019
by
Dominique Marcadet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
implements new interface IRiseClipseResourceFactory
parent
f22dcb43
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
12 deletions
+13
-12
SclResourceFactoryImpl.java
.../riseclipse/iec61850/scl/util/SclResourceFactoryImpl.java
+13
-12
No files found.
fr.centralesupelec.edf.riseclipse.iec61850.scl/src/fr/centralesupelec/edf/riseclipse/iec61850/scl/util/SclResourceFactoryImpl.java
View file @
2db872fe
...
...
@@ -19,18 +19,19 @@
package
fr
.
centralesupelec
.
edf
.
riseclipse
.
iec61850
.
scl
.
util
;
import
org.eclipse.emf.common.util.URI
;
import
org.eclipse.emf.ecore.resource.Resource
;
import
org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl
;
import
org.eclipse.emf.ecore.xmi.XMLResource
;
import
fr.centralesupelec.edf.riseclipse.util.IRiseClipseResourceFactory
;
/**
* <!-- begin-user-doc -->
* The <b>Resource Factory</b> associated with the package.
* <!-- end-user-doc -->
* @see fr.centralesupelec.edf.riseclipse.iec61850.scl.util.SclResourceImpl
* @generated
* @generated
NOT
*/
public
class
SclResourceFactoryImpl
extends
ResourceFactoryImpl
{
public
class
SclResourceFactoryImpl
extends
ResourceFactoryImpl
implements
IRiseClipseResourceFactory
{
/**
* Creates an instance of the resource factory.
...
...
@@ -46,20 +47,20 @@ public class SclResourceFactoryImpl extends ResourceFactoryImpl {
* Creates an instance of the resource.
* <!-- begin-user-doc --> <!--
* end-user-doc -->
* @generated
* @generated
NOT
*/
@Override
public
Resource
createResource
(
URI
uri
)
{
XMLResource
result
=
new
SclResourceImpl
(
uri
);
result
.
getDefaultSaveOptions
().
put
(
XMLResource
.
OPTION_EXTENDED_META_DATA
,
Boolean
.
TRUE
);
result
.
getDefaultLoadOptions
().
put
(
XMLResource
.
OPTION_EXTENDED_META_DATA
,
Boolean
.
TRUE
);
public
SclResourceImpl
createResource
(
URI
uri
)
{
SclResourceImpl
result
=
new
SclResourceImpl
(
uri
);
result
.
getDefaultSaveOptions
().
put
(
XMLResource
.
OPTION_EXTENDED_META_DATA
,
Boolean
.
TRUE
);
result
.
getDefaultLoadOptions
().
put
(
XMLResource
.
OPTION_EXTENDED_META_DATA
,
Boolean
.
TRUE
);
result
.
getDefaultSaveOptions
().
put
(
XMLResource
.
OPTION_SCHEMA_LOCATION
,
Boolean
.
TRUE
);
result
.
getDefaultSaveOptions
().
put
(
XMLResource
.
OPTION_SCHEMA_LOCATION
,
Boolean
.
TRUE
);
result
.
getDefaultLoadOptions
().
put
(
XMLResource
.
OPTION_USE_ENCODED_ATTRIBUTE_STYLE
,
Boolean
.
TRUE
);
result
.
getDefaultSaveOptions
().
put
(
XMLResource
.
OPTION_USE_ENCODED_ATTRIBUTE_STYLE
,
Boolean
.
TRUE
);
result
.
getDefaultLoadOptions
().
put
(
XMLResource
.
OPTION_USE_ENCODED_ATTRIBUTE_STYLE
,
Boolean
.
TRUE
);
result
.
getDefaultSaveOptions
().
put
(
XMLResource
.
OPTION_USE_ENCODED_ATTRIBUTE_STYLE
,
Boolean
.
TRUE
);
result
.
getDefaultLoadOptions
().
put
(
XMLResource
.
OPTION_USE_LEXICAL_HANDLER
,
Boolean
.
TRUE
);
result
.
getDefaultLoadOptions
().
put
(
XMLResource
.
OPTION_USE_LEXICAL_HANDLER
,
Boolean
.
TRUE
);
return
result
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment