]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - plugins/org.argeo.slc.client.ui/src/main/java/org/argeo/slc/client/ui/model/ResultFolder.java
Remove unused context menu.
[gpl/argeo-slc.git] / plugins / org.argeo.slc.client.ui / src / main / java / org / argeo / slc / client / ui / model / ResultFolder.java
index f48c5713f4b334d52ba77dea4299f47ff30bea55..c564492d889f87b6c6febef4e210f5e7a861b8d9 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2007-2012 Mathieu Baudier
+ * Copyright (C) 2007-2012 Argeo GmbH
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -25,8 +25,7 @@ import org.argeo.slc.jcr.SlcNames;
  * UI Tree component that wrap a node of type ResultFolder. list either other
  * folders and/or a list of results. keeps a reference to its parent.
  */
-public class ResultFolder extends ParentNodeFolder implements
-               Comparable<ResultFolder> {
+public class ResultFolder extends ParentNodeFolder {
 
        /**
         * 
@@ -39,8 +38,8 @@ public class ResultFolder extends ParentNodeFolder implements
                super(parent, node, name);
                try {
                        // initialize passed status if possible
-                       if (node.hasNode(SlcNames.SLC_STATUS))
-                               setPassed(node.getNode(SlcNames.SLC_STATUS)
+                       if (node.hasNode(SlcNames.SLC_AGGREGATED_STATUS))
+                               setPassed(node.getNode(SlcNames.SLC_AGGREGATED_STATUS)
                                                .getProperty(SlcNames.SLC_SUCCESS).getBoolean());
                } catch (RepositoryException re) {
                        throw new SlcException(
@@ -49,15 +48,15 @@ public class ResultFolder extends ParentNodeFolder implements
                }
        }
 
-       /**
-        * Overriden to return an ordered list of children
-        */
-       public synchronized Object[] getChildren() {
-               Object[] children = super.getChildren();
-               return ResultParentUtils.orderChildren(children);
-       }
-
-       public int compareTo(ResultFolder o) {
-               return super.compareTo(o);
-       }
+       // /**
+       // * Overriden to return an ordered list of children
+       // */
+       // public synchronized Object[] getChildren() {
+       // Object[] children = super.getChildren();
+       // return ResultParentUtils.orderChildren(children);
+       // }
+       //
+       // public int compareTo(ResultFolder o) {
+       // return super.compareTo(o);
+       // }
 }
\ No newline at end of file