Enhance modularity
[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        <!-- <view
30                         id="org.argeo.connect.people.workbench.rap.quickSearchView"
31                         class="org.argeo.eclipse.spring.SpringExtensionFactory"
32                         icon="theme/argeo-classic/icons/favicon-16px.png"
33                         name="Test View"
34                         restorable="true">
35                 </view> -->
36         </extension>
37                 
38         <!-- EDITORS --> 
39         <extension
40                 point="org.eclipse.ui.editors">
41                 <editor
42                         id="org.argeo.suite.workbench.rap.defaultDashboardEditor"
43                         class="org.argeo.eclipse.spring.SpringExtensionFactory"
44                         icon="theme/argeo-classic/icons/dashboard.gif"
45                         name="My Dashboard">
46                 </editor>
47         </extension>
48         
49         <!-- COMMANDS -->       
50         <extension
51          point="org.eclipse.ui.commands">
52          <command
53                 id="org.argeo.suite.workbench.rap.openDashboardEditor"
54                         defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
55                         name="createEntity">
56         </command>         
57         
58         <!-- Open correct editor given the node type --> 
59         <command
60                         id="org.argeo.suite.workbench.rap.openEntityEditor"
61                         defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
62                         name="Open Editor">
63                         <commandParameter
64                         id="param.jcrId"
65                         name="The jcr identifier">
66                 </commandParameter>
67                 </command>    
68                 
69         </extension>
70
71         <!-- MENU CONTRIBUTION --> 
72         <extension
73                 id="menu:org.eclipse.ui.main.menu"
74                 point="org.eclipse.ui.menus">
75
76                 <!-- Add entity and Search menus --> 
77                 <menuContribution locationURI="toolbar:org.eclipse.ui.main.toolbar?after=org.argeo.cms.ui.workbench.rap.userToolbar">
78                         <toolbar id="org.argeo.connect.ui.workbench.dropDownsToolbar">
79                                 <command
80                                         id="org.argeo.connect.ui.workbench.addEntityToolbar"
81                                         style="pulldown"
82                                         label="Create"
83                                         tooltip="Create a new object"
84                                         icon="theme/argeo-classic/icons/add.png"
85                                         commandId="org.argeo.cms.ui.workbench.doNothing">
86                                 </command>
87                                 <command
88                                         id="org.argeo.connect.ui.workbench.openSearchToolbar"
89                                         style="pulldown"
90                                         label="Search"
91                                         tooltip="Open a detailed search page"
92                                         icon="theme/argeo-classic/icons/search.png"
93                                         commandId="org.argeo.cms.ui.workbench.doNothing">
94                                         <visibleWhen checkEnabled="false">
95                                                 <with variable="roles">
96                                                 <iterate ifEmpty="false" operator="or">
97                                                         <equals value="cn=org.argeo.suite.coworker,ou=roles,ou=node" />
98                                                 </iterate>
99                                         </with>
100                                         </visibleWhen>
101                                 </command>
102                         </toolbar>
103                 </menuContribution>
104         </extension>
105         
106         <!-- BRANDING AND THEMES -->
107         <extension
108                 point="org.eclipse.rap.ui.branding">
109                 <branding
110                         id="org.argeo.suite.workbench.rap.defaultBranding"
111                         themeId="org.eclipse.rap.rwt.theme.Default"
112                         title="Argeo Suite"
113                         favicon="theme/argeo-classic/icons/favicon.ico">
114                         <additionalHeaders>
115                          <link 
116                                 href="suite/theme/classic-headerExt.css"  
117                                 rel="stylesheet" />
118                         </additionalHeaders>
119                 </branding>
120         </extension> 
121         
122         <extension  
123             point="org.eclipse.equinox.http.registry.resources">  
124                  <!-- Enable overwriting of link styles in the meta tags -->
125          <resource  
126                alias="/ui/suite/theme/classic-headerExt.css"  
127                base-name="theme/argeo-classic/workbench-headerExt.css">  
128          </resource>  
129          <!-- images -->
130          <resource  
131                alias="/ui/suite/img/logo-argeo.png"  
132                base-name="theme/argeo-classic/img/logo-argeo.png">  
133          </resource>  
134          <!-- javascript libraries -->
135          <!--          <resource  
136                alias="/ui/suite/js/Chart.min.js"  
137                base-name="js/Chart.min.js">  
138          </resource>  
139          <resource  
140                alias="/ui/suite/js/leaflet.js"  
141                base-name="js/leaflet.js">  
142          </resource>  
143          <resource  
144                alias="/ui/suite/js/leaflet.css"  
145                base-name="js/leaflet.css">  
146          </resource>   -->
147     </extension>  
148         
149         <extension
150                 point="org.eclipse.rap.ui.themes">
151                 <themeContribution
152                         themeId="org.eclipse.rap.rwt.theme.Default"
153                         file="theme/argeo-classic/workbench-ext.css" />
154         </extension>
155 </plugin>