/***/ protected ResourceSet getResourceSet(IProject project) { if (resourceSet == null) { resourceSet = getInjector().getInstance(IResourceSetProvider.class).get(project); } return resourceSet; }
/** * Public for testing purpose. */ @Inject public EclipseBasedN4JSWorkspace( IWorkspaceRoot workspace, IResourceSetProvider resourceSetProvider) { this.workspace = workspace; this.resourceSetProvider = resourceSetProvider; }
/** * Configure the delegate. * * @param delegate * the delegate to use. */ public ForwardingResourceAccess(IReferenceFinder.IResourceAccess delegate, IResourceSetProvider resourceSetProvider) { this.delegate = delegate; this.resourceSetProvider = resourceSetProvider; }
TaskGenerateAdoc(JSDoc2ADocSpecProcessor jsDoc2SpecProcessor, IResourceSetProvider resourceSetProvider, IN4JSCore n4jsCore, IStructuredSelection selection, SpecConfigAdocPage configAdocPage, SpecProcessPage processAdocPage) { this.jsDoc2SpecProcessor = jsDoc2SpecProcessor; this.resourceSetProvider = resourceSetProvider; this.n4JSCore = n4jsCore; this.selection = selection; this.configAdocPage = configAdocPage; this.processAdocPage = processAdocPage; }
@Override public Class<? extends IResourceSetProvider> bindIResourceSetProvider() { if (Access.getJdtHelper().get().isJavaCoreAvailable()) { return XtextResourceSetProvider.class; } else { return SimpleResourceSetProvider.class; } }
public Class<? extends IResourceSetProvider> bindIResourceSetProvider() { if (Access.getJdtHelper().get().isJavaCoreAvailable()) { return XtextResourceSetProvider.class; } else { return SimpleResourceSetProvider.class; } }
private void registerGuiceBindingsUi() { new GuiceModuleAccess.BindingFactory() .addTypeToType(typeRef(XtextDocument.class), typeRef(CooperateXtextDocument.class)) .addTypeToType(typeRef(XtextDocumentProvider.class), typeRef(CooperateCDOXtextDocumentProvider.class)) .addTypeToType(typeRef(IResourceSetProvider.class), typeRef(XtextLiveScopeResourceSetProvider.class)) .contributeTo(getLanguage().getEclipsePluginGenModule()); getProjectConfig().getEclipsePlugin().getManifest().getRequiredBundles() .add("de.cooperateproject.modeling.textual.xtext.runtime.ui"); }
@Override protected void configure() { bind(ToBeBuiltComputer.class).to(SadlToBeBuiltComputer.class); bind(ProjectClasspathChangeListener.class).asEagerSingleton(); bind(IStorage2UriMapper.class).to(IStorage2UriMapperJdtExtensions.class); bind(IStorage2UriMapperJdtExtensions.class).to(Storage2UriMapperJavaImpl.class); bind(IResourceSetProvider.class).to(XtextResourceSetProvider.class); // bind(TypeResourceUnloader.class).asEagerSingleton(); bind(JavaChangeQueueFiller.class).asEagerSingleton(); bind(StorageAwareTrace.class).to(JarEntryAwareTrace.class); bind(DefaultTraceURIConverter.class).to(DefaultUITraceURIConverter.class); }
private Module getStaticTestModule() { return new AbstractModule() { @Override protected void configure() { bind(IResourceSetProvider.class).to(XtextResourceSetProvider.class); } }; }
private static ResourceSet createResourceSet(IProject project) { return N4JSActivator.getInstance().getInjector(N4JSActivator.ORG_ECLIPSE_N4JS_N4JS) .getInstance(IResourceSetProvider.class).get(project); }
private XtextResourceSet getResourceSet() { IResourceSetProvider resourceSetProvider = get(IResourceSetProvider.class); ResourceSet result = resourceSetProvider.get(getJSProject()); return (XtextResourceSet) result; }
public ParallelResourceLoader(final IResourceSetProvider resourceSetProvider, final Sorter sorter, final int nThreads, final int queueSize) { super(resourceSetProvider, sorter); this.nThreads = nThreads; this.queueSize = queueSize; this.timeout = MAX_WAIT_TIME; }
public Class<? extends IResourceSetProvider> bindIResourceSetProvider() { return SimpleResourceSetProvider.class; }
public Class<? extends IResourceSetProvider> bindIResourceSetProvider() { return XtextResourceSetProvider.class; }
protected IResourceSetProvider getResourceSetProvider() { return resourceSetProvider; }
@Override public Class<? extends IResourceSetProvider> bindIResourceSetProvider() { return SimpleResourceSetProvider.class; }
public Class<? extends IResourceSetProvider> bindIResourceSetProvider() { return XtextLiveScopeResourceSetProvider.class; }