public class ModelResourceListener extends Object implements IResourceChangeListener, IResourceDeltaVisitor
ThreadedModelResolver#MODEL_CONTENT_TYPES
.ThreadedModelResolver#hasModelType(IFile)
Modifier and Type | Field and Description |
---|---|
protected Set<URI> |
changedURIs
Keeps track of the URIs that need to be reparsed when next we need the dependencies graph .
|
protected ReentrantLock |
internalLock
Prevents concurrent access to the two internal sets.
|
protected Set<URI> |
removedURIs
Tracks the files that have been removed.
|
Constructor and Description |
---|
ModelResourceListener()
Initializes this listener.
|
Modifier and Type | Method and Description |
---|---|
Set<URI> |
popChangedURIs()
Retrieves the set of all changed URIs since we last updated the dependencies graph, and clears it for
subsequent calls.
|
Set<URI> |
popRemovedURIs()
Retrieves the set of all removed URIs since we last updated the dependencies graph, and clears it for
subsequent calls.
|
void |
resourceChanged(IResourceChangeEvent event) |
boolean |
visit(IResourceDelta delta) |
protected final Set<URI> changedURIs
protected final ReentrantLock internalLock
public void resourceChanged(IResourceChangeEvent event)
resourceChanged
in interface IResourceChangeListener
public Set<URI> popChangedURIs()
public Set<URI> popRemovedURIs()
public boolean visit(IResourceDelta delta) throws CoreException
visit
in interface IResourceDeltaVisitor
CoreException
IResourceDeltaVisitor.visit(org.eclipse.core.resources.IResourceDelta)
Copyright (c) 2006, 2014 Obeo and others. All rights reserved.