But our documentation is sometimes lacking. We mostly rely on Javadoc documentation and on Java samples.
Here's some feedback we got at the last Oxygen Users Meetup in Munich this year:
Too less information about frameworks, plugins, everything is spread over certain documents, webinars, etc . Please centralize these information in one form.I will try to centralize these resources and add some useful links for people who want to start customizing Oxygen.
First the difference between a framework and a plugin:
- A plugin can be used to customize the behavior of the entire application no matter what XML document is currently being edited.
- A framework configuration provides validation, content completion and editing support for a specific XML vocabulary.
Plugins:A plugin is a folder containing a descriptor plugin.xml file and various other JAR libraries and resources.
Only the standalone version of Oxygen supports plugins.
The Eclipse Plugin version of Oxygen is itself a plugin and can be customized by adding a plugin in the Eclipse workbench which depends on the Oxygen Eclipse plugin.
Despite of this, most of the API is common.
The plugin can be deployed either by copying it to the plugins folder of an Oxygen installation:
or by deploying it as an add-on:
The Oxygen Plugins SDK:
contains Java sources and Javadoc for all the API accessible from a plugin.
The Plugins SDK also contains sample plugins and their Java code. This Java code should be very helpful to get you started and to show how various API can be used.
Although there are many types of plugins:
the most useful plugin extension type is the "Workspace Access" extension type:
This kind of plugin allows you to use the API and add or remove toolbar and main menu buttons, add custom views and toolbars. It also allows you to access and control/make changes to the XML documents opened in the workbench.
As an example, all full-featured integrations which have been created to connect Oxygen with a specific CMS or remote repository use a combination of "Workspace Access" and "Custom Protocol" plugin:
You can create automated tests for your plugins:
and even debug their functionality: