1 package org.argeo.suite.e4.rap;
2
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;
9
10
11 public class ArgeoOfficeRapE4App extends AbstractRapE4App {
12 private BundleContext bc = FrameworkUtil.getBundle(getClass()).getBundleContext();
13
14 public ArgeoOfficeRapE4App() {
15
16
17
18 setLifeCycleUri("bundleclass://org.argeo.suite.e4.rap/org.argeo.suite.e4.rap.ArgeoSuiteLoginLifecycle");
19 }
20
21 @Override
22 protected void addEntryPoints(Application application) {
23 CmsTheme cmsTheme = new CmsTheme(bc, "org.argeo.theme.argeo2");
24 cmsTheme.apply(application);
25
26 String font = "<link rel='stylesheet' href='http://fonts.googleapis.com/css?family=Source+Sans+Pro'/>";
27 getBaseProperties().put(WebClient.HEAD_HTML, font);
28
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"));
31 }
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46 }