James Moger
2012-03-17 e9de3f7fd55dd4d4535cd7b2fc2bee8094152e39
src/com/gitblit/client/EditRepositoryDialog.java
@@ -106,6 +106,8 @@
   private JPalette<String> teamsPalette;
   private JPalette<String> indexedBranchesPalette;
   private JPalette<String> preReceivePalette;
   private JLabel preReceiveInherited;
@@ -258,6 +260,12 @@
            .add(newFieldPanel(Translation.get("gb.federationSets"),
                  setsPalette), BorderLayout.CENTER);
      indexedBranchesPalette = new JPalette<String>();
      JPanel indexedBranchesPanel = new JPanel(new BorderLayout(5, 5));
      indexedBranchesPanel
            .add(newFieldPanel(Translation.get("gb.indexedBranches"),
                  indexedBranchesPalette), BorderLayout.CENTER);
      preReceivePalette = new JPalette<String>(true);
      preReceiveInherited = new JLabel();
      JPanel preReceivePanel = new JPanel(new BorderLayout(5, 5));
@@ -277,6 +285,9 @@
         panel.addTab(Translation.get("gb.teams"), teamsPanel);
      }
      panel.addTab(Translation.get("gb.federation"), federationPanel);
      if (protocolVersion >= 3) {
         panel.addTab(Translation.get("gb.indexedBranches"), indexedBranchesPanel);
      }
      panel.addTab(Translation.get("gb.preReceiveScripts"), preReceivePanel);
      panel.addTab(Translation.get("gb.postReceiveScripts"), postReceivePanel);
@@ -434,6 +445,7 @@
         repository.federationSets = setsPalette.getSelections();
      }
      repository.indexedBranches = indexedBranchesPalette.getSelections();
      repository.preReceiveScripts = preReceivePalette.getSelections();
      repository.postReceiveScripts = postReceivePalette.getSelections();
      return true;
@@ -471,6 +483,10 @@
      setsPalette.setObjects(all, selected);
   }
   public void setIndexedBranches(List<String> all, List<String> selected) {
      indexedBranchesPalette.setObjects(all, selected);
   }
   public void setPreReceiveScripts(List<String> all, List<String> inherited,
         List<String> selected) {
      preReceivePalette.setObjects(all, selected);