|
Oxygen XML Editor, Version 14.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectro.sync.exml.plugin.PluginDescriptor
public class PluginDescriptor
Descriptor of the plugin.
A plugin is characterised by:
- name The plugin name as it will appear in the oXygen menus.
- description A short description of what the plugin does.
- vendor The name of the vendor.
- version The current version.
- baseDir The base dir used for file crreation.
- extensions A set of extensions.
Field Summary | |
---|---|
static java.lang.String |
COMPONENTS_VALIDATOR_EXTENSION
The startup extension. |
static java.lang.String |
DOCUMENT_PROCESSOR
Document processor extension type. |
static java.lang.String |
GENERAL_EXTENSION
General extension type. |
static java.lang.String |
GENERAL_STYLES_FILTER
CSS Styles filter plugin type. |
static java.lang.String |
LOCK_HANDLER_FACTORY
A lock handler factory. |
static java.lang.String |
OPEN_REDIRECTOR
Open redirector plugin type. |
static java.lang.String |
SELECTION_PROCESSOR
Selection processor extension type. |
static java.lang.String |
TARGETED_URL_HANDLER
Targeted URL stream handler extension type. |
static java.lang.String |
URL_CHOOSER
URL stream handler extension type. |
static java.lang.String |
URL_CHOOSER_TOOLBAR
URL stream handler extension type. |
static java.lang.String |
URL_HANDLER
URL stream handler extension type. |
static java.lang.String |
URL_STREAM_HANDLER
Deprecated. |
static java.lang.String |
WORKSPACE_ACCESS
Workspace access plugin type. |
Constructor Summary | |
---|---|
PluginDescriptor()
|
Method Summary | |
---|---|
void |
addPluginContributedToolbar(PluginContributedToolbar toolbarInfo)
Add a toolbar. |
void |
addPluginContributedView(PluginContributedView viewInfo)
Add a contributed view |
java.io.File |
getBaseDir()
Get the base directory of the plugin. |
java.util.List<PluginContributedToolbar> |
getContributedToolbars()
Gets the toolbars contributed by this plugin. |
java.util.List<PluginContributedView> |
getContributedViews()
|
java.lang.String |
getDescription()
Get the description of the plugin. |
PluginExtension |
getExtension(java.lang.String key)
Get the extension corresponding to the specified key. |
java.lang.String |
getExtensionShortcut(java.lang.String key)
Get the extension corresponding to the specified key. |
java.lang.String |
getID()
|
java.lang.String |
getName()
Gets the name of the plugin. |
java.lang.String |
getVendor()
Get the vendor of the plugin. |
java.lang.String |
getVersion()
Get the version of the plugin. |
void |
putExtension(java.lang.String key,
PluginExtension extension)
Put an extension corresponding to the specified key. |
void |
putExtensionShortcut(java.lang.String key,
java.lang.String shortcutKey)
Put an extension corresponding to the specified key. |
void |
setBaseDir(java.io.File baseDir)
Set the base dir of the plugin. |
void |
setDescription(java.lang.String description)
Set the description of the plugin. |
void |
setID(java.lang.String id)
Sets the ID of the plugin. |
void |
setName(java.lang.String name)
Set the name of the plugin. |
void |
setVendor(java.lang.String vendor)
Set the vendor of the plugin. |
void |
setVersion(java.lang.String version)
Set the version of the plugin. |
java.lang.String |
toString()
The string representation of the plugin descriptor. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String SELECTION_PROCESSOR
public static final java.lang.String GENERAL_EXTENSION
public static final java.lang.String DOCUMENT_PROCESSOR
@Deprecated public static final java.lang.String URL_STREAM_HANDLER
public static final java.lang.String URL_HANDLER
public static final java.lang.String TARGETED_URL_HANDLER
public static final java.lang.String URL_CHOOSER
public static final java.lang.String URL_CHOOSER_TOOLBAR
public static final java.lang.String COMPONENTS_VALIDATOR_EXTENSION
public static final java.lang.String OPEN_REDIRECTOR
public static final java.lang.String WORKSPACE_ACCESS
public static final java.lang.String GENERAL_STYLES_FILTER
public static final java.lang.String LOCK_HANDLER_FACTORY
Constructor Detail |
---|
public PluginDescriptor()
Method Detail |
---|
public PluginExtension getExtension(java.lang.String key)
Available extensions for the moment are: SELECTION_PROCESSOR & GENERAL_EXTENSION.
key
- The extension key.
public java.lang.String getExtensionShortcut(java.lang.String key)
Available extensions for the moment are: SELECTION_PROCESSOR & GENERAL_EXTENSION.
key
- The extension key.
public void putExtension(java.lang.String key, PluginExtension extension)
key
- The extension key.extension
- The extension corresponding to the specified key.public void putExtensionShortcut(java.lang.String key, java.lang.String shortcutKey)
key
- The extension key.shortcutKey
- The shortcut key corresponding to the specified key.public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- The description of the plugin.public java.lang.String getName()
public void setName(java.lang.String name)
name
- The name of the plugin.public void setID(java.lang.String id)
id
- ID of the plugin.public java.lang.String getID()
null
if the plugin doesn't
have an ID.public java.lang.String getVendor()
public void setVendor(java.lang.String vendor)
vendor
- The vendor of the plugin.public java.lang.String getVersion()
public void setVersion(java.lang.String version)
version
- The version of the plugin.public java.io.File getBaseDir()
public void setBaseDir(java.io.File baseDir)
baseDir
- The base dir of the plugin.public void addPluginContributedView(PluginContributedView viewInfo)
viewInfo
- Information about the viewpublic java.util.List<PluginContributedView> getContributedViews()
public void addPluginContributedToolbar(PluginContributedToolbar toolbarInfo)
toolbarInfo
- Information about the new toolbar.public java.util.List<PluginContributedToolbar> getContributedToolbars()
public java.lang.String toString()
toString
in class java.lang.Object
|
Oxygen XML Editor, Version 14.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |