blob: 1661bd104fcb6de20bda2cc04cb81ff7f79b83a1 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2012 Obeo.
* 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:
* Obeo - initial API and implementation
*******************************************************************************/
package org.eclipse.mylyn.docs.intent.collab.ide.resource;
import org.eclipse.emf.common.util.URI;
import org.eclipse.emf.ecore.resource.Resource;
import org.eclipse.emf.ecore.xmi.impl.XMIResourceFactoryImpl;
/**
* Custom implementation enabling use of XMI ids.
*
* @author <a href="mailto:william.piers@obeo.fr">William Piers</a>
*/
public class RepoModelResourceFactory extends XMIResourceFactoryImpl {
/**
* Constructor.
*/
public RepoModelResourceFactory() {
super();
}
/**
* {@inheritDoc}
*
* @see org.eclipse.emf.ecore.xmi.impl.XMIResourceFactoryImpl#createResource(org.eclipse.emf.common.util.URI)
*/
public Resource createResource(URI uri) {
return new RepoModelResource(uri);
}
}