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(); }
@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); }
public void configureIStorage2UriMapperJdtExtensions(final Binder binder) { binder.bind(IStorage2UriMapperJdtExtensions.class).toProvider( Providers.of((IStorage2UriMapperJdtExtensions) (new Storage2UriMapperJavaImpl()))); }