# Services View Extension Point

###### Identifier:

org.eclipse.ecf.remoteservice.ui.servicesview

###### Since:

3.3.0 of this plugin.

###### Description:

This extension point allows new Services views to be created by other plugins and then used by the Remote Services Perspective to display the OSGi services on the local OSGi service registry.

###### Configuration Markup:

<!ELEMENT extension (servicesview+)>

<!ATTLIST extension

point CDATA #REQUIRED

id CDATA #IMPLIED

name CDATA #IMPLIED>

<!ELEMENT servicesview EMPTY>

<!ATTLIST servicesview

viewid CDATA #REQUIRED

local (true | false)

priority CDATA #IMPLIED>

Defines a services view.

- viewid - A required viewid for the extension services view. The given viewid must correspond to a view that implements IViewPart, and should also implement IServicesView. This viewid must also have been registered as an Eclipse view extension.
- local - Boolean indication of whether the given view is for displaying the services from the local OSGi services registry (true) or not (false).
- priority - Priority (positive integer) of this services view. This allows multiple services views to determine their relative priority to each other. The Remote Services perspective picks the services view with the highest priority value to display the contents of the local OSGi services registry. Only service views with local="true" will be considered.

###### Examples:

The following example shows the use of the extension point to make a ServicesView (assumed to implement IServicesView interface with viewid=org.eclipse.ecf.remoteservice.ui.serviceview.ServiceView, local=true (for local OSGi service registry), and priority=1000. The priority=1000 means that any local services view with a priority > 1000 will be used rather than this one as the local OSGi services view in the Remote Service perspective.

      <extension
             point="org.eclipse.ecf.remoteservice.ui.servicesview">
          <servicesview
                local="true"
                priority="1000"
                viewid="org.eclipse.ecf.remoteservice.ui.serviceview.ServiceView">
          </servicesview>
       </extension>

###### API Information:

See the IServicesView interface. This interface allows other views to set the selected service in the associated view. If the view given does not implement IServicesView then it will not be used in this manner, but this interface should be implemented by Service View extensions.

Copyright (c) 2015 Composent, Inc. and others. This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which is available at https://www.eclipse.org/legal/epl-2.0/ SPDX-License-Identifier: EPL-2.0