blob: 7b77324439643509fd3f5696c58b8801e99cff6e [file] [log] [blame]
package org.eclipse.epf.library.edit.uma;
import org.eclipse.epf.library.edit.uma.impl.LibraryScopeImpl;
import org.eclipse.epf.library.edit.uma.impl.ScopeImpl;
import org.eclipse.epf.library.edit.util.LibraryEditUtil;
import org.eclipse.epf.uma.util.Scope;
public class ScopeFactory {
private static ScopeFactory instance = new ScopeFactory();
public static ScopeFactory getInstance() {
return instance;
}
private ScopeFactory() {
}
public Scope newProcessScope(String name) {
Scope scope = new ScopeImpl();
if (name != null) {
scope.setName(name);
}
return scope;
}
public Scope newLibraryScope() {
Scope libScope = new LibraryScopeImpl();
return libScope;
}
}