]> git.argeo.org Git - gpl/argeo-slc.git/commitdiff
Add a Rap interface to handle SLC.
authorBruno Sinou <bsinou@argeo.org>
Mon, 13 Dec 2010 15:52:58 +0000 (15:52 +0000)
committerBruno Sinou <bsinou@argeo.org>
Mon, 13 Dec 2010 15:52:58 +0000 (15:52 +0000)
Now, everything is launched in the same VM: the slc server, the web server and the rap part.

git-svn-id: https://svn.argeo.org/slc/trunk@3973 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc

eclipse/plugins/modules/org.argeo.slc.client.hibernate/META-INF/MANIFEST.MF
eclipse/plugins/runtime/org.argeo.slc.client.commons/META-INF/MANIFEST.MF
eclipse/plugins/runtime/org.argeo.slc.client.core/META-INF/MANIFEST.MF
eclipse/plugins/runtime/org.argeo.slc.client.oxm/META-INF/MANIFEST.MF
eclipse/plugins/runtime/org.argeo.slc.client.ui/META-INF/MANIFEST.MF
eclipse/plugins/runtime/org.argeo.slc.client.ui/src/main/java/org/argeo/slc/client/ui/controllers/ProcessController.java
eclipse/plugins/runtime/org.argeo.slc.client.ui/src/main/java/org/argeo/slc/client/ui/views/ProcessBuilderView.java
eclipse/plugins/runtime/org.argeo.slc.client.ui/src/main/java/org/argeo/slc/client/ui/views/ProcessListView.java
eclipse/plugins/runtime/org.argeo.slc.client.ui/src/main/java/org/argeo/slc/client/ui/views/ResultDetailView.java
eclipse/plugins/runtime/org.argeo.slc.client.ui/src/main/java/org/argeo/slc/client/ui/views/ResultListView.java

index e47000daea28c88a523e2b862f3c31567739cb4d..be1074d3d9d8d7df26f137b8bca4117a9d01099c 100644 (file)
@@ -3,7 +3,8 @@ Bundle-ManifestVersion: 2
 Bundle-Name: Hibernate Interface for RCP Client
 Bundle-SymbolicName: org.argeo.slc.client.hibernate
 Bundle-Version: 0.13.1.SNAPSHOT
-Require-Bundle: org.eclipse.ui;resolution:=optional
+Require-Bundle: org.eclipse.ui;resolution:=optional,
+ org.eclipse.rap.ui;resolution:=optional
 Import-Package: org.aopalliance.aop;version="1.0.0",
  org.argeo.slc.client.aspects,
  org.argeo.slc.client.contentprovider,
index 19a3bb3fa26b27b3b3049e8be6de91b2afb7b2a6..37f8461eb353f144c113a5a479b06a6832936c7a 100644 (file)
@@ -4,7 +4,9 @@ Bundle-Name: Client commons
 Bundle-SymbolicName: org.argeo.slc.client.commons;singleton:=true
 Bundle-Version: 0.13.1.SNAPSHOT
 Require-Bundle: org.eclipse.ui;resolution:=optional,
- org.eclipse.core.runtime;resolution:=optional
+ org.eclipse.core.runtime;resolution:=optional,
+ org.eclipse.rap.ui;resolution:=optional,
+ org.eclipse.rap.ui.workbench;resolution:=optional
 Bundle-ActivationPolicy: lazy
 Bundle-RequiredExecutionEnvironment: J2SE-1.5
 Export-Package: org.argeo.slc.client.ui
index 5d03a1213e48ca1e6367a155f5836aa3b78e4b38..a79376c4858821328acbad7ac141eac782abf8cf 100644 (file)
@@ -7,7 +7,8 @@ Bundle-RequiredExecutionEnvironment: J2SE-1.5
 Export-Package: org.argeo.slc.client.aspects,
  org.argeo.slc.client.contentprovider
 Require-Bundle: org.springframework.orm;bundle-version="2.5.6",
- org.eclipse.ui;resolution:=optional
+ org.eclipse.ui;resolution:=optional,
+ org.eclipse.rap.ui;resolution:=optional
 Import-Package: org.apache.commons.io;version="1.4.0",
  org.apache.commons.logging;version="1.1.1",
  org.argeo.eclipse.spring,
index 90c9fc56152ce6ab7df36e8829eb038307bf4acc..c744c31205e9b1696cae818c3d34593cb692c2a3 100644 (file)
@@ -5,7 +5,7 @@ Bundle-Name: Test Bundle to solve use case issues
 Bundle-SymbolicName: org.argeo.slc.client.oxm
 Export-Package: org.argeo.slc.client.oxm
 Bundle-RequiredExecutionEnvironment: J2SE-1.5
-Require-Bundle: org.eclipse.ui
+Require-Bundle: org.eclipse.ui;resolution:=optional
 Import-Package: org.argeo.slc,
  org.springframework.core,
  org.springframework.oxm,
index ee1ed7c44d30d002de9b7171d94b7a32b5a06a9f..d380602a70ed633fd81af125fcc13cb32ff52501 100644 (file)
@@ -5,7 +5,9 @@ Bundle-SymbolicName: org.argeo.slc.client.ui;singleton:=true
 Bundle-Version: 0.13.1.SNAPSHOT
 Bundle-Activator: org.argeo.slc.client.ui.ClientUiPlugin
 Require-Bundle: org.eclipse.ui;resolution:=optional,
- org.eclipse.core.runtime;resolution:=optional
+ org.eclipse.core.runtime;resolution:=optional,
+ org.eclipse.rap.ui;resolution:=optional,
+ org.eclipse.rap.ui.workbench;resolution:=optional
 Bundle-ActivationPolicy: lazy
 Bundle-RequiredExecutionEnvironment: J2SE-1.5
 Export-Package: org.argeo.slc.client.ui.listeners,
@@ -36,6 +38,7 @@ Import-Package: org.apache.commons.io;version="1.4.0",
  org.argeo.slc.services.impl,
  org.argeo.slc.test,
  org.eclipse.core.expressions,
+ org.eclipse.ui.plugin,
  org.springframework.beans.factory,
  org.springframework.context,
  org.springframework.core.io.support
index 5785305ab68fec7c628e14fc36992818eda13d42..311b64ac0ce991a113f2470cfbb1ba5e91c4a965 100644 (file)
@@ -1,15 +1,21 @@
 package org.argeo.slc.client.ui.controllers;
 
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
 import org.argeo.slc.process.SlcExecution;
 import org.argeo.slc.runtime.SlcAgent;
 import org.argeo.slc.services.SlcExecutionService;
 
 public class ProcessController {
+       private final static Log log = LogFactory.getLog(ProcessController.class);
        private SlcExecutionService slcExecutionService;
 
        public void execute(SlcAgent agent, SlcExecution slcExecution) {
                slcExecutionService.newExecution(slcExecution);
                agent.runSlcExecution(slcExecution);
+               if (log.isDebugEnabled())
+                       log.debug("SlcExcution " + slcExecution.getUuid()
+                                       + " launched on Agent " + agent.toString());
        }
 
        public void setSlcExecutionService(SlcExecutionService slcExecutionService) {
index 1ea1d1361b0580ba84d328d0a3047b57ef7a9cf9..37000e2a125f89fe376bbecac7ce68b6a00af605 100644 (file)
@@ -89,11 +89,11 @@ public class ProcessBuilderView extends ViewPart {
 
                Table table = new Table(parent, style);
 
-               GridData gridData = new GridData(GridData.FILL_BOTH);
-               gridData.grabExcessVerticalSpace = true;
-               gridData.grabExcessHorizontalSpace = true;
-               gridData.horizontalSpan = 3;
-               table.setLayoutData(gridData);
+//             GridData gridData = new GridData(GridData.FILL_BOTH);
+//             gridData.grabExcessVerticalSpace = true;
+//             gridData.grabExcessHorizontalSpace = true;
+//             gridData.horizontalSpan = 3;
+//             table.setLayoutData(gridData);
 
                table.setLinesVisible(true);
                table.setHeaderVisible(true);
index 83194d603fad761323d81b947fc055b2a77e1c3d..0d356bf8b0281314c9f337b5fb995e8b65c8bede 100644 (file)
@@ -62,11 +62,11 @@ public class ProcessListView extends ViewPart {
 
                Table table = new Table(parent, style);
 
-               GridData gridData = new GridData(GridData.FILL_BOTH);
-               gridData.grabExcessVerticalSpace = true;
-               gridData.grabExcessHorizontalSpace = true;
-               gridData.horizontalSpan = 3;
-               table.setLayoutData(gridData);
+//             GridData gridData = new GridData(GridData.FILL_BOTH);
+//             gridData.grabExcessVerticalSpace = true;
+//             gridData.grabExcessHorizontalSpace = true;
+//             gridData.horizontalSpan = 3;
+//             table.setLayoutData(gridData);
 
                table.setLinesVisible(true);
                table.setHeaderVisible(true);
index 9901fcd1bfeced69a70f1122e663b80ff9aac015..2c81ffdce2b4f22ee31a6238cb36fa710af91433 100644 (file)
@@ -8,7 +8,6 @@ import org.eclipse.jface.viewers.IContentProvider;
 import org.eclipse.jface.viewers.ITableLabelProvider;
 import org.eclipse.jface.viewers.TreeViewer;
 import org.eclipse.swt.SWT;
-import org.eclipse.swt.layout.GridData;
 import org.eclipse.swt.widgets.Composite;
 import org.eclipse.swt.widgets.Tree;
 import org.eclipse.swt.widgets.TreeColumn;
@@ -43,9 +42,9 @@ public class ResultDetailView extends ViewPart {
        public void createPartControl(Composite parent) {
                resultDetailTree = new Tree(parent, SWT.MULTI | SWT.H_SCROLL
                                | SWT.V_SCROLL);
-               GridData gd = new GridData(GridData.FILL_HORIZONTAL);
-               gd.horizontalSpan = 3;
-               resultDetailTree.setLayoutData(gd);
+               // GridData gd = new GridData(GridData.FILL_HORIZONTAL);
+               // gd.horizontalSpan = 3;
+               // resultDetailTree.setLayoutData(gd);
                resultDetailTree.setLinesVisible(true);
                resultDetailTree.setHeaderVisible(true);
 
index fd6233932497b1af810f5e4a685d78a7f4462477..d49d67026942d3677def6753bf882df44fb25b26 100644 (file)
@@ -95,11 +95,11 @@ public class ResultListView extends ViewPart {
 
                Table table = new Table(parent, style);
                // table.addMouseListener(new RightClickListener());
-               GridData gridData = new GridData(GridData.FILL_BOTH);
-               gridData.grabExcessVerticalSpace = true;
-               gridData.grabExcessHorizontalSpace = true;
-               gridData.horizontalSpan = 3;
-               table.setLayoutData(gridData);
+               //GridData gridData = new GridData(GridData.FILL_BOTH);
+               //gridData.grabExcessVerticalSpace = true;
+               //gridData.grabExcessHorizontalSpace = true;
+               //gridData.horizontalSpan = 3;
+               //table.setLayoutData(gridData);
 
                table.setLinesVisible(true);
                table.setHeaderVisible(true);