01: package model;
02:
03: import org.eclipse.emf.ecore.resource.ResourceSet;
04: import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl;
05: import org.openarchitectureware.workflow.lib.WorkflowComponentWithModelSlot;
06:
07: @SuppressWarnings("unchecked")
08: public abstract class AbstractEmfWorkflowComponent extends
09: WorkflowComponentWithModelSlot {
10:
11: static {
12: new StandaloneSetup();
13: }
14:
15: public void setUseSingleGlobalResourceSet(boolean b) {
16: if (b)
17: resourceSet = SingleGlobalResourceSet.get();
18: }
19:
20: protected ResourceSet resourceSet = new ResourceSetImpl();
21:
22: protected String uri;
23:
24: public void setResourceSet(ResourceSet resourceSet) {
25: this .resourceSet = resourceSet;
26: }
27:
28: public void setUri(String uri) {
29: this .uri = uri;
30: }
31:
32: public ResourceSet getResourceSet() {
33: return resourceSet;
34: }
35:
36: public String getUri() {
37: return uri;
38: }
39: }
|