slight modifs in log and variable names.
authorBruno Sinou <bsinou@argeo.org>
Wed, 22 Sep 2010 09:15:50 +0000 (09:15 +0000)
committerBruno Sinou <bsinou@argeo.org>
Wed, 22 Sep 2010 09:15:50 +0000 (09:15 +0000)
git-svn-id: https://svn.argeo.org/slc/trunk@3785 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc

eclipse/plugins/org.argeo.slc.client.ui/src/org/argeo/slc/client/ui/views/ProcessListView.java

index 1bdcaa0c3cc21c944ca26d805f527c1a778c93a9..4e29f765a8cf9a84f7d17b0a5d07c0f2a1614312 100644 (file)
@@ -4,7 +4,6 @@ import java.util.List;
 
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
-import org.argeo.slc.core.test.tree.ResultAttributes;
 import org.argeo.slc.dao.process.SlcExecutionDao;
 import org.argeo.slc.process.SlcExecution;
 import org.eclipse.jface.viewers.IStructuredContentProvider;
@@ -21,8 +20,7 @@ import org.eclipse.swt.widgets.TableColumn;
 import org.eclipse.ui.part.ViewPart;
 
 public class ProcessListView extends ViewPart {
-       private final static Log log = LogFactory
-                       .getLog(ProcessListView.class);
+       private final static Log log = LogFactory.getLog(ProcessListView.class);
 
        public static final String ID = "org.argeo.slc.client.ui.processListView";
 
@@ -85,7 +83,7 @@ public class ProcessListView extends ViewPart {
                @SuppressWarnings("unchecked")
                public Object[] getElements(Object obj) {
                        if (obj instanceof List) {
-                               return ((List<ResultAttributes>) obj).toArray();
+                               return ((List<SlcExecution>) obj).toArray();
                        } else {
                                return new Object[0];
                        }
@@ -95,17 +93,17 @@ public class ProcessListView extends ViewPart {
        protected class ViewLabelProvider extends LabelProvider implements
                        ITableLabelProvider {
                public String getColumnText(Object obj, int index) {
-                       SlcExecution ra = (SlcExecution) obj;
+                       SlcExecution se = (SlcExecution) obj;
                        switch (index) {
 
                        case 0:
-                               return getText(ra.getStartDate());
+                               return getText(se.getStartDate());
                        case 1:
-                               return ra.getHost();
+                               return se.getHost();
                        case 2:
-                               return ra.getUuid();
+                               return se.getUuid();
                        case 3:
-                               return ra.currentStep().getType();
+                               return se.currentStep().getType();
                        }
                        return getText(obj);
                }
@@ -125,7 +123,7 @@ public class ProcessListView extends ViewPart {
                        List<SlcExecution> lst = slcExecutionDao.listSlcExecutions();
 
                        if (log.isTraceEnabled())
-                               log.trace("Result attributes count: " + lst.size());
+                               log.trace("Slc Execution count: " + lst.size());
                        viewer.setInput(lst);
                        // viewer.refresh();
                } catch (Exception e) {
@@ -138,4 +136,4 @@ public class ProcessListView extends ViewPart {
                this.slcExecutionDao = slcExecutionDao;
        }
 
-}
+}
\ No newline at end of file