| java.lang.Object org.eclipse.ui.AbstractSourceProvider
All known Subclasses: org.eclipse.ui.internal.services.MenuSourceProvider, org.eclipse.ui.internal.menus.FocusControlSourceProvider, org.eclipse.ui.internal.contexts.ActiveContextSourceProvider, org.eclipse.ui.internal.services.ActionSetSourceProvider, org.eclipse.ui.internal.services.ActiveShellSourceProvider, org.eclipse.ui.internal.services.ActivePartSourceProvider, org.eclipse.ui.internal.services.CurrentSelectionSourceProvider,
AbstractSourceProvider | abstract public class AbstractSourceProvider implements ISourceProvider(Code) | |
An implementation of ISourceProvider that provides listener
support. Subclasses need only call fireSourceChanged whenever
appropriate.
since: 3.1 |
Field Summary | |
protected static boolean | DEBUG Whether source providers should print out debugging information to the
console when events arrive. |
DEBUG | protected static boolean DEBUG(Code) | | Whether source providers should print out debugging information to the
console when events arrive.
since: 3.2 |
fireSourceChanged | final protected void fireSourceChanged(int sourcePriority, String sourceName, Object sourceValue)(Code) | | Notifies all listeners that a single source has changed.
Parameters: sourcePriority - The source priority that has changed. Parameters: sourceName - The name of the source that has changed; must not benull . Parameters: sourceValue - The new value for the source; may be null . |
fireSourceChanged | final protected void fireSourceChanged(int sourcePriority, Map sourceValuesByName)(Code) | | Notifies all listeners that multiple sources have changed.
Parameters: sourcePriority - The source priority that has changed. Parameters: sourceValuesByName - The map of source names (String ) to sourcevalues (Object ) that have changed; must notbe null . The names must not benull , but the values may be null . |
logDebuggingInfo | final protected void logDebuggingInfo(String message)(Code) | | Logs a debugging message in an appropriate manner. If the message is
null or the DEBUG is false ,
then this method does nothing.
Parameters: message - The debugging message to log; if null , thennothing is logged. since: 3.2 |
|
|