@Override public Object[] findSourceElements(String name) throws CoreException { ExternalArchiveSourceContainer container = getDelegateContainer(); if (container != null) { return container.findSourceElements(name); } return EMPTY; }
@Override public ISourceContainer[] addSourceContainers(Shell shell, ISourceLookupDirector director) { ISourceContainer[] containers = new ISourceContainer[1]; containers[0] = new WorkspaceSourceContainer(); return containers; }
@Override public void dispose() { fSourceFolders = null; fOthers = null; super.dispose(); }
/** * Constructs a new storage implementation for the * given zip entry in the specified zip file * * @param archive zip file * @param entry zip entry */ public ZipEntryStorage(ZipFile archive, ZipEntry entry) { setArchive(archive); setZipEntry(entry); }
@Override public Object[] findSourceElements(String name) throws CoreException { return findSourceElements(name, getSourceContainers()); }
@Override public synchronized ISourceContainer[] getSourceContainers() throws CoreException { if (fContainers == null) { fContainers = createSourceContainers(); for (int i = 0; i < fContainers.length; i++) { ISourceContainer container = fContainers[i]; container.init(getDirector()); } } return fContainers; }
/** * Returns the project this source container references. * * @return the project this source container references */ public IProject getProject() { return (IProject) getContainer(); }
/** * Constructs and returns storage for the given file. * * @param file a local file */ public LocalFileStorage(File file){ setFile(file); }
@Override public ISourceContainerType getType() { return getSourceContainerType(TYPE_ID); }
@Override public ISourceContainerType getType() { return getSourceContainerType(TYPE_ID); }
@Override public ISourceContainerType getType() { return getSourceContainerType(TYPE_ID); }
@Override public ISourceContainerType getType() { return getSourceContainerType(TYPE_ID); }
@Override public ISourceContainerType getType() { return getSourceContainerType(TYPE_ID); }
@Override public ISourceContainerType getType() { return getSourceContainerType(TYPE_ID); }
@Override public ISourceContainerType getType() { return getSourceContainerType(TYPE_ID); }
@Override public boolean equals(Object obj) { if (obj != null && obj instanceof ContainerSourceContainer) { ContainerSourceContainer loc = (ContainerSourceContainer) obj; return loc.getContainer().equals(getContainer()); } return false; }
@Bean public WorkspaceSourceContainer sourceContainer() { return new WorkspaceSourceContainer(); } }
@Override public void dispose() { fSourceFolders = null; fOthers = null; super.dispose(); }