Commit 2db872fe authored by Dominique Marcadet's avatar Dominique Marcadet

implements new interface IRiseClipseResourceFactory

parent f22dcb43
...@@ -19,18 +19,19 @@ ...@@ -19,18 +19,19 @@
package fr.centralesupelec.edf.riseclipse.iec61850.scl.util; package fr.centralesupelec.edf.riseclipse.iec61850.scl.util;
import org.eclipse.emf.common.util.URI; 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.resource.impl.ResourceFactoryImpl;
import org.eclipse.emf.ecore.xmi.XMLResource; import org.eclipse.emf.ecore.xmi.XMLResource;
import fr.centralesupelec.edf.riseclipse.util.IRiseClipseResourceFactory;
/** /**
* <!-- begin-user-doc --> * <!-- begin-user-doc -->
* The <b>Resource Factory</b> associated with the package. * The <b>Resource Factory</b> associated with the package.
* <!-- end-user-doc --> * <!-- end-user-doc -->
* @see fr.centralesupelec.edf.riseclipse.iec61850.scl.util.SclResourceImpl * @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. * Creates an instance of the resource factory.
...@@ -46,20 +47,20 @@ public class SclResourceFactoryImpl extends ResourceFactoryImpl { ...@@ -46,20 +47,20 @@ public class SclResourceFactoryImpl extends ResourceFactoryImpl {
* Creates an instance of the resource. * Creates an instance of the resource.
* <!-- begin-user-doc --> <!-- * <!-- begin-user-doc --> <!--
* end-user-doc --> * end-user-doc -->
* @generated * @generated NOT
*/ */
@Override @Override
public Resource createResource( URI uri ) { public SclResourceImpl createResource( URI uri ) {
XMLResource result = new SclResourceImpl(uri); SclResourceImpl result = new SclResourceImpl(uri);
result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); result.getDefaultSaveOptions().put( XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE );
result.getDefaultLoadOptions().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.getDefaultLoadOptions().put( XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE );
result.getDefaultSaveOptions().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; return result;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment