Java 类org.eclipse.xtext.ui.shared.Access 实例源码

项目:dsl-devkit    文件:CheckResourceUtil.java   
/**
 * Gets all available grammars.
 * <p>
 * The result contains no null entries.
 * </p>
 *
 * @return an iterator over all grammars in the workspace followed by all those in the registry.
 */
private Iterable<Grammar> allGrammars() {
  final ResourceSet resourceSetForResolve = new ResourceSetImpl();
  final Function<IEObjectDescription, Grammar> description2GrammarTransform = new Function<IEObjectDescription, Grammar>() {
    @Override
    public Grammar apply(final IEObjectDescription desc) {
      EObject obj = desc.getEObjectOrProxy();
      if (obj != null && obj.eIsProxy()) {
        obj = EcoreUtil.resolve(obj, resourceSetForResolve);
      }
      if (obj instanceof Grammar && !obj.eIsProxy()) {
        return (Grammar) obj;
      } else {
        return null;
      }

    }
  };

  final Iterable<IEObjectDescription> grammarDescriptorsFromIndex = Access.getIResourceDescriptions().get().getExportedObjectsByType(XtextPackage.Literals.GRAMMAR);
  return Iterables.concat(Iterables.filter(Iterables.transform(grammarDescriptorsFromIndex, description2GrammarTransform), Predicates.notNull()), allGrammarsFromRegistry());
}
项目:statecharts    文件:SGenUiModule.java   
@Override
public Class<? extends IResourceSetProvider> bindIResourceSetProvider() {
    if (Access.getJdtHelper().get().isJavaCoreAvailable()) {
        return XtextResourceSetProvider.class;
    } else {
        return SimpleResourceSetProvider.class;
    }
}
项目:statecharts    文件:SGenUiModule.java   
@Override
public Class<? extends IResourceForEditorInputFactory> bindIResourceForEditorInputFactory() {
    if (Access.getJdtHelper().get().isJavaCoreAvailable()) {
        return JavaClassPathResourceForIEditorInputFactory.class;
    } else {
        return ResourceForIEditorInputFactory.class;
    }
}
项目:statecharts    文件:STextUiModule.java   
public com.google.inject.Provider<org.eclipse.xtext.resource.containers.IAllContainersState> provideIAllContainersState() {
    if (Access.getJdtHelper().get().isJavaCoreAvailable()) {
        return Access.getJavaProjectsState();
    } else {
        return Access.getWorkspaceProjectsState();
    }
}
项目:statecharts    文件:STextUiModule.java   
public Class<? extends IResourceSetProvider> bindIResourceSetProvider() {
    if (Access.getJdtHelper().get().isJavaCoreAvailable()) {
        return XtextResourceSetProvider.class;
    } else {
        return SimpleResourceSetProvider.class;
    }
}
项目:statecharts    文件:STextUiModule.java   
@Override
public Class<? extends IResourceForEditorInputFactory> bindIResourceForEditorInputFactory() {
    if (Access.getJdtHelper().get().isJavaCoreAvailable()) {
        return JavaClassPathResourceForIEditorInputFactory.class;
    } else {
        return ResourceForIEditorInputFactory.class;
    }
}
项目:statecharts    文件:ExpressionsUiModule.java   
public com.google.inject.Provider<org.eclipse.xtext.resource.containers.IAllContainersState> provideIAllContainersState() {
    if (Access.getJdtHelper().get().isJavaCoreAvailable()) {
        return Access.getJavaProjectsState();
    } else {
        return Access.getWorkspaceProjectsState();
    }
}
项目:statecharts    文件:ExpressionsUiModule.java   
@Override
public Class<? extends IResourceSetProvider> bindIResourceSetProvider() {
    if (Access.getJdtHelper().get().isJavaCoreAvailable()) {
        return XtextResourceSetProvider.class;
    } else {
        return SimpleResourceSetProvider.class;
    }
}
项目:statecharts    文件:ExpressionsUiModule.java   
@Override
public Class<? extends IResourceForEditorInputFactory> bindIResourceForEditorInputFactory() {
    if (Access.getJdtHelper().get().isJavaCoreAvailable()) {
        return JavaClassPathResourceForIEditorInputFactory.class;
    } else {
        return ResourceForIEditorInputFactory.class;
    }
}
项目:pokemon-tcgo-deck-generator    文件:AbstractPkmntcgoUiModule.java   
public Provider<? extends IAllContainersState> provideIAllContainersState() {
    return Access.getJavaProjectsState();
}
项目:n4js    文件:BuilderUtil.java   
/***/
public static IBuilderState getBuilderState() {
    return Access.getIBuilderState().get();
}
项目:n4js    文件:AbstractN4JSUiModule.java   
public Provider<? extends IAllContainersState> provideIAllContainersState() {
    return Access.getJavaProjectsState();
}
项目:n4js    文件:N4JSUiModule.java   
/**
 * Re-binds the {@link GitCloneSupplier} to the singleton instance declared in the contribution module.
 */
public Provider<GitCloneSupplier> provideGitCloneSupplier() {
    return Access.contributedProvider(GitCloneSupplier.class);
}
项目:n4js    文件:N4JSUiModule.java   
/**
 * Binds the broker for the working set managers in a singleton scope.
 */
public Provider<WorkingSetManagerBroker> provideWorkingSetManagerBroker() {
    return Access.contributedProvider(WorkingSetManagerBroker.class);
}
项目:n4js    文件:N4JSUiModule.java   
/**
 * Binds the broker implementation for the working set managers in a singleton scope.
 */
public Provider<WorkingSetManagerBrokerImpl> provideWorkingSetManagerBrokerImpl() {
    return Access.contributedProvider(WorkingSetManagerBrokerImpl.class);
}
项目:n4js    文件:N4JSUiModule.java   
/**
 * Binds the type definition Git location provider.
 */
public Provider<TypeDefinitionGitLocationProvider> provideTypeDefinitionGitLocationProvider() {
    return Access.contributedProvider(TypeDefinitionGitLocationProvider.class);
}
项目:n4js    文件:N4JSUiModule.java   
/**
 * Configure the IN4JSCore instance to use the implementation that is backed by the Eclipse workspace.
 */
public Provider<IN4JSEclipseCore> provideIN4JSEclipseCore() {
    return Access.contributedProvider(IN4JSEclipseCore.class);
}
项目:n4js    文件:N4JSUiModule.java   
/**
 * Configure the IN4JSCore instance to use the implementation that is backed by the Eclipse workspace.
 */
public Provider<EclipseBasedN4JSWorkspace> provideEclipseBasedN4JSWorkspace() {
    return Access.contributedProvider(EclipseBasedN4JSWorkspace.class);
}
项目:n4js    文件:AbstractRegularExpressionUiModule.java   
public Provider<? extends IAllContainersState> provideIAllContainersState() {
    return Access.getJavaProjectsState();
}
项目:n4js    文件:AbstractN4MFUiModule.java   
public Provider<? extends IAllContainersState> provideIAllContainersState() {
    return Access.getJavaProjectsState();
}
项目: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();
}
项目:bromium    文件:AbstractBromiumUiModule.java   
public Provider<? extends IAllContainersState> provideIAllContainersState() {
    return Access.getJavaProjectsState();
}
项目:gw4e.project    文件:AbstractDSLPoliciesUiModule.java   
public Provider<? extends IAllContainersState> provideIAllContainersState() {
    return Access.getJavaProjectsState();
}
项目:lcdsl    文件:AbstractLcDslUiModule.java   
public Provider<? extends IAllContainersState> provideIAllContainersState() {
    return Access.getJavaProjectsState();
}
项目:gemoc-studio    文件:AbstractDslUiModule.java   
public Provider<? extends IAllContainersState> provideIAllContainersState() {
    return Access.getJavaProjectsState();
}
项目:org.xtext.dsl.restaurante    文件:AbstractRestauranteUiModule.java   
public Provider<? extends IAllContainersState> provideIAllContainersState() {
    return Access.getJavaProjectsState();
}
项目:OCCI-Studio    文件:AbstractOCCIUiModule.java   
public Provider<? extends IAllContainersState> provideIAllContainersState() {
    return Access.getJavaProjectsState();
}
项目:M2Doc    文件:AbstractMyDslUiModule.java   
public Provider<? extends IAllContainersState> provideIAllContainersState() {
    return Access.getJavaProjectsState();
}
项目:minitl    文件:AbstractMinitlUiModule.java   
public Provider<IAllContainersState> provideIAllContainersState() {
    return Access.getJavaProjectsState();
}
项目:Sparrow    文件:AbstractModelEditorUiModule.java   
public Provider<IAllContainersState> provideIAllContainersState() {
    return Access.getJavaProjectsState();
}
项目:statecharts    文件:SGenUiModule.java   
@Override
public com.google.inject.Provider<org.eclipse.xtext.resource.containers.IAllContainersState> provideIAllContainersState() {
    return Access.getWorkspaceProjectsState();
}
项目:statecharts    文件:DirtyStateListener.java   
public DirtyStateListener() {
    dirtyStateManager = Access.getIDirtyStateManager().get();
    uri2dirtyResource = Maps.newHashMap();
}
项目:statecharts    文件:DirtyStateAwareDiagramDocumentEditor.java   
public DirtyStateAwareDiagramDocumentEditor(boolean hasFlyoutPalette) {
    super(hasFlyoutPalette);
    dirtyStateManager = Access.getIDirtyStateManager().get();
    uri2dirtyResource = Maps.newHashMap();
}
项目:CooperateModelingEnvironment    文件:AbstractComponentUiModule.java   
public Provider<? extends IAllContainersState> provideIAllContainersState() {
    return Access.getJavaProjectsState();
}
项目:CooperateModelingEnvironment    文件:AbstractClsUiModule.java   
public Provider<? extends IAllContainersState> provideIAllContainersState() {
    return Access.getJavaProjectsState();
}
项目:CooperateModelingEnvironment    文件:AbstractUsecaseUiModule.java   
public Provider<? extends IAllContainersState> provideIAllContainersState() {
    return Access.getJavaProjectsState();
}
项目:cs2as    文件:AbstractASBHLangUiModule.java   
public Provider<IAllContainersState> provideIAllContainersState() {
    return Access.getJavaProjectsState();
}
项目:cs2as    文件:AbstractMiniOCLUiModule.java   
public Provider<IAllContainersState> provideIAllContainersState() {
    return Access.getJavaProjectsState();
}