public class ModelResourceListener extends Object implements org.eclipse.core.resources.IResourceChangeListener, org.eclipse.core.resources.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(org.eclipse.core.resources.IResourceChangeEvent event) |
boolean |
visit(org.eclipse.core.resources.IResourceDelta delta) |
protected final Set<URI> changedURIs
protected final ReentrantLock internalLock
public void resourceChanged(org.eclipse.core.resources.IResourceChangeEvent event)
resourceChanged
in interface org.eclipse.core.resources.IResourceChangeListener
public Set<URI> popChangedURIs()
public Set<URI> popRemovedURIs()
public boolean visit(org.eclipse.core.resources.IResourceDelta delta) throws org.eclipse.core.runtime.CoreException
visit
in interface org.eclipse.core.resources.IResourceDeltaVisitor
org.eclipse.core.runtime.CoreException
IResourceDeltaVisitor.visit(org.eclipse.core.resources.IResourceDelta)
Copyright (c) 2006, 2015 Obeo and others. All rights reserved.