Package org.eclipse.xtext.scoping.impl
Class DelegatingEventSource
- java.lang.Object
-
- org.eclipse.xtext.resource.impl.AbstractResourceDescriptionChangeEventSource
-
- org.eclipse.xtext.scoping.impl.DelegatingEventSource
-
- All Implemented Interfaces:
IResourceDescription.Event.Listener
,IResourceDescription.Event.Source
,org.eclipse.xtext.util.OnChangeEvictingCache.Listener
public class DelegatingEventSource extends AbstractResourceDescriptionChangeEventSource implements IResourceDescription.Event.Listener, org.eclipse.xtext.util.OnChangeEvictingCache.Listener
-
-
Constructor Summary
Constructors Constructor Description DelegatingEventSource(IResourceDescription.Event.Source source)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
descriptionsChanged(IResourceDescription.Event event)
The source will invoke this method to announce changed resources.void
initialize()
void
onEvict(org.eclipse.xtext.util.OnChangeEvictingCache.CacheAdapter cache)
-
Methods inherited from class org.eclipse.xtext.resource.impl.AbstractResourceDescriptionChangeEventSource
addListener, addListeners, notifyListeners, removeListener, removeListeners
-
-
-
-
Constructor Detail
-
DelegatingEventSource
public DelegatingEventSource(IResourceDescription.Event.Source source)
-
-
Method Detail
-
initialize
public void initialize()
-
descriptionsChanged
public void descriptionsChanged(IResourceDescription.Event event)
Description copied from interface:IResourceDescription.Event.Listener
The source will invoke this method to announce changed resources. The event will never be
null
. However, it may contain an empty list of deltas.Listeners are free to remove themselves from the sender of the event or add other listeners. However added listeners will not be informed about the current change.
This event may be fired asynchronously. It is ensured that the changed resources will provide the content as it was when the change has been announced to the sender of the event.
- Specified by:
descriptionsChanged
in interfaceIResourceDescription.Event.Listener
- Parameters:
event
- the fired event. Will never benull
.
-
onEvict
public void onEvict(org.eclipse.xtext.util.OnChangeEvictingCache.CacheAdapter cache)
- Specified by:
onEvict
in interfaceorg.eclipse.xtext.util.OnChangeEvictingCache.Listener
-
-