]> git.argeo.org Git - lgpl/argeo-commons.git/blob - server/plugins/org.argeo.jcr.ui.explorer/plugin.xml
Improve logging
[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.getNodeSize"
62 name="Get node size">
63 <commandParameter
64 id="org.argeo.jcr.ui.explorer.nodePath"
65 name="Node path">
66 </commandParameter>
67 </command>
68
69 <command
70 defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
71 id="org.argeo.jcr.ui.explorer.addRemoteRepository"
72 name="Add remote JCR repository">
73 <commandParameter
74 id="org.argeo.jcr.ui.explorer.repositoryUri"
75 name="Repository URI">
76 </commandParameter>
77 </command>
78 <command
79 defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
80 id="org.argeo.jcr.ui.explorer.addFolderNode"
81 name="Create folder">
82 </command>
83 <command
84 defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
85 id="org.argeo.jcr.ui.explorer.refresh"
86 name="Refresh">
87 </command>
88 <command
89 defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
90 id="org.argeo.jcr.ui.explorer.deleteNodes"
91 name="Delete nodes">
92 </command>
93 <command
94 defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
95 id="org.argeo.jcr.ui.explorer.importFileSystem"
96 name="Import files...">
97 </command>
98 <command
99 defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
100 id="org.argeo.jcr.ui.explorer.openFile"
101 name="Open current file">
102 </command>
103 </extension>
104 <extension point="org.eclipse.ui.menus">
105 <menuContribution
106 locationURI="menu:org.argeo.jcr.ui.explorer.browserView">
107 <command
108 commandId="org.argeo.jcr.ui.explorer.openGenericJcrQueryEditor"
109 icon="icons/query.png"
110 style="push">
111 </command>
112 </menuContribution>
113 <menuContribution
114 locationURI="menu:org.argeo.jcr.ui.explorer.browserView">
115 <command
116 commandId="org.argeo.jcr.ui.explorer.addRemoteRepository"
117 icon="icons/addRepo.gif"
118 style="push">
119 </command>
120 </menuContribution>
121 <menuContribution
122 locationURI="popup:org.argeo.jcr.ui.explorer.browserView">
123 <command
124 commandId="org.argeo.jcr.ui.explorer.refresh"
125 icon="icons/refresh.png"
126 style="push">
127 </command>
128 <command
129 commandId="org.argeo.jcr.ui.explorer.addFolderNode"
130 icon="icons/addFolder.gif"
131 style="push">
132 </command>
133 <command
134 commandId="org.argeo.jcr.ui.explorer.deleteNodes"
135 icon="icons/remove.gif"
136 style="push">
137 </command>
138 <command
139 commandId="org.argeo.jcr.ui.explorer.importFileSystem"
140 icon="icons/import_fs.png"
141 style="push"
142 tooltip="Import files from the files sytem to the repository">
143 </command>
144 <command
145 commandId="org.argeo.jcr.ui.explorer.addRemoteRepository"
146 icon="icons/addRepo.gif"
147 style="push">
148 </command>
149 <command
150 commandId="org.argeo.jcr.ui.explorer.getNodeSize"
151 icon="icons/getSize.gif"
152 style="push">
153 </command>
154 </menuContribution>
155 </extension>
156 <extension
157 point="org.eclipse.ui.activities">
158 <activity
159 description="Only for admins"
160 id="org.argeo.jcr.ui.explorer.adminActivity"
161 name="Admin">
162 <enabledWhen>
163 <with variable="roles">
164 <iterate ifEmpty="false" operator="or">
165 <equals value="ROLE_ADMIN" />
166 </iterate>
167 </with>
168 </enabledWhen>
169 </activity>
170 <!-- TODO: find a way to exclude evrything -->
171 <activityPatternBinding
172 activityId="org.argeo.jcr.ui.explorer.adminActivity"
173 isEqualityPattern="true"
174 pattern="org.argeo.jcr.ui.explorer/org.argeo.jcr.ui.explorer.perspective">
175 </activityPatternBinding>
176 </extension>
177 </plugin>