IComponentSite.getService

Overview | Methods | This Package | All Packages

IComponentSite.getService

Retrieves a service provided by the site.

Syntax

public synchronized Object getService( Class service )

Parameters

service

An interface that represents the service. Currently, the only service available is ISelectionService, which can be obtained by passing ISelectionService.class for this parameter.

Return Value

Returns an object that implements the specified interface. If the site does not support this service, null is returned.