Various small UI enhancements
[gpl/argeo-suite.git] / org.argeo.suite.workbench.rap / plugin.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <?eclipse version="3.6"?>
3 <plugin>
4 <!-- RAP workbench main entry point for the Argeo Suite core application -->
5 <extension
6 point="org.eclipse.rap.ui.entrypoint">
7 <entrypoint
8 id="org.argeo.suite.workbench.rap.entrypoint"
9 class="org.argeo.suite.workbench.rap.AsSecureEntryPoint"
10 path="/suite"
11 brandingId="org.argeo.suite.workbench.rap.defaultBranding">
12 </entrypoint>
13 </extension>
14
15 <!-- PERSPECTIVES -->
16 <extension
17 point="org.eclipse.ui.perspectives">
18 <perspective
19 class="org.argeo.suite.workbench.DashboardPerspective"
20 id="org.argeo.suite.workbench.rap.dashboardPerspective"
21 icon="theme/argeo-classic/icons/favicon.ico"
22 name="Dashboard">
23 </perspective>
24 </extension>
25
26 <!-- VIEWS -->
27 <extension
28 point="org.eclipse.ui.views">
29 </extension>
30
31 <!-- EDITORS -->
32 <extension
33 point="org.eclipse.ui.editors">
34 <editor
35 id="org.argeo.suite.workbench.rap.defaultDashboardEditor"
36 class="org.argeo.eclipse.spring.SpringExtensionFactory"
37 icon="theme/argeo-classic/icons/dashboard.gif"
38 name="My Dashboard">
39 </editor>
40 </extension>
41
42 <!-- COMMANDS -->
43 <extension
44 point="org.eclipse.ui.commands">
45 <command
46 id="org.argeo.suite.workbench.rap.openDashboardEditor"
47 defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
48 name="createEntity">
49 </command>
50
51 <!-- Open correct editor given the node type -->
52 <command
53 id="org.argeo.suite.workbench.rap.openEntityEditor"
54 defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
55 name="Open Editor">
56 <commandParameter
57 id="param.jcrId"
58 name="The jcr identifier">
59 </commandParameter>
60 </command>
61
62 </extension>
63
64 <!-- MENU CONTRIBUTION -->
65 <extension
66 id="menu:org.eclipse.ui.main.menu"
67 point="org.eclipse.ui.menus">
68
69 <!-- Add entity and Search menus -->
70 <menuContribution locationURI="toolbar:org.eclipse.ui.main.toolbar?after=org.argeo.cms.ui.workbench.rap.userToolbar">
71 <toolbar id="org.argeo.connect.ui.workbench.dropDownsToolbar">
72 <command
73 id="org.argeo.connect.ui.workbench.addEntityToolbar"
74 style="pulldown"
75 label="Create"
76 tooltip="Create a new object"
77 icon="theme/argeo-classic/icons/add.gif"
78 commandId="org.argeo.cms.ui.workbench.doNothing">
79 </command>
80 <command
81 id="org.argeo.connect.ui.workbench.openSearchToolbar"
82 style="pulldown"
83 label="Search"
84 tooltip="Open a detailed search page"
85 icon="theme/argeo-classic/icons/search.png"
86 commandId="org.argeo.cms.ui.workbench.doNothing">
87 <visibleWhen checkEnabled="false">
88 <with variable="roles">
89 <iterate ifEmpty="false" operator="or">
90 <equals value="cn=org.argeo.suite.coworker,ou=roles,ou=node" />
91 </iterate>
92 </with>
93 </visibleWhen>
94 </command>
95 </toolbar>
96 </menuContribution>
97 </extension>
98
99 <!-- BRANDING AND THEMES -->
100 <extension
101 point="org.eclipse.rap.ui.branding">
102 <branding
103 id="org.argeo.suite.workbench.rap.defaultBranding"
104 themeId="org.eclipse.rap.rwt.theme.Default"
105 title="Argeo Suite"
106 favicon="theme/argeo-classic/icons/favicon.ico">
107 <additionalHeaders>
108 <link
109 href="suite/theme/classic-headerExt.css"
110 rel="stylesheet" />
111 </additionalHeaders>
112 </branding>
113 </extension>
114
115 <extension
116 point="org.eclipse.equinox.http.registry.resources">
117 <!-- Enable overwriting of link styles in the meta tags -->
118 <resource
119 alias="/ui/suite/theme/classic-headerExt.css"
120 base-name="theme/argeo-classic/workbench-headerExt.css">
121 </resource>
122 <!-- images -->
123 <resource
124 alias="/ui/suite/img/logo-argeo.png"
125 base-name="theme/argeo-classic/img/logo-argeo.png">
126 </resource>
127 <!-- javascript libraries -->
128 <!-- <resource
129 alias="/ui/suite/js/Chart.min.js"
130 base-name="js/Chart.min.js">
131 </resource>
132 <resource
133 alias="/ui/suite/js/leaflet.js"
134 base-name="js/leaflet.js">
135 </resource>
136 <resource
137 alias="/ui/suite/js/leaflet.css"
138 base-name="js/leaflet.css">
139 </resource> -->
140 </extension>
141
142 <extension
143 point="org.eclipse.rap.ui.themes">
144 <themeContribution
145 themeId="org.eclipse.rap.rwt.theme.Default"
146 file="theme/argeo-classic/workbench-ext.css" />
147 </extension>
148 </plugin>