]>
git.argeo.org Git - gpl/argeo-suite.git/blob - org.argeo.suite.e4.rap/src/org/argeo/suite/e4/rap/ArgeoOfficeRapE4App.java
1 package org
.argeo
.suite
.e4
.rap
;
3 import org
.argeo
.cms
.e4
.rap
.AbstractRapE4App
;
4 import org
.argeo
.cms
.util
.CmsTheme
;
5 import org
.eclipse
.rap
.rwt
.application
.Application
;
6 import org
.eclipse
.rap
.rwt
.client
.WebClient
;
7 import org
.osgi
.framework
.BundleContext
;
8 import org
.osgi
.framework
.FrameworkUtil
;
10 /** Argeo Office RAP application. */
11 public class ArgeoOfficeRapE4App
extends AbstractRapE4App
{
12 private BundleContext bc
= FrameworkUtil
.getBundle(getClass()).getBundleContext();
14 public ArgeoOfficeRapE4App() {
15 // setPageTitle("Argeo Office");
16 // setE4Xmi("org.argeo.suite.e4/e4xmi/argeo-office.e4xmi");
17 // setPath("/office");
18 setLifeCycleUri("bundleclass://org.argeo.suite.e4.rap/org.argeo.suite.e4.rap.ArgeoSuiteLoginLifecycle");
22 protected void addEntryPoints(Application application
) {
23 CmsTheme cmsTheme
= new CmsTheme(bc
, "org.argeo.theme.argeo2");
24 cmsTheme
.apply(application
);
26 String font
= "<link rel='stylesheet' href='http://fonts.googleapis.com/css?family=Source+Sans+Pro'/>";
27 getBaseProperties().put(WebClient
.HEAD_HTML
, font
);
29 addE4EntryPoint(application
, "/office", "org.argeo.suite.e4/e4xmi/argeo-office.e4xmi", customise("Office"));
30 addE4EntryPoint(application
, "/docs", "org.argeo.suite.e4/e4xmi/argeo-docs.e4xmi", customise("Docs"));
33 // protected void addEntryPoint(Application application, E4ApplicationConfig config, Map<String, String> properties) {
34 // // String theme ="org.argeo.theme.argeo2.office";
35 // String theme = RWT.DEFAULT_THEME_ID;
36 // Bundle themeBundle = findTheme("org.argeo.theme.argeo2");
37 // // application.addStyleSheet(theme, "rap/office-rwt.css", new
38 // // BundleResourceLoader(themeBundle));
39 // application.addStyleSheet(theme, "rap/office.css", new BundleResourceLoader(themeBundle));
40 // properties.put(WebClient.THEME_ID, theme);
41 // String font = "<link rel='stylesheet' href='http://fonts.googleapis.com/css?family=Source+Sans+Pro'/>";
42 // properties.put(WebClient.HEAD_HTML, font);
43 // //super.addEntryPoint(application, config, properties);