/*
  * @see GUISettingsTabInterface#handleSettingsTabSave()
  */
 public void handleSettingsTabSave() {
   if (elements != null) {
     for (int i = 0; i < elements.length; i++) {
       ModuleLoader2.setSelected(
           (String) elements[i][0], ((Boolean) elements[i][1]).booleanValue());
     }
     ModuleLoader2.doLoad(false);
   }
 }
    /** Constructor. */
    public ModuleTableModel() {
      Object[] arr = ModuleLoader2.allModules().toArray();

      elements = new Object[arr.length][2];

      for (int i = 0; i < elements.length; i++) {
        elements[i][0] = arr[i];
        elements[i][1] = Boolean.valueOf(ModuleLoader2.isSelected((String) arr[i]));
      }
    }
  /*
   * @see GUISettingsTabInterface#handleSettingsTabRefresh()
   */
  public void handleSettingsTabRefresh() {
    table.setModel(new ModuleTableModel());

    StringBuffer sb = new StringBuffer();
    List locations = ModuleLoader2.getInstance().getExtensionLocations();
    for (Iterator it = locations.iterator(); it.hasNext(); ) {
      sb.append((String) it.next());
      sb.append("\n");
    }
    fieldAllExtDirs.setText(sb.substring(0, sb.length() - 1).toString());
  }