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

项目:bts    文件:JavaProjectsStateHelper.java   
public Collection<URI> initContainedURIs(String containerHandle) {
    IJavaElement javaElement = JavaCore.create(containerHandle);
    if (javaElement instanceof IPackageFragmentRoot) {
        IPackageFragmentRoot root = (IPackageFragmentRoot) javaElement;
        IJavaProject javaProject = root.getJavaProject();
        if (!isAccessibleXtextProject(javaProject.getProject())) {
            return Collections.emptyList();
        }
        Map<URI, IStorage> entries = ((IStorage2UriMapperJdtExtensions)super.getMapper()).getAllEntries(root);
        return entries.keySet();
    }
    return Collections.emptyList();
}
项目: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);
    }
项目:antlr4ide    文件:Antlr4UiModule.java   
public void configureIStorage2UriMapperJdtExtensions(final Binder binder) {
  binder.bind(IStorage2UriMapperJdtExtensions.class).toProvider(
      Providers.of((IStorage2UriMapperJdtExtensions) (new Storage2UriMapperJavaImpl())));
}