]> 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
Remove children indicator on flows
[gpl/argeo-slc.git] / eclipse / plugins / org.argeo.slc.client.ui / src / main / java / org / argeo / slc / client / ui / views / JcrExecutionModulesView.java
index 41e0be09510dd81f3814ead5bdf0d72a75faa5ac..490a1c31d26ace5f510bbf30006a9a85ef71b777 100644 (file)
@@ -49,8 +49,8 @@ import org.eclipse.ui.part.ViewPart;
 /** JCR based view of the execution modules. */
 public class JcrExecutionModulesView extends ViewPart implements SlcTypes,
                SlcNames {
-//     private final static Log log = LogFactory
-//                     .getLog(JcrExecutionModulesView.class);
+       // private final static Log log = LogFactory
+       // .getLog(JcrExecutionModulesView.class);
 
        public static final String ID = "org.argeo.slc.client.ui.jcrExecutionModulesView";
 
@@ -148,6 +148,20 @@ public class JcrExecutionModulesView extends ViewPart implements SlcTypes,
                        }
                        return super.filterChildren(children);
                }
+
+               @Override
+               public boolean hasChildren(Object element) {
+                       if (element instanceof Node) {
+                               Node node = (Node) element;
+                               try {
+                                       if (node.isNodeType(SlcTypes.SLC_EXECUTION_FLOW))
+                                               return false;
+                               } catch (RepositoryException e) {
+                                       throw new SlcException("Cannot check has children", e);
+                               }
+                       }
+                       return super.hasChildren(element);
+               }
        }
 
        static class ViewComparator implements Comparator<Object> {