| org.eclipse.ui.ISourceProviderListener
All known Subclasses: org.eclipse.ui.internal.services.ExpressionAuthority,
ISourceProviderListener | public interface ISourceProviderListener (Code) | |
A listener to changes in a particular source of information. This listener is
notified as the source changes. Typically, workbench services will implement
this interface, and register themselves as listeners to the
ISourceProvider instances that are registered with them.
since: 3.1 See Also: org.eclipse.ui.ISources See Also: org.eclipse.ui.ISourceProvider |
Method Summary | |
public void | sourceChanged(int sourcePriority, Map sourceValuesByName) Handles a change to multiple sources. | public void | sourceChanged(int sourcePriority, String sourceName, Object sourceValue) Handles a change to one source. |
sourceChanged | public void sourceChanged(int sourcePriority, Map sourceValuesByName)(Code) | | Handles a change to multiple sources. The source priority should be a bit
mask indicating the sources. The map will be used to construct the
variables on an IEvaluationContext
Parameters: sourcePriority - A bit mask of all the source priorities that have changed. Parameters: sourceValuesByName - A mapping of the source names (String ) to thesource values (Object ). The names shouldnever be null , but the values may be. The mapmust not be null , and should contain at leasttwo elements (one for each source). See Also: org.eclipse.core.expressions.IEvaluationContext See Also: ISources |
sourceChanged | public void sourceChanged(int sourcePriority, String sourceName, Object sourceValue)(Code) | | Handles a change to one source. The source priority should indicate the
source, and the name-value pair will be used to create an
IEvaluationContext with a single variable.
Parameters: sourcePriority - A bit mask of all the source priorities that have changed. Parameters: sourceName - The name of the source that changed; must not benull . Parameters: sourceValue - The new value for that source; may be null . See Also: org.eclipse.core.expressions.IEvaluationContext See Also: ISources |
|
|