![JAR search and dependency download from the Maven repository](/logo.png)
org.eclipse.emf.mwe.utils.SingleGlobalResourceSet Maven / Gradle / Ivy
The newest version!
/*******************************************************************************
* Copyright (c) 2005, 2009 committers of openArchitectureWare and others.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* committers of openArchitectureWare - initial API and implementation
*******************************************************************************/
package org.eclipse.emf.mwe.utils;
import org.eclipse.emf.ecore.resource.ResourceSet;
import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl;
public class SingleGlobalResourceSet {
private static ResourceSet rs;
public static ResourceSet get() {
if ( rs == null ) {
rs = new ResourceSetImpl();
}
return rs;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy