Package ro.sync.exml.plugin
Class PluginDescriptor.PluginExtensionDescription
java.lang.Object
ro.sync.exml.plugin.PluginDescriptor.PluginExtensionDescription
- Enclosing class:
- PluginDescriptor
Contains a plugin description + plugin type + keyboard shortcuts
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal String
The directory of the framework contributed by the plugin.final String
The CSS file specified by an extension.The folder paths provided by the plugin descriptor.final String
Name of plugin actionfinal PluginExtension
The plugin extensionfinal String
The plugin typefinal String
The csp policy to use for the resources.final String
The path of the static resources folder relative to the plugin base dir.final String
The href at which the resources from the static folder will be accessed.final String
The role of this extension.final String
The plugin shortcut -
Constructor Summary
ConstructorsConstructorDescriptionPluginExtensionDescription
(String pluginType, PluginExtension pluginExtension, String actionName, String shortcut, String cssFile, List<File> folders, String resourcesHref, String resourcesFolderPath, String resourcesContentSecurityPolicy, String role, String additionalFrameworkDir) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionGetter for the resource href.
-
Field Details
-
pluginExtension
The plugin extension -
pluginType
The plugin type -
name
Name of plugin action -
shortcut
The plugin shortcut -
folders
The folder paths provided by the plugin descriptor. -
cssFile
The CSS file specified by an extension. -
resourcesHref
The href at which the resources from the static folder will be accessed. -
resourcesFolderPath
The path of the static resources folder relative to the plugin base dir. -
resourcesContentSecurityPolicy
The csp policy to use for the resources. -
role
The role of this extension. If the role is "config" this extension should have a class attribute with the class representing the class of a PluginConfigExtension which manages the configuration of a WebApp plugin. -
aditionaFrameworkDir
The directory of the framework contributed by the plugin.
-
-
Constructor Details
-
PluginExtensionDescription
public PluginExtensionDescription(String pluginType, PluginExtension pluginExtension, String actionName, String shortcut, String cssFile, List<File> folders, String resourcesHref, String resourcesFolderPath, String resourcesContentSecurityPolicy, String role, String additionalFrameworkDir) Constructor.- Parameters:
pluginType
- The plugin typepluginExtension
- The plugin extensionactionName
- Name of plugin action if any.shortcut
- The plugin shortcutcssFile
- The CSS file specified by an AuthorCSS extension.folders
- The folder paths provided by the plugin descriptor.resourcesHref
- The Href at which to request the plugin's static resources.resourcesFolderPath
- The path to the static resources folder relative to the plugin base directory.resourcesContentSecurityPolicy
- The csp policy to use for the resource.role
- The role of this extensionadditionalFrameworkDir
- Additional framework directory referenced by the plugin.
-
-
Method Details
-
getResourcesHref
Getter for the resource href.- Returns:
- the resource href.
-
getPluginExtension
- Returns:
- The plugin extension instance.
-