| java.lang.Object org.netbeans.modules.gsfret.source.usages.RepositoryUpdater
RepositoryUpdater | public class RepositoryUpdater implements PropertyChangeListener,FileChangeListener(Code) | | RepositoryUpdater is in charge of maintaining indices of the various classes in
the system, for use by code completion, go to declaration, etc. The classes include
not only the user's source and test directories, but jars from the boot class path etc.
The RepositoryUpdater schedules indexing jobs, watches filesystems for modifications,
determines whether an index is out of date, etc.
This class is originally from Retouche, under the java/source module. Since it's
an important and fairly complicated piece of logic, I am trying my best to keep
my copy in sync with the java one. Therefore, I have left the original formatting
in place as much as possible. Please don't make gratuitous formatting changes that
makes diffing harder.
There are some important changes. Obviously, the various javac-specific setup code
has changed, and I also need to -iterate- over files to be indexed to let the
potentially multiple language indexers each have a chance to index the file.
I have also changed references to other parts that have been renamed, such
as JavaSource => Source, etc.
author: Tomas Zezula author: Tor Norbye |
Inner Class :static class LazyFileList implements Iterable<File> | |
Method Summary | |
public static void | batchCompile(List<ParserFile> toCompile, FileObject rootFo, ClasspathInfo cpInfo, URL root, Set<URI> dirtyFiles, Set added, ProgressHandle handle, Map<Language, Map<String, String>> timeStamps) | public void | close() | public void | fileAttributeChanged(FileAttributeEvent fe) | public void | fileChanged(FileEvent fe) | public void | fileDataCreated(FileEvent fe) | public void | fileDeleted(FileEvent fe) | public void | fileFolderCreated(FileEvent fe) | public void | fileRenamed(FileRenameEvent fe) | public static synchronized RepositoryUpdater | getDefault() | public Map<URL, List<URL>> | getDependencies() | public ClassPath | getScannedBinaries() | public ClassPath | getScannedSources() | public static boolean | isRelevantSource(FileObject fo) | public synchronized boolean | isScanInProgress() | public void | propertyChange(PropertyChangeEvent evt) | final public void | scheduleCompilation(FileObject fo, FileObject root) | final public CountDownLatch | scheduleCompilationAndWait(FileObject folder, FileObject root) This method is only for unit tests.
Test can schedule compilation and wait on the returned
CountDownLatch until the compilation is finished.
Parameters: folder - to be compiled Parameters: root - the source root. | public synchronized void | waitScanFinished() |
close | public void close()(Code) | | |
fileAttributeChanged | public void fileAttributeChanged(FileAttributeEvent fe)(Code) | | |
fileChanged | public void fileChanged(FileEvent fe)(Code) | | |
fileDataCreated | public void fileDataCreated(FileEvent fe)(Code) | | |
fileDeleted | public void fileDeleted(FileEvent fe)(Code) | | |
fileFolderCreated | public void fileFolderCreated(FileEvent fe)(Code) | | |
fileRenamed | public void fileRenamed(FileRenameEvent fe)(Code) | | |
isRelevantSource | public static boolean isRelevantSource(FileObject fo)(Code) | | Temporary implementation which does not care about
extended mime types like text/x-something+x-java
|
isScanInProgress | public synchronized boolean isScanInProgress()(Code) | | |
scheduleCompilation | final public void scheduleCompilation(FileObject fo, FileObject root) throws IOException(Code) | | |
scheduleCompilationAndWait | final public CountDownLatch scheduleCompilationAndWait(FileObject folder, FileObject root) throws IOException(Code) | | This method is only for unit tests.
Test can schedule compilation and wait on the returned
CountDownLatch until the compilation is finished.
Parameters: folder - to be compiled Parameters: root - the source root. The folder has to be either under the root orequal to the root. CountDownLatch to wait on. |
|
|