use of org.yakindu.sct.model.sgraph.util.ContextElementAdapter.IContextElementProvider in project statecharts by Yakindu.
the class SCTResourceTest method setUp.
@Before
public void setUp() throws Exception {
Injector injector = STextActivator.getInstance().getInjector(STextActivator.ORG_YAKINDU_SCT_MODEL_STEXT_STEXT);
ResourceSet resourceSet = new ResourceSetImpl();
res = new StextResource(URI.createURI("test.test"));
res.eAdapters().add(new ContextElementAdapter(new IContextElementProvider() {
public EObject getContextObject() {
return res.getContents().get(0);
}
}));
resourceSet.getResources().add(res);
injector.injectMembers(res);
}
Aggregations