Example #1
0
 private void doSetChecked(
     final CheckboxTreeViewer checkboxTreeViewer, final Collection<IErlModule> modules) {
   setGrayChecked(checkboxTreeViewer, false, modules.contains(item));
   for (final DebugTreeItem c : children) {
     c.setChecked(checkboxTreeViewer, modules);
     c.getParent().updateMenuCategoryCheckedState(checkboxTreeViewer);
   }
 }
Example #2
0
 boolean addAllErlangModules(final IErlElement elem) {
   if (elem instanceof IErlModule) {
     children.add(new DebugTreeItem(elem, this));
     return true;
   } else if (elem instanceof ErlOtpExternalReferenceEntryList) {
     return false;
   } else if (elem instanceof ErlExternalReferenceEntryList) {
     return false;
   } else if (elem instanceof ErlExternalReferenceEntry) {
     return false;
   } else if (elem instanceof IParent) {
     try {
       if (elem instanceof IErlFolder) {
         final IErlFolder f = (IErlFolder) elem;
         if (!f.isSourcePathParent()) {
           return false;
         }
       }
       if (elem instanceof IOpenable) {
         final IOpenable o = (IOpenable) elem;
         o.open(null);
       }
       final DebugTreeItem dti = new DebugTreeItem(elem, this);
       final IParent p = (IParent) elem;
       boolean addedAny = false;
       for (final IErlElement i : p.getChildren()) {
         addedAny |= dti.addAllErlangModules(i);
       }
       if (addedAny) {
         children.add(dti);
       }
       return true;
     } catch (final ErlModelException e) {
       ErlLogger.warn(e);
     }
   }
   return false;
 }