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

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.services
Interface IServiceWithSources

All Superinterfaces:
IDisposable
All Known Subinterfaces:
IContextService, IEvaluationService, IHandlerService, IMenuService

public interface IServiceWithSources
extends IDisposable

A service that responds to changes in one or more sources. These sources can be plugged into the service. Sources represent a common event framework for services.

Clients must not extend or implement.

Since:
3.2

Method Summary
 void addSourceProvider ( ISourceProvider provider)
          Adds a source provider to this service.
 void removeSourceProvider ( ISourceProvider provider)
          Removes a source provider from this service.
 
Methods inherited from interface org.eclipse.ui.services. IDisposable
dispose
 

Method Detail

addSourceProvider

void addSourceProvider(
ISourceProvider provider)
Adds a source provider to this service. A source provider will notify the service when the source it provides changes. An example of a source might be an active editor or the current selection. This amounts to a pluggable state tracker for the service.

Parameters:
provider - The provider to add; must not be null.

removeSourceProvider

void removeSourceProvider(
ISourceProvider provider)
Removes a source provider from this service. Most of the time, this method call is not required as source providers typically share the same life span as the workbench itself.

Parameters:
provider - The provider to remove; must not be null.

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