X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=org.argeo.suite.e4.rap%2Fsrc%2Forg%2Fargeo%2Fsuite%2Fe4%2Frap%2FArgeoOfficeRapE4App.java;h=213e5d2c4e73d445aa265f326c7a99d415ddbecb;hb=b5427b28d889738c2a4bd12f6be5e271f68aa60f;hp=92fcfa377f069fbb6d7bfb900f63db4b27606100;hpb=91ba500dcfe75cde313a513e341b7f9f57d64d75;p=gpl%2Fargeo-suite.git
diff --git a/org.argeo.suite.e4.rap/src/org/argeo/suite/e4/rap/ArgeoOfficeRapE4App.java b/org.argeo.suite.e4.rap/src/org/argeo/suite/e4/rap/ArgeoOfficeRapE4App.java
index 92fcfa3..213e5d2 100644
--- a/org.argeo.suite.e4.rap/src/org/argeo/suite/e4/rap/ArgeoOfficeRapE4App.java
+++ b/org.argeo.suite.e4.rap/src/org/argeo/suite/e4/rap/ArgeoOfficeRapE4App.java
@@ -1,14 +1,46 @@
+
package org.argeo.suite.e4.rap;
import org.argeo.cms.e4.rap.AbstractRapE4App;
+import org.eclipse.rap.rwt.application.Application;
+import org.eclipse.rap.rwt.client.WebClient;
+import org.osgi.framework.BundleContext;
+import org.osgi.framework.FrameworkUtil;
+/** Argeo Office RAP application. */
public class ArgeoOfficeRapE4App extends AbstractRapE4App {
+ private BundleContext bc = FrameworkUtil.getBundle(getClass()).getBundleContext();
public ArgeoOfficeRapE4App() {
- setPageTitle("Argeo Office");
- setE4Xmi("org.argeo.suite.e4/e4xmi/argeo-office.e4xmi");
- setPath("/office");
+// setPageTitle("Argeo Office");
+// setE4Xmi("org.argeo.suite.e4/e4xmi/argeo-office.e4xmi");
+// setPath("/office");
setLifeCycleUri("bundleclass://org.argeo.suite.e4.rap/org.argeo.suite.e4.rap.ArgeoSuiteLoginLifecycle");
}
+ @Override
+ protected void addEntryPoints(Application application) {
+// CmsTheme cmsTheme = new CmsTheme(bc, "org.argeo.theme.argeo2");
+// cmsTheme.apply(application);
+
+ String font = "";
+ getBaseProperties().put(WebClient.HEAD_HTML, font);
+
+ addE4EntryPoint(application, "/office", "org.argeo.suite.e4/e4xmi/argeo-office.e4xmi", customise("Office"));
+ addE4EntryPoint(application, "/docs", "org.argeo.suite.e4/e4xmi/argeo-docs.e4xmi", customise("Docs"));
+ }
+
+// protected void addEntryPoint(Application application, E4ApplicationConfig config, Map properties) {
+// // String theme ="org.argeo.theme.argeo2.office";
+// String theme = RWT.DEFAULT_THEME_ID;
+// Bundle themeBundle = findTheme("org.argeo.theme.argeo2");
+// // application.addStyleSheet(theme, "rap/office-rwt.css", new
+// // BundleResourceLoader(themeBundle));
+// application.addStyleSheet(theme, "rap/office.css", new BundleResourceLoader(themeBundle));
+// properties.put(WebClient.THEME_ID, theme);
+// String font = "";
+// properties.put(WebClient.HEAD_HTML, font);
+// //super.addEntryPoint(application, config, properties);
+// }
+
}