209173f91044c24bf4c736ea8d8b7e5ff8e91822
[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         <!-- PERSPECTIVES -->
5         <extension
6          point="org.eclipse.ui.perspectives">
7                 <perspective
8             class="org.argeo.suite.workbench.DashboardPerspective"
9             id="org.argeo.suite.workbench.rap.dashboardPerspective"
10             icon="icons/favicon.ico"
11             name="Dashboard">
12                 </perspective> 
13         </extension>
14         
15         <!-- VIEWS -->
16          <extension
17                 point="org.eclipse.ui.views">
18                 <view
19                         class="org.argeo.eclipse.spring.SpringExtensionFactory"
20                         icon="icons/search.png"
21                         id="org.argeo.suite.workbench.rap.quickSearchView"
22                         name="Search"
23                         restorable="true">
24                 </view>
25                 
26         </extension>
27                 
28         <!-- EDITORS --> 
29         <extension
30                 point="org.eclipse.ui.editors">
31                 <editor
32                         id="org.argeo.suite.workbench.rap.defaultDashboardEditor"
33                         class="org.argeo.eclipse.spring.SpringExtensionFactory"
34                         icon="icons/dashboard.gif"
35                         name="Dashboard">
36                 </editor>
37         </extension>
38         
39         <!-- COMMANDS -->       
40         <extension
41          point="org.eclipse.ui.commands">
42                 <command
43                 id="org.argeo.suite.workbench.rap.importEntities"
44                         defaultHandler="org.argeo.eclipse.spring.SpringExtensionFactory"
45             name="Import entities">
46         </command>      
47         </extension>
48
49         <!-- MENU CONTRIBUTION --> 
50         <extension
51                 id="menu:org.eclipse.ui.main.menu"
52                 point="org.eclipse.ui.menus">
53                 
54                 <menuContribution locationURI="menu:org.argeo.cms.ui.workbench.rap.mainMenu?before=org.argeo.cms.ui.workbench.rap.beforeExit">
55                         <menu
56                                 id="org.argeo.suite.workbench.rap.advancedMenu"
57                                 label="Administration"
58                                 icon="icons/more.gif"
59                                 tooltip="Access to advanced commands">
60                                 <visibleWhen
61                                 checkEnabled="false">
62                                 <with variable="roles">
63                                         <iterate ifEmpty="false" operator="or">
64                                                 <equals value="cn=org.argeo.suite.manager,ou=roles,ou=node" />
65                                         </iterate>
66                                 </with>
67                                 </visibleWhen>
68                </menu>
69                 </menuContribution>
70                 <menuContribution locationURI="menu:org.argeo.suite.workbench.rap.advancedMenu">
71                 <command
72                         commandId="org.argeo.suite.workbench.rap.importEntities"
73                                 icon="icons/upload.gif"
74                                 label="Import data..."
75                                 tooltip="Upload XLS file that contains legacy/external data">
76                         </command>
77                 </menuContribution>
78         </extension>
79         
80         <!-- BRANDING AND THEMES -->
81         <extension  
82             point="org.eclipse.equinox.http.registry.resources">  
83          <!-- javascript libraries -->
84          <resource  
85                alias="/ui/office/js/Chart.min.js"  
86                base-name="js/Chart.min.js">  
87          </resource>  
88          <resource  
89                alias="/ui/office/js/leaflet.js"  
90                base-name="js/leaflet.js">  
91          </resource>  
92          <resource  
93                alias="/ui/office/js/leaflet.css"  
94                base-name="js/leaflet.css">  
95          </resource>
96           <resource  
97                alias="/ui/office/css/headerExt.css"  
98                base-name="css/headerExt.css">  
99          </resource>  
100          <resource  
101                alias="/ui/office/img/logo-argeo.png"  
102                base-name="img/logo-argeo.png">  
103          </resource>  
104     </extension>  
105     
106         <extension
107                 point="org.eclipse.rap.ui.entrypoint">
108                 <entrypoint
109                         id="org.argeo.suite.workbench.rap.entrypoint"
110                         class="org.argeo.suite.workbench.rap.AsSecureEntryPoint"
111                         path="/office"
112                         brandingId="org.argeo.suite.theme.argeo2.defaultBranding">
113                 </entrypoint>
114         </extension>
115
116         <extension
117                 point="org.eclipse.rap.ui.branding">
118                 <branding
119                         id="org.argeo.suite.theme.argeo2.defaultBranding"
120                         themeId="org.eclipse.rap.rwt.theme.Default"
121                         title="Argeo Suite"
122                         favicon="img/favicon.ico">
123                         <additionalHeaders>
124                          <link 
125                                 href="/ui/office/css/headerExt.css"  
126                                 rel="stylesheet" />
127                         </additionalHeaders>
128                 </branding>
129         </extension> 
130         
131 </plugin>