Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.ui
Interface ISourceProviderListener


public interface ISourceProviderListener

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:
ISources, ISourceProvider

Method Summary
 void sourceChanged (int sourcePriority, Map sourceValuesByName)
          Handles a change to multiple sources.
 void sourceChanged (int sourcePriority, String sourceName, Object sourceValue)
          Handles a change to one source.
 

Method Detail

sourceChanged

void sourceChanged(int sourcePriority,
                   
Map sourceValuesByName)
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.
sourceValuesByName - A mapping of the source names (String) to the source values (Object). The names should never be null, but the values may be. The map must not be null, and should contain at least two elements (one for each source).
See Also:
IEvaluationContext, ISources

sourceChanged

void sourceChanged(int sourcePriority,
                   
String sourceName,
                   
Object sourceValue)
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.
sourceName - The name of the source that changed; must not be null.
sourceValue - The new value for that source; may be null.
See Also:
IEvaluationContext, ISources

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire