forked from oxygenxml/wsaccess-javascript-sample-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.dtd
96 lines (93 loc) · 4.69 KB
/
plugin.dtd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<!--doc: A plugin extension.-->
<!ELEMENT extension (#PCDATA|folder)*>
<!ATTLIST extension type (selectionProcessor
|WebappServlet
|documentProcessor
|generalExtension
|URLStreamHandler
|URLHandler
|TargetedURLHandler
|URLChooser
|URLChooserToolbar
|componentsValidator
|OpenRedirect
|WorkspaceAccess
|WorkspaceAccessJS
|LockHandlerFactory
|StylesFilter
|OptionPage
|RefactoringOperationsProvider
|AuthorStylesheet
|WebappStaticResourcesFolder) #REQUIRED>
<!ATTLIST extension role (config) #IMPLIED>
<!ATTLIST extension class CDATA #IMPLIED>
<!--doc: The keyboard shortcut and action name are available for the following extension types:
selectionProcessor
documentProcessor
generalExtension
Example: ctrl shift E
-->
<!ATTLIST extension keyboardShortcut CDATA #IMPLIED>
<!ATTLIST extension actionName CDATA #IMPLIED>
<!ATTLIST extension path CDATA #IMPLIED>
<!-- doc: The location of the CSS (or LESS) file that will be used for all XML documents in Author mode.
The location is relative to the plugin folder. -->
<!ATTLIST extension href CDATA #IMPLIED>
<!--doc: A folder specifying a place where additional refactoring operation descriptors and associated scripts are located.
Can only be used for the RefactoringOperationsProvider extension type.
-->
<!ELEMENT folder (#PCDATA)>
<!ATTLIST folder path CDATA #IMPLIED>
<!ELEMENT runtime (#PCDATA | library | librariesFolder)*>
<!ELEMENT library (#PCDATA)>
<!ATTLIST library name CDATA #IMPLIED>
<!-- doc: The default value is "local"
When choosing "local" the library is loaded in the plugin's own class loader.
When choosing "global" the library is loaded in the main Oxygen class loader as the last library in the list (as if it would be present in the Oxygen "lib" directory).
When choosing "globalHighPriority" the library is loaded in the main Oxygen class loader as the first library in the list (useful in border cases to patch certain behaviors in the Oxygen JARs).-->
<!ATTLIST library scope (local|global|globalHighPriority) "local">
<!-- This elements specified a folder from which all the jar files should be loaded. -->
<!ELEMENT librariesFolder (#PCDATA)>
<!-- This should be a path to a local file -->
<!ATTLIST librariesFolder name CDATA #IMPLIED>
<!-- doc: The default value is "local".
The values are the same as for the "library" element.-->
<!ATTLIST librariesFolder scope (local|global|globalHighPriority) "local">
<!ELEMENT plugin (#PCDATA | runtime | extension | view | toolbar | property)*>
<!-- An ID to identify the plugin. -->
<!ATTLIST plugin id CDATA #REQUIRED>
<!ATTLIST plugin name CDATA #IMPLIED>
<!ATTLIST plugin description CDATA #IMPLIED>
<!ATTLIST plugin version CDATA #IMPLIED>
<!ATTLIST plugin vendor CDATA #IMPLIED>
<!ATTLIST plugin class CDATA #IMPLIED>
<!-- doc: The default value is "preferOxygenResources"
When choosing "preferReferencedResources" the libraries which are referenced in the "plugin.xml"
will have precedence over the ones in the Oxygen "lib" directory if they have conflicting package names.
When choosing "preferOxygenResources" the libraries which are referenced in the Oxygen "lib"
directory will have precedence over the ones in the "plugin.xml" if they have conflicting package names.-->
<!ATTLIST plugin classLoaderType (preferReferencedResources|preferOxygenResources) "preferOxygenResources">
<!--doc: This element defines an unique ID for a view which will be customized in the WorkspaceAccess plugin extension-->
<!ELEMENT view EMPTY>
<!--doc: The ID of the view-->
<!ATTLIST view id ID #REQUIRED>
<!--doc: The initial side on the Oxygen main frame where the view will be placed. -->
<!ATTLIST view initialSide (NORTH|SOUTH|EAST|WEST) "WEST">
<!--doc: The initial row on the specified side where the view will be placed.
For example the Oxygen "Project" view has an initial row of "0" and the Outline view has an initial row of "1". -->
<!ATTLIST view initialRow CDATA #IMPLIED>
<!--doc: The initial state of the view, hidden or visible. -->
<!ATTLIST view initialState (hidden|docked|autohide|floating) "docked">
<!--doc: This element defines an unique ID for a toolbar which will be customized in the WorkspaceAccess plugin extension-->
<!ELEMENT toolbar EMPTY>
<!--doc: The ID of the toolbar-->
<!ATTLIST toolbar id ID #REQUIRED>
<!--doc: The initial side on the Oxygen main frame where the toolbar will be placed. -->
<!ATTLIST toolbar initialSide (NORTH|SOUTH) "NORTH">
<!--doc: The initial row on the specified side where the toolbar will be placed.
For example the Oxygen main menu has an initial row of "0" and the "Edit" toolbar has an initial row of "1". -->
<!ATTLIST toolbar initialRow CDATA #IMPLIED>
<!-- Property element -->
<!ELEMENT property EMPTY>
<!ATTLIST property name CDATA #REQUIRED>
<!ATTLIST property value CDATA #REQUIRED>