]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - eclipse/plugins/runtime/org.argeo.slc.client.ui/src/main/java/org/argeo/slc/client/ui/views/ResultListView.java
Finalise excel support for windows
[gpl/argeo-slc.git] / eclipse / plugins / runtime / org.argeo.slc.client.ui / src / main / java / org / argeo / slc / client / ui / views / ResultListView.java
index 446548803ef3996e17fe1b982181b3e912a351cf..2e63d947e79c71446f5a6790fb110d98c46b63f8 100644 (file)
@@ -88,15 +88,22 @@ public class ResultListView extends ViewPart {
                return table;
        }
 
-       // TODO : Improve this method.
-       public String getSelectedResult() {
+       // TODO : Improve this methods.
+       public String[] getSelectedResult() {
                Object obj = ((IStructuredSelection) viewer.getSelection())
                                .getFirstElement();
 
+               String[] attributes = new String[2];
+
                if (obj == null || !(obj instanceof ResultAttributes))
                        return null;
-               else
-                       return ((ResultAttributes) obj).getUuid();
+               else {
+                       ResultAttributes ra = (ResultAttributes) obj;
+                       attributes[0] = ra.getUuid();
+                       attributes[1] = (ra.getAttributes().get("testCase") == null) ? null
+                                       : ra.getAttributes().get("testCase");
+                       return attributes;
+               }
        }
 
        // View Specific inner class