Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Libra/Adopter Guide

< Libra
Revision as of 16:07, 22 October 2011 by Kaloyan.raev.sap.com (Talk | contribs) (New page: == Integrating OSGi Framework Editor parts in a WTP server adapter == The OSGi Framework Editor feature provides three editor parts that can be integrated in an adopter's WTP server adapt...)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Integrating OSGi Framework Editor parts in a WTP server adapter

The OSGi Framework Editor feature provides three editor parts that can be integrated in an adopter's WTP server adapter:

  • Bundle Information - lists all of the bundle in the OSGi framework, their state and dependencies.
  • Bundle Dependency Graph - displays the bundle dependencies as a graph.
  • Server Console - allows users to execute commands on the running server and see the result.

Adding the editor parts in the adopter's server editor

Each of the editor parts can be added as an additional tab to the server editor of the adopter's WTP server adapter. Adopters can choose to either add all three of them, or just the ones they would like.

This can be done by using the org.eclipse.wst.server.ui.editorPages extension point.

Below are given example usages of this extension point for Libra Launchers.

  • for the Bundle Information editor part:
  <extension
        point="org.eclipse.wst.server.ui.editorPages">
     <page
           class="org.eclipse.libra.framework.editor.ui.overview.BundleInformationEditorPage"
           id="org.eclipse.libra.framework.editor.integration.bundleInformation"
           name="Bundle Overview"
           order="30"
           typeIds="org.eclipse.libra.framework.*">
     </page>
  </extension>
  • for the Bundle Dependency Graph editor part:
  <extension
        point="org.eclipse.wst.server.ui.editorPages">
     <page
           class="org.eclipse.libra.framework.editor.ui.dependencies.BundleDependencyEditorPage"
           id="org.eclipse.libra.framework.editor.integration.bundleDependency"
           name="Bundle Dependency Graph"
           order="40"
           typeIds="org.eclipse.libra.framework.*">
     </page>
  </extension>
  • for the Server Console editor part:
  <extension
        point="org.eclipse.wst.server.ui.editorPages">
     <page
           class="org.eclipse.libra.framework.editor.ui.console.ServerConsoleEditorPage"
           id="org.eclipse.libra.framework.editor.integration.serverConsole"
           name="Console"
           order="50"
           typeIds="org.eclipse.libra.framework.*">
     </page>
  </extension>

In the above examples only the class attribute is mandatory to point to the given value. The typeIds must match the server type id of the adopter's WTP server. All other attribute can be customized to values that best fit the adopter's needs. For detailed description of available attributes and their usage consult the description of the extension point.

Back to the top