Java 类org.eclipse.xtext.ui.resource.IResourceSetProvider 实例源码

项目:n4js    文件:AbstractBuilderParticipantTest.java   
/***/
protected ResourceSet getResourceSet(IProject project) {
    if (resourceSet == null) {
        resourceSet = getInjector().getInstance(IResourceSetProvider.class).get(project);
    }
    return resourceSet;
}
项目:n4js    文件:EclipseBasedN4JSWorkspace.java   
/**
 * Public for testing purpose.
 */
@Inject
public EclipseBasedN4JSWorkspace(
        IWorkspaceRoot workspace,
        IResourceSetProvider resourceSetProvider) {
    this.workspace = workspace;
    this.resourceSetProvider = resourceSetProvider;
}
项目:n4js    文件:ForwardingResourceAccess.java   
/**
 * Configure the delegate.
 *
 * @param delegate
 *            the delegate to use.
 */

public ForwardingResourceAccess(IReferenceFinder.IResourceAccess delegate,
        IResourceSetProvider resourceSetProvider) {
    this.delegate = delegate;
    this.resourceSetProvider = resourceSetProvider;
}
项目:n4js    文件:TaskGenerateAdoc.java   
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;
}
项目:statecharts    文件:SGenUiModule.java   
@Override
public Class<? extends IResourceSetProvider> bindIResourceSetProvider() {
    if (Access.getJdtHelper().get().isJavaCoreAvailable()) {
        return XtextResourceSetProvider.class;
    } else {
        return SimpleResourceSetProvider.class;
    }
}
项目:statecharts    文件:STextUiModule.java   
public Class<? extends IResourceSetProvider> bindIResourceSetProvider() {
    if (Access.getJdtHelper().get().isJavaCoreAvailable()) {
        return XtextResourceSetProvider.class;
    } else {
        return SimpleResourceSetProvider.class;
    }
}
项目:statecharts    文件:ExpressionsUiModule.java   
@Override
public Class<? extends IResourceSetProvider> bindIResourceSetProvider() {
    if (Access.getJdtHelper().get().isJavaCoreAvailable()) {
        return XtextResourceSetProvider.class;
    } else {
        return SimpleResourceSetProvider.class;
    }
}
项目:CooperateModelingEnvironment    文件:CooperateResourceHandlingBindingsFragment2.java   
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");
}
项目:sadlos2    文件:SadlSharedModule.java   
@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);
    }
项目:joynr    文件:TestsStandaloneSetup.java   
private Module getStaticTestModule() {
    return new AbstractModule() {

        @Override
        protected void configure() {
            bind(IResourceSetProvider.class).to(XtextResourceSetProvider.class);
        }
    };
}
项目:n4js    文件:ProjectUtils.java   
private static ResourceSet createResourceSet(IProject project) {
    return N4JSActivator.getInstance().getInjector(N4JSActivator.ORG_ECLIPSE_N4JS_N4JS)
            .getInstance(IResourceSetProvider.class).get(project);
}
项目:n4js    文件:AbstractN4JSContentAssistTest.java   
private XtextResourceSet getResourceSet() {
    IResourceSetProvider resourceSetProvider = get(IResourceSetProvider.class);
    ResourceSet result = resourceSetProvider.get(getJSProject());
    return (XtextResourceSet) result;
}
项目:dsl-devkit    文件:ParallelResourceLoader.java   
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;
}
项目:bts    文件:EmfUiModule.java   
public Class<? extends IResourceSetProvider> bindIResourceSetProvider() {
    return SimpleResourceSetProvider.class;
}
项目:bts    文件:DefaultUiModule.java   
public Class<? extends IResourceSetProvider> bindIResourceSetProvider() {
    return XtextResourceSetProvider.class;
}
项目:bts    文件:ResourceForIEditorInputFactory.java   
protected IResourceSetProvider getResourceSetProvider() {
    return resourceSetProvider;
}
项目:gama    文件:GamlUiModule.java   
@Override
public Class<? extends IResourceSetProvider> bindIResourceSetProvider() {
    return SimpleResourceSetProvider.class;
}
项目:CooperateModelingEnvironment    文件:AbstractComponentUiModule.java   
public Class<? extends IResourceSetProvider> bindIResourceSetProvider() {
    return XtextLiveScopeResourceSetProvider.class;
}
项目:CooperateModelingEnvironment    文件:AbstractClsUiModule.java   
public Class<? extends IResourceSetProvider> bindIResourceSetProvider() {
    return XtextLiveScopeResourceSetProvider.class;
}
项目:CooperateModelingEnvironment    文件:AbstractUsecaseUiModule.java   
public Class<? extends IResourceSetProvider> bindIResourceSetProvider() {
    return XtextLiveScopeResourceSetProvider.class;
}
项目:slr-toolkit    文件:TaxonomyUiModule.java   
@Override
public Class<? extends IResourceSetProvider> bindIResourceSetProvider() {
    return SimpleResourceSetProvider.class;
}
项目:antlr4ide    文件:Antlr4UiModule.java   
@Override
public Class<? extends IResourceSetProvider> bindIResourceSetProvider() {
  return SimpleResourceSetProvider.class;
}
项目:DialogScriptDSL    文件:DialogScriptUiModule.java   
@Override
public Class<? extends IResourceSetProvider> bindIResourceSetProvider() {
    return SimpleResourceSetProvider.class;
}