|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A provider of notifications for when a change has occurred to a particular type of source. These providers can be given to the appropriate service, and this service will then re-evaluate the appropriate pieces of its internal state in response to these changes.
It is recommended that clients subclass AbstractSourceProvider
instead, as this provides some common support for listeners.
IHandlerService
,
ISources
Method Summary | |
---|---|
void |
addSourceProviderListener(ISourceProviderListener listener)
Adds a listener to this source provider. |
void |
dispose()
Allows the source provider an opportunity to clean up resources (e.g., listeners) before being released. |
Map |
getCurrentState()
Returns the current state of the sources tracked by this provider. |
void |
removeSourceProviderListener(ISourceProviderListener listener)
Removes a listener from this source provider. |
Method Detail |
public void addSourceProviderListener(ISourceProviderListener listener)
listener
- The listener to add; must not be null
.public void dispose()
public Map getCurrentState()
String
) to variable
values (Object
). This may be empty, and may be
null
.public void removeSourceProviderListener(ISourceProviderListener listener)
listener
- The listener to remove; must not be null
.
|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2005. All rights reserved.