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

  




 

 

Runtime

org.eclipse.gmf.runtime.common.core.service
Interface IProvider

All Known Subinterfaces:
DiagramEventBrokerProvider, IDragDropListenerProvider, IEditorProvider, IElementSelectionProvider, IGlobalActionHandlerProvider, IIconProvider, IModelingAssistantProvider, IParserProvider, IPropertiesModifier, IPropertiesProvider, IStatusLineContributionItemProvider, IViewProvider
All Known Implementing Classes:
AbstractActionFilterProvider, AbstractContributionItemProvider, AbstractDiagramEventBrokerProvider, AbstractDiagramMarkerNavigationProvider, AbstractDragDropListenerProvider, AbstractEditorProvider, AbstractElementSelectionProvider, AbstractGlobalActionHandlerProvider, AbstractMarkerNavigationProvider, AbstractModelActionFilterProvider, AbstractModelMarkerNavigationProvider, AbstractProvider, AbstractStatusLineContributionItemProvider, AbstractTransferAdapterProvider, AbstractViewProvider, ActionFilterService, ActionFilterService.ProviderDescriptor, ActivityFilterProviderDescriptor, ContributionItemService, ContributionItemService.ProviderDescriptor, DefaultPaletteProvider, DiagramContributionItemProvider, DiagramEventBrokerService, DiagramEventBrokerService.ProviderDescriptor, DiagramGlobalActionHandlerProvider, DiagramIDEGlobalActionHandlerProvider, DiagramWithPrintGlobalActionHandlerProvider, DragDropListenerService, DragDropListenerService.ProviderDescriptor, EditorGlobalActionHandlerProvider, EditorService, ElementSelectionService, GenericEMFPropertiesProvider, GlobalActionHandlerService, GlobalActionHandlerService.ProviderDescriptor, IconService, IconService.ProviderDescriptor, MarkerNavigationService, MarkerNavigationService.MarkerNavigationProviderDescriptor, ModelingAssistantProvider, ModelingAssistantService, ModelingAssistantService.ProviderDescriptor, ParserService, PropertiesService, PropertiesService.PropertiesProviderDescriptor, ReadOnlyDiagramPropertiesModifier, Service, Service.ProviderDescriptor, StatusLineService, TransferAdapterService, TransferAdapterService.ProviderDescriptor, ViewService, ViewService.ProviderDescriptor

public interface IProvider

The interface for all service providers. Specifies a part of the contract between a service and its providers:

  • A service can listen to its provider
  • A service can request a provider whether it wants to support a given request

Service implementers are expected to expose service specific classes implementing this interface.

Service provider implementers never need to implement this interface directly, they instead derive their provider implementation from the service specific implementation of this interface.


Method Summary
 void addProviderChangeListener ( IProviderChangeListener listener)
          Adds the specified listener to the list of provider change listeners for this provider.
 boolean provides ( IOperation operation)
          Indicates whether this provider provides the specified operation.
 void removeProviderChangeListener ( IProviderChangeListener listener)
          Removes the specified listener from the list of provider change listeners for this provider.
 

Method Detail

addProviderChangeListener

void addProviderChangeListener(
IProviderChangeListener listener)
Adds the specified listener to the list of provider change listeners for this provider.

Parameters:
listener - The listener to be added.

provides

boolean provides(
IOperation operation)
Indicates whether this provider provides the specified operation.

Providers generally cast the operation to a service specific IOperation-derived class in order to determine whether they support the request.

Parameters:
operation - The operation in question.
Returns:
true if this provider provides the operation; false otherwise.

removeProviderChangeListener

void removeProviderChangeListener(
IProviderChangeListener listener)
Removes the specified listener from the list of provider change listeners for this provider.

Parameters:
listener - The listener to be removed.

Runtime

Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.


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