]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - eclipse/plugins/org.argeo.slc.client.ui/src/main/java/org/argeo/slc/client/ui/views/JcrExecutionModulesView.java
Improve RCP
[gpl/argeo-slc.git] / eclipse / plugins / org.argeo.slc.client.ui / src / main / java / org / argeo / slc / client / ui / views / JcrExecutionModulesView.java
index e5696ee9e652a8a10d3ae346e7377e4e4eab502c..d87be4f29f90cfab9f9a8fcf52218fd6dfe16963 100644 (file)
@@ -3,6 +3,7 @@ package org.argeo.slc.client.ui.views;
 import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.Comparator;
+import java.util.Iterator;
 import java.util.List;
 
 import javax.jcr.Node;
@@ -125,6 +126,17 @@ public class JcrExecutionModulesView extends ViewPart implements SlcTypes,
                        Arrays.sort(sorted, new ViewComparator());
                        return sorted;
                }
+
+               @Override
+               protected List<Node> filterChildren(List<Node> children)
+                               throws RepositoryException {
+                       for (Iterator<Node> it = children.iterator(); it.hasNext();) {
+                               Node node = it.next();
+                               if (node.getName().equals(SLC_EXECUTION_SPECS))
+                                       it.remove();
+                       }
+                       return super.filterChildren(children);
+               }
        }
 
        static class ViewComparator implements Comparator<Object> {