微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

org.eclipse.xtext.resource.containers.IAllContainersState的实例源码

项目:xtext-extras    文件BuilderIntegrationFragment.java   
@Override
public Set<Binding> getGuiceBindingsRt(Grammar grammar) {
    return new BindFactory()
    .addTypetoType(IContainer.Manager.class.getName(),StateBasedContainerManager.class.getName())
    .addTypetoType(IAllContaineRSState.Provider.class.getName(),org.eclipse.xtext.resource.containers.ResourceSetBasedAllContaineRSStateProvider.class.getName())
    .addConfiguredBinding(
                IResourceDescriptions.class.getName(),"binder.bind(" + IResourceDescriptions.class.getName() + ".class"
                        + ").to("
                        + ResourceSetBasedResourceDescriptions.class.getName() + ".class)")
        .addConfiguredBinding(
                IResourceDescriptions.class.getName() + "Persisted","binder.bind("+ IResourceDescriptions.class.getName() + ".class"
                        + ").annotatedWith(com.google.inject.name.Names.named("
                        + "org.eclipse.xtext.resource.impl.ResourceDescriptionsprovider.PERSISTED_DESCRIPTIONS)).to("
                        + ResourceSetBasedResourceDescriptions.class.getName() + ".class)")
        .getBindings();
}
项目:xtext-core    文件Reader.java   
@Override
protected void invokeInternal(WorkflowContext ctx,ProgressMonitor monitor,Issues issues) {
    ResourceSet resourceSet = getResourceSet();
    Multimap<String,URI> uris = getPathTraverser().resolvePathes(pathes,new Predicate<URI>() {
        @Override
        public boolean apply(URI input) {
            boolean result = true;
            if (getUriFilter() != null)
                result = getUriFilter().matches(input);
            if (result)
                result = getRegistry().getResourceServiceProvider(input) != null;
            return result;
        }
    });
    IAllContaineRSState containeRSState = containeRSStateFactory.getContaineRSState(pathes,uris);
    installAsAdapter(resourceSet,containeRSState);
    populateResourceSet(resourceSet,uris);
    getValidator().validate(resourceSet,getRegistry(),issues);
    addModelElementsToContext(ctx,resourceSet);
}
项目:n4js    文件xcoreReader.java   
@Override
protected void invokeInternal(WorkflowContext ctx,Issues issues) {
    ResourceSet resourceSet = getResourceSet();

    // due to some xcore peculiarity we have to access the IAllContainerState here
    // to trigger some lazy init logic
    IAllContaineRSState allContainerState = (IAllContaineRSState) EcoreUtil.getAdapter(resourceSet.eAdapters(),IAllContaineRSState.class);
    allContainerState.isEmpty("");

    Multimap<String,new Predicate<URI>() {
        @Override
        public boolean apply(URI input) {
            return input.fileExtension().equals(xcore_FILE_EXT);
        }
    });
    List<Resource> resources = new ArrayList<>();
    for (URI uri : uris.values()) {
        LOGGER.info(uri);
        try {
            resources.add(parse(uri,resourceSet));
        } catch (Exception e) {
            LOGGER.error("Problem during loading of resource @ " + uri,e);
        }
    }
    installIndex(resourceSet);
    for (Resource r : resources) {
        EcoreUtil.resolveAll(r);
        for (Diagnostic x : r.getErrors()) {
            issues.addError(x.getMessage(),x);
        }

    }
    ctx.set(slot,resources);
}
项目:xtext-extras    文件ImplicitUiFragment.java   
@Override
public Set<Binding> getGuiceBindingsUi(Grammar grammar) {
    BindFactory bindFactory = new BindFactory()
        .addTypetoProviderInstance(
                IAllContaineRSState.class.getName(),"org.eclipse.xtext.ui.shared.Access.getJavaProjectsstate()");
    if (XbaseGeneratorFragment.doesUseXbase(grammar)) {
        bindFactory = bindFactory.addTypetoType("org.eclipse.xtext.ui.editor.XtextEditor","org.eclipse.xtext.xbase.ui.editor.XbaseEditor");
        bindFactory = bindFactory.addTypetoType("org.eclipse.xtext.ui.editor.model.XtextDocumentProvider","org.eclipse.xtext.xbase.ui.editor.XbaseDocumentProvider");
        bindFactory = bindFactory.addTypetoType("org.eclipse.xtext.ui.generator.trace.OpenGeneratedFileHandler","org.eclipse.xtext.xbase.ui.generator.trace.XbaSEOpenGeneratedFileHandler");
    }
    return bindFactory.getBindings();
}
项目:xtext-core    文件RuntimeResourceSetinitializer.java   
public ResourceSet getinitializedResourceSet(List<String> pathes,UriFilter filter) {
    ResourceSet resourceSet = resourceSetProvider.get();
    Multimap<String,URI> pathToUriMap = getPathToUriMap(pathes,filter);
    IAllContaineRSState containeRSState = factory.getContaineRSState(pathes,pathToUriMap);
    resourceSet.eAdapters().add(new DelegatingIAllContainerAdapter(containeRSState));
    for (URI uri : pathToUriMap.values()) {
        resourceSet.createResource(uri);
    }
    return resourceSet;
}
项目:pokemon-tcgo-deck-generator    文件AbstractPkmntcgoRuntimeModule.java   
public Class<? extends IAllContaineRSState.Provider> bindIAllContaineRSState$Provider() {
    return ResourceSetBasedAllContaineRSStateProvider.class;
}
项目:pokemon-tcgo-deck-generator    文件AbstractPkmntcgoUiModule.java   
public Provider<? extends IAllContaineRSState> provideIAllContaineRSState() {
    return Access.getJavaProjectsstate();
}
项目:n4js    文件N4JsstandaloneTestsModule.java   
/**
 * Bind a custom IAllContainerState in a testing context. See {@link N4JSTestsAllContainerState} for an explanation.
 */
public Class<? extends IAllContaineRSState.Provider> bindAllContainerState() {
    return N4JSTestsAllContainerState.Provider.class;
}
项目:n4js    文件N4JSTestsAllContainerState.java   
@Override
public IAllContaineRSState get(IResourceDescriptions context) {
    return new N4JSTestsAllContainerState(this.getResourceSet(context));
}
项目:n4js    文件AbstractRegularExpressionRuntimeModule.java   
public Class<? extends IAllContaineRSState.Provider> bindIAllContaineRSState$Provider() {
    return ResourceSetBasedAllContaineRSStateProvider.class;
}
项目:n4js    文件AbstractN4JSUiModule.java   
public Provider<? extends IAllContaineRSState> provideIAllContaineRSState() {
    return Access.getJavaProjectsstate();
}
项目:n4js    文件N4JSAllContaineRSStateProvider.java   
@Override
public IAllContaineRSState get() {
    return instance;
}
项目:n4js    文件N4JSUiModule.java   
@Override
public Provider<IAllContaineRSState> provideIAllContaineRSState() {
    return new N4JSAllContaineRSStateProvider();
}
项目:n4js    文件AbstractRegularExpressionUiModule.java   
public Provider<? extends IAllContaineRSState> provideIAllContaineRSState() {
    return Access.getJavaProjectsstate();
}
项目:n4js    文件AbstractN4JSRuntimeModule.java   
public Class<? extends IAllContaineRSState.Provider> bindIAllContaineRSState$Provider() {
    return ResourceSetBasedAllContaineRSStateProvider.class;
}
项目:n4js    文件AbstractN4MFUiModule.java   
public Provider<? extends IAllContaineRSState> provideIAllContaineRSState() {
    return Access.getJavaProjectsstate();
}
项目:n4js    文件AbstractN4MFRuntimeModule.java   
public Class<? extends IAllContaineRSState.Provider> bindIAllContaineRSState$Provider() {
    return ResourceSetBasedAllContaineRSStateProvider.class;
}
项目:n4js    文件AbstractTypeExpressionsUiModule.java   
public Provider<? extends IAllContaineRSState> provideIAllContaineRSState() {
    return Access.getJavaProjectsstate();
}
项目:n4js    文件AbstractTypesUiModule.java   
public Provider<? extends IAllContaineRSState> provideIAllContaineRSState() {
    return Access.getJavaProjectsstate();
}
项目:Xtext_Xtend_HTML_Generator    文件AbstractMyDslUiModule.java   
public Provider<IAllContaineRSState> provideIAllContaineRSState() {
    return Access.getJavaProjectsstate();
}
项目:Xtext_Xtend_HTML_Generator    文件AbstractMyDslRuntimeModule.java   
public Class<? extends IAllContaineRSState.Provider> bindIAllContaineRSState$Provider() {
    return ResourceSetBasedAllContaineRSStateProvider.class;
}
项目:bromium    文件AbstractbromiumUiModule.java   
public Provider<? extends IAllContaineRSState> provideIAllContaineRSState() {
    return Access.getJavaProjectsstate();
}
项目:bromium    文件AbstractbromiumRuntimeModule.java   
public Class<? extends IAllContaineRSState.Provider> bindIAllContaineRSState$Provider() {
    return ResourceSetBasedAllContaineRSStateProvider.class;
}
项目:gw4e.project    文件AbstractDSLPoliciesUiModule.java   
public Provider<? extends IAllContaineRSState> provideIAllContaineRSState() {
    return Access.getJavaProjectsstate();
}
项目:gw4e.project    文件AbstractDSLPoliciesRuntimeModule.java   
public Class<? extends IAllContaineRSState.Provider> bindIAllContaineRSState$Provider() {
    return ResourceSetBasedAllContaineRSStateProvider.class;
}
项目:lcdsl    文件AbstractLcDslUiModule.java   
public Provider<? extends IAllContaineRSState> provideIAllContaineRSState() {
    return Access.getJavaProjectsstate();
}
项目:lcdsl    文件AbstractLcDslRuntimeModule.java   
public Class<? extends IAllContaineRSState.Provider> bindIAllContaineRSState$Provider() {
    return ResourceSetBasedAllContaineRSStateProvider.class;
}
项目:gemoc-studio    文件AbstractDslRuntimeModule.java   
public Class<? extends IAllContaineRSState.Provider> bindIAllContaineRSState$Provider() {
    return ResourceSetBasedAllContaineRSStateProvider.class;
}
项目:gemoc-studio    文件AbstractDslUiModule.java   
public Provider<? extends IAllContaineRSState> provideIAllContaineRSState() {
    return Access.getJavaProjectsstate();
}
项目:org.xtext.dsl.restaurante    文件AbstractRestauranteRuntimeModule.java   
public Class<? extends IAllContaineRSState.Provider> bindIAllContaineRSState$Provider() {
    return ResourceSetBasedAllContaineRSStateProvider.class;
}
项目:org.xtext.dsl.restaurante    文件AbstractRestauranteUiModule.java   
public Provider<? extends IAllContaineRSState> provideIAllContaineRSState() {
    return Access.getJavaProjectsstate();
}
项目:OCCI-Studio    文件AbstractOCCIRuntimeModule.java   
public Class<? extends IAllContaineRSState.Provider> bindIAllContaineRSState$Provider() {
    return ResourceSetBasedAllContaineRSStateProvider.class;
}
项目:OCCI-Studio    文件AbstractOCCiuiModule.java   
public Provider<? extends IAllContaineRSState> provideIAllContaineRSState() {
    return Access.getJavaProjectsstate();
}
项目:xtext-extras    文件AbstractPureXbaseRuntimeModule.java   
public Class<? extends IAllContaineRSState.Provider> bindIAllContaineRSState$Provider() {
    return ResourceSetBasedAllContaineRSStateProvider.class;
}
项目:xtext-extras    文件AbstractXbaseRuntimeModule.java   
public Class<? extends IAllContaineRSState.Provider> bindIAllContaineRSState$Provider() {
    return ResourceSetBasedAllContaineRSStateProvider.class;
}
项目:xtext-extras    文件AbstractXbaseWithAnnotationsRuntimeModule.java   
public Class<? extends IAllContaineRSState.Provider> bindIAllContaineRSState$Provider() {
    return ResourceSetBasedAllContaineRSStateProvider.class;
}
项目:xtext-extras    文件AbstractBuilderTestLanguageRuntimeModule.java   
public Class<? extends IAllContaineRSState.Provider> bindIAllContaineRSState$Provider() {
    return ResourceSetBasedAllContaineRSStateProvider.class;
}
项目:xtext-extras    文件AbstractBug462047LangruntimeModule.java   
public Class<? extends IAllContaineRSState.Provider> bindIAllContaineRSState$Provider() {
    return ResourceSetBasedAllContaineRSStateProvider.class;
}
项目:xtext-extras    文件AbstractXImportSectionTestLangruntimeModule.java   
public Class<? extends IAllContaineRSState.Provider> bindIAllContaineRSState$Provider() {
    return ResourceSetBasedAllContaineRSStateProvider.class;
}
项目:xtext-extras    文件AbstractContentAssistFragmentTestLangruntimeModule.java   
public Class<? extends IAllContaineRSState.Provider> bindIAllContaineRSState$Provider() {
    return ResourceSetBasedAllContaineRSStateProvider.class;
}

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。