X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=plugins%2Forg.argeo.slc.client.ui%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fslc%2Fclient%2Fui%2Fmodel%2FResultFolder.java;h=c564492d889f87b6c6febef4e210f5e7a861b8d9;hb=fd6362dda19f29ca746ecefae779694e6cb43dd4;hp=f48c5713f4b334d52ba77dea4299f47ff30bea55;hpb=2bdb18c75fc87cd78ed18843149c469c180f3830;p=gpl%2Fargeo-slc.git diff --git a/plugins/org.argeo.slc.client.ui/src/main/java/org/argeo/slc/client/ui/model/ResultFolder.java b/plugins/org.argeo.slc.client.ui/src/main/java/org/argeo/slc/client/ui/model/ResultFolder.java index f48c5713f..c564492d8 100644 --- a/plugins/org.argeo.slc.client.ui/src/main/java/org/argeo/slc/client/ui/model/ResultFolder.java +++ b/plugins/org.argeo.slc.client.ui/src/main/java/org/argeo/slc/client/ui/model/ResultFolder.java @@ -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 { +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