+ refactoring of the JCR UI Model (in a MVC point of view)
[lgpl/argeo-commons.git] / sandbox / eclipse / plugins / org.argeo.sandbox.ui.rap / src / main / java / org / argeo / sandbox / ui / rap / Application.java
diff --git a/sandbox/eclipse/plugins/org.argeo.sandbox.ui.rap/src/main/java/org/argeo/sandbox/ui/rap/Application.java b/sandbox/eclipse/plugins/org.argeo.sandbox.ui.rap/src/main/java/org/argeo/sandbox/ui/rap/Application.java
new file mode 100644 (file)
index 0000000..401f1b1
--- /dev/null
@@ -0,0 +1,19 @@
+package org.argeo.sandbox.ui.rap;
+
+import org.eclipse.rwt.lifecycle.IEntryPoint;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.ui.application.WorkbenchAdvisor;
+
+/**
+ * This class controls all aspects of the application's execution
+ * and is contributed through the plugin.xml.
+ */
+public class Application implements IEntryPoint {
+
+       public int createUI() {
+               Display display = PlatformUI.createDisplay();
+               WorkbenchAdvisor advisor = new ApplicationWorkbenchAdvisor();
+               return PlatformUI.createAndRunWorkbench( display, advisor );
+       }
+}