Пример #1
0
 private void getParents(List<Entry> list) {
   for (Entry entry : parents) {
     if (entry.install && !list.contains(entry)) {
       list.add(entry);
       entry.getParents(list);
     }
   }
 }
Пример #2
0
    // {{{ deselectParents() method
    private void deselectParents(Entry entry) {
      Entry[] parents = entry.getParents();

      if (parents.length == 0) return;

      String[] args = {entry.name};
      int result = GUIUtilities.listConfirm(window, "plugin-manager.dependency", args, parents);
      if (result != JOptionPane.OK_OPTION) {
        entry.install = true;
        return;
      }

      for (int i = 0; i < parents.length; i++) parents[i].install = false;

      fireTableRowsUpdated(0, getRowCount() - 1);
    } // }}}