Skip to content

Commit

Permalink
[releng] Update example generated code
Browse files Browse the repository at this point in the history
Update ComponentSample model code for correct regeneration

Change-Id: I7dd71d76d2134e8610782e2006b66e20e3df9eca
Signed-off-by: Arnaud Dieumegard <[email protected]>
  • Loading branch information
arnauddieumegard committed Oct 21, 2019
1 parent 97c458f commit 38d5b4e
Showing 1 changed file with 1 addition and 76 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2014, 2017 Thales Global Services S.A.S.
* Copyright (c) 2014, 2019 Thales Global Services S.A.S.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
Expand All @@ -10,9 +10,6 @@
******************************************************************************/
package org.polarsys.kitalpha.vp.componentsample.ComponentSample.util;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.eclipse.emf.common.util.URI;
Expand All @@ -23,19 +20,11 @@
import org.eclipse.emf.ecore.resource.Resource;
import org.eclipse.emf.ecore.util.EcoreUtil;
import org.eclipse.emf.ecore.xmi.XMIResource;
import org.eclipse.emf.ecore.xmi.XMLHelper;
import org.eclipse.emf.ecore.xmi.XMLLoad;
import org.eclipse.emf.ecore.xmi.XMLParserPool;
import org.eclipse.emf.ecore.xmi.XMLResource;
import org.eclipse.emf.ecore.xmi.XMLSave;
import org.eclipse.emf.ecore.xmi.XMLSave.XMLTypeInfo;
import org.eclipse.emf.ecore.xmi.impl.URIHandlerImpl;
import org.eclipse.emf.ecore.xmi.impl.XMIResourceImpl;
import org.eclipse.emf.ecore.xmi.impl.XMLParserPoolImpl;
import org.eclipse.emf.ecore.xml.type.XMLTypePackage;
import org.polarsys.kitalpha.emde.xmi.XMIExtensionHelperImpl;
import org.polarsys.kitalpha.emde.xmi.XMIExtensionLoadImpl;
import org.polarsys.kitalpha.emde.xmi.XMIExtensionSaveImpl;

/**
* <!-- begin-user-doc -->
Expand All @@ -45,27 +34,6 @@
* @generated
*/
public class ComponentSampleResourceImpl extends XMIResourceImpl {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private List<Object> lookupTable = new ArrayList<Object>();

/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private XMLParserPool parserPool = new XMLParserPoolImpl();

/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private Map<Object, Object> nameToFeatureMap = new HashMap<Object, Object>();

/**
* Creates an instance of the resource.
* <!-- begin-user-doc -->
Expand All @@ -77,46 +45,6 @@ public ComponentSampleResourceImpl(URI uri) {
super(uri);
}

/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected XMLSave createXMLSave() {
return new XMIExtensionSaveImpl(createXMLHelper());
}

/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected XMLHelper createXMLHelper() {
return new XMIExtensionHelperImpl(this);
}

/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected XMLLoad createXMLLoad() {
return new XMIExtensionLoadImpl((XMIExtensionHelperImpl) createXMLHelper());
}

/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected boolean useIDAttributes() {
return false;
}

/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
Expand All @@ -130,7 +58,6 @@ protected void init() {
setXMIVersion("2.1"); //$NON-NLS-1$
// Save Options
getDefaultSaveOptions().put(XMLResource.OPTION_CONFIGURATION_CACHE, Boolean.TRUE);
getDefaultSaveOptions().put(XMLResource.OPTION_USE_CACHED_LOOKUP_TABLE, lookupTable);
getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE);
getDefaultSaveOptions().put(Resource.OPTION_SAVE_ONLY_IF_CHANGED,
Resource.OPTION_SAVE_ONLY_IF_CHANGED_MEMORY_BUFFER);
Expand All @@ -151,8 +78,6 @@ public boolean shouldSaveType(EClass objectType, EClass featureType, EStructural
getDefaultLoadOptions().put(XMLResource.OPTION_DEFER_ATTACHMENT, Boolean.FALSE);
getDefaultLoadOptions().put(XMLResource.OPTION_DEFER_IDREF_RESOLUTION, Boolean.FALSE);
getDefaultLoadOptions().put(XMLResource.OPTION_USE_DEPRECATED_METHODS, Boolean.TRUE);
getDefaultLoadOptions().put(XMLResource.OPTION_USE_PARSER_POOL, parserPool);
getDefaultLoadOptions().put(XMLResource.OPTION_USE_XML_NAME_TO_FEATURE_MAP, nameToFeatureMap);
getDefaultLoadOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE);
getDefaultLoadOptions().put(XMLResource.OPTION_RECORD_UNKNOWN_FEATURE, Boolean.TRUE);
getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE);
Expand Down

0 comments on commit 38d5b4e

Please sign in to comment.