blob: 146ee839ea04bd3991ed2a8d6509b8fb49941546 [file] [log] [blame]
/**
* <copyright>
*
* Copyright (c) 2008-2013 itemis and others.
* 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
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* itemis - Initial API and implementation
*
* </copyright>
*/
package org.eclipse.sphinx.examples.uml2.ide.internal;
import org.eclipse.emf.common.util.URI;
import org.eclipse.emf.ecore.resource.Resource;
import org.eclipse.uml2.uml.internal.resource.UMLResourceFactoryImpl;
import org.eclipse.uml2.uml.resource.UMLResource;
@SuppressWarnings("restriction")
public class ExtendedUMLResourceFactoryImpl extends UMLResourceFactoryImpl {
@Override
public Resource createResourceGen(URI uri) {
UMLResource result = new ExtendedUMLResourceImpl(uri);
result.setEncoding(UMLResource.DEFAULT_ENCODING);
return result;
}
}