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