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