use of org.yakindu.base.xtext.utils.jface.viewers.context.XtextFakeResourceContext in project statecharts by Yakindu.
the class StatechartDefinitionSection method getXtextResourceProvider.
protected IEditedResourceProvider getXtextResourceProvider(Injector injector) {
return new IEditedResourceProvider() {
@Override
public XtextResource createResource() {
XtextFakeResourceContext resource = new XtextFakeResourceContext(injector);
xtextResource = resource.getFakeResource();
xtextResource.eAdapters().add(new ContextElementAdapter(StatechartDefinitionSection.this));
return xtextResource;
}
};
}
Aggregations