X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=eclipse%2Fplugins%2Forg.argeo.slc.client.ui%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fslc%2Fclient%2Fui%2Fviews%2FJcrProcessListView.java;h=f3f6f467da93645be00ba2ea0608f102e179cf59;hb=24d560ee846fda5d7954d44f83cb22ab449dbe61;hp=b849aa4bfb890e8185e99f9e78998176c2ad209a;hpb=eef4888d3214ab92c5df3768d08c3e26269cc429;p=gpl%2Fargeo-slc.git diff --git a/eclipse/plugins/org.argeo.slc.client.ui/src/main/java/org/argeo/slc/client/ui/views/JcrProcessListView.java b/eclipse/plugins/org.argeo.slc.client.ui/src/main/java/org/argeo/slc/client/ui/views/JcrProcessListView.java index b849aa4bf..f3f6f467d 100644 --- a/eclipse/plugins/org.argeo.slc.client.ui/src/main/java/org/argeo/slc/client/ui/views/JcrProcessListView.java +++ b/eclipse/plugins/org.argeo.slc.client.ui/src/main/java/org/argeo/slc/client/ui/views/JcrProcessListView.java @@ -11,7 +11,6 @@ import javax.jcr.Property; import javax.jcr.RepositoryException; import javax.jcr.Session; import javax.jcr.observation.Event; -import javax.jcr.observation.EventIterator; import javax.jcr.observation.EventListener; import javax.jcr.observation.ObservationManager; import javax.jcr.query.Query; @@ -67,7 +66,7 @@ public class JcrProcessListView extends ViewPart { processesObserver = new AsyncUiEventListener(viewer.getTable() .getDisplay()) { - protected void onEventInUiThread(EventIterator events) { + protected void onEventInUiThread(List events) { // TODO optimize by updating only the changed process viewer.refresh(); } @@ -176,6 +175,8 @@ public class JcrProcessListView extends ViewPart { return SlcImages.PROCESS_COMPLETED; else if (status.equals(ExecutionProcess.RUNNING)) return SlcImages.PROCESS_RUNNING; + else if (status.equals(ExecutionProcess.KILLED)) + return SlcImages.PROCESS_ERROR; else throw new SlcException("Unkown status " + status); } catch (RepositoryException e) {