]> git.argeo.org Git - lgpl/argeo-commons.git/blob - server/plugins/org.argeo.jcr.ui.explorer/plugin.xml
Add class Java doc
[lgpl/argeo-commons.git] / server / plugins / org.argeo.jcr.ui.explorer / plugin.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <?eclipse version="3.4"?>
3 <plugin>
4 <!-- Perspectives -->
5 <extension
6 point="org.eclipse.ui.perspectives">
7 <perspective
8 class="org.argeo.jcr.ui.explorer.JcrExplorerPerspective"
9 icon="icons/nodes.gif"
10 id="org.argeo.jcr.ui.explorer.perspective"
11 name="JCR Explorer">
12 </perspective>
13 </extension>
14 <!-- Views -->
15 <extension
16 point="org.eclipse.ui.views">
17 <view
18 class="org.argeo.eclipse.spring.SpringExtensionFactory"
19 icon="icons/browser.gif"
20 id="org.argeo.jcr.ui.explorer.browserView"
21 name="JCR Browser">
22 </view>
23 </extension>
24 <!-- Editors -->
25 <extension
26 point="org.eclipse.ui.editors">
27 <editor
28 class="org.argeo.eclipse.spring.SpringExtensionFactory"
29 id="org.argeo.jcr.ui.explorer.genericJcrQueryEditor"
30 name="JCR Query"
31 icon="icons/query.png"
32 default="false">
33 </editor>
34 <editor
35 class="org.argeo.eclipse.spring.SpringExtensionFactory"
36 id="org.argeo.jcr.ui.explorer.genericNodeEditor"
37 name="Node Editor"
38 icon="icons/query.png"
39 default="false">
40 </editor>
41 </extension>
42 <!-- Commands -->
43 <extension
44 point="org.eclipse.ui.commands">
45 <command
46 defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
47 id="org.argeo.jcr.ui.explorer.openGenericJcrQueryEditor"
48 name="New generic JCR query">
49 </command>
50 <command
51 defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
52 id="org.argeo.jcr.ui.explorer.openGenericNodeEditor"
53 name="Open generic node Editor">
54 <commandParameter
55 id="org.argeo.jcr.ui.explorer.nodePath"
56 name="Node path">
57 </commandParameter>
58 </command>
59 <command
60 defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
61 id="org.argeo.jcr.ui.explorer.addFileFolder"
62 name="Add file folder...">
63 </command>
64 <command
65 defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
66 id="org.argeo.jcr.ui.explorer.refresh"
67 name="Refresh">
68 </command>
69 <command
70 defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
71 id="org.argeo.jcr.ui.explorer.deleteNode"
72 name="Delete node">
73 </command>
74 <command
75 defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
76 id="org.argeo.jcr.ui.explorer.importFileSystem"
77 name="Import files...">
78 </command>
79 <command
80 defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
81 id="org.argeo.jcr.ui.explorer.openFile"
82 name="Open current file">
83 </command>
84 </extension>
85 <extension point="org.eclipse.ui.menus">
86 <menuContribution
87 locationURI="menu:org.argeo.jcr.ui.explorer.browserView">
88 <command
89 commandId="org.argeo.jcr.ui.explorer.openGenericJcrQueryEditor"
90 icon="icons/query.png"
91 style="push">
92 </command>
93 </menuContribution>
94 <menuContribution
95 locationURI="popup:org.argeo.jcr.ui.explorer.browserView">
96 <command
97 commandId="org.argeo.jcr.ui.explorer.refresh"
98 icon="icons/refresh.png"
99 style="push">
100 </command>
101 <command
102 commandId="org.argeo.jcr.ui.explorer.addFileFolder"
103 icon="icons/add.gif"
104 style="push">
105 </command>
106 <command
107 commandId="org.argeo.jcr.ui.explorer.deleteNode"
108 icon="icons/remove.gif"
109 style="push">
110 </command>
111 <command
112 commandId="org.argeo.jcr.ui.explorer.importFileSystem"
113 icon="icons/import_fs.png"
114 style="push"
115 tooltip="Import files from the files sytem to the repository">
116 </command>
117 </menuContribution>
118 </extension>
119 <extension
120 point="org.eclipse.ui.activities">
121 <activity
122 description="Only for admins"
123 id="org.argeo.jcr.ui.explorer.adminActivity"
124 name="Admin">
125 <enabledWhen>
126 <with variable="roles">
127 <iterate ifEmpty="false" operator="or">
128 <equals value="ROLE_ADMIN" />
129 </iterate>
130 </with>
131 </enabledWhen>
132 </activity>
133 <!-- TODO: find a way to exclude evrything -->
134 <activityPatternBinding
135 activityId="org.argeo.jcr.ui.explorer.adminActivity"
136 isEqualityPattern="true"
137 pattern="org.argeo.jcr.ui.explorer/org.argeo.jcr.ui.explorer.perspective">
138 </activityPatternBinding>
139 </extension>
140 </plugin>