@API(type=NOT_EXTENDABLE,
src=PUBLIC)
public class PluginDescriptor
extends java.lang.Object
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.
Modifier and Type | Class and Description |
---|---|
static class |
PluginDescriptor.PluginExtensionDescription
Contains a plugin description + plugin type + keyboard shortcuts
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
AUTHOR_STYLESHEET
Extension that provide an Author CSS.
|
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 |
OPTION_PAGE
Option page extension plugin type.
|
static java.lang.String |
OPTION_PAGE_GROUP
Option page group extension plugin type.
|
static java.lang.String |
REFACTORING_OPERATIONS_PROVIDER
Refactoring operations provider 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 |
TRANSFORMER
An XSLT transformer extension.
|
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 |
WEBAPP_SERVLET
WebApp plugin servlet.
|
static java.lang.String |
WEBAPP_STATIC_RESOURCE_FOL
WebappStaticResourcesFolder
|
static java.lang.String |
WORKSPACE_ACCESS
Workspace access plugin type.
|
static java.lang.String |
WORKSPACE_ACCESS_JS
Workspace access plugin type implemented in JavaScript.
|
static java.lang.String |
XQUERY_TRANSFORMER
An XQuery transformer extension.
|
Constructor and Description |
---|
PluginDescriptor() |
Modifier and Type | Method and Description |
---|---|
void |
addExtension(PluginDescriptor.PluginExtensionDescription descr)
Put an extension corresponding to the specified key.
|
void |
addPluginContributedToolbar(ro.sync.exml.plugin.PluginContributedToolbar toolbarInfo)
Add a toolbar.
|
void |
addPluginContributedView(ro.sync.exml.plugin.PluginContributedView viewInfo)
Add a contributed view
|
java.io.File |
getBaseDir()
Get the base directory of the plugin.
|
java.lang.String |
getConfigUrlPath() |
java.util.List<ro.sync.exml.plugin.PluginContributedToolbar> |
getContributedToolbars()
Gets the toolbars contributed by this plugin.
|
java.util.List<ro.sync.exml.plugin.PluginContributedView> |
getContributedViews() |
java.lang.String |
getDescription()
Get the description of the plugin.
|
java.util.List<PluginDescriptor.PluginExtensionDescription> |
getExtensions(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.
|
boolean |
isDisabledFromFile() |
boolean |
isEnabledStatus()
Get the enabled status.
|
void |
setBaseDir(java.io.File baseDir)
Set the base dir of the plugin.
|
void |
setConfigUrlPath(java.lang.String configUrlPath) |
void |
setDescription(java.lang.String description)
Set the description of the plugin.
|
void |
setDisabledFromFile(boolean isDisabledFromFile)
Sets the disabled status from 'plugin.disable' file.
|
void |
setEnabledStatus(boolean enabledStatus)
Set the plugin enabled status.
|
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.
|
public static final java.lang.String SELECTION_PROCESSOR
public static final java.lang.String WEBAPP_SERVLET
public static final java.lang.String WEBAPP_STATIC_RESOURCE_FOL
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 TRANSFORMER
public static final java.lang.String XQUERY_TRANSFORMER
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 WORKSPACE_ACCESS_JS
public static final java.lang.String OPTION_PAGE
public static final java.lang.String OPTION_PAGE_GROUP
public static final java.lang.String GENERAL_STYLES_FILTER
public static final java.lang.String LOCK_HANDLER_FACTORY
public static final java.lang.String REFACTORING_OPERATIONS_PROVIDER
public static final java.lang.String AUTHOR_STYLESHEET
public java.util.List<PluginDescriptor.PluginExtensionDescription> getExtensions(java.lang.String key)
Available extensions for the moment are: SELECTION_PROCESSOR & GENERAL_EXTENSION.
key
- The extension key.public void addExtension(PluginDescriptor.PluginExtensionDescription descr)
descr
- The plugin extension description.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 boolean isEnabledStatus()
true
if the plugin is enabled.public void setEnabledStatus(boolean enabledStatus)
enabledStatus
- true
if the plugin is enabled.
false
if the plugin is disabled.public boolean isDisabledFromFile()
true
if the plugin
is disabled using 'plugin.disable' file.public void setDisabledFromFile(boolean isDisabledFromFile)
isDisabledFromFile
- The true
if the plugin
is disabled using 'plugin.disable' file.public java.io.File getBaseDir()
public void setBaseDir(java.io.File baseDir)
baseDir
- The base dir of the plugin.public java.lang.String getConfigUrlPath()
public void setConfigUrlPath(java.lang.String configUrlPath)
configUrlPath
- The configUrl to set.public void addPluginContributedView(ro.sync.exml.plugin.PluginContributedView viewInfo)
viewInfo
- Information about the viewpublic java.util.List<ro.sync.exml.plugin.PluginContributedView> getContributedViews()
public void addPluginContributedToolbar(ro.sync.exml.plugin.PluginContributedToolbar toolbarInfo)
toolbarInfo
- Information about the new toolbar.public java.util.List<ro.sync.exml.plugin.PluginContributedToolbar> getContributedToolbars()
public java.lang.String toString()
toString
in class java.lang.Object
© Copyright SyncRO Soft SRL 2002 - 2016. All rights reserved.