James Moger
2013-09-30 699e71e76b15081baf746c6ce9c9144f7e5f1ff9
src/main/java/com/gitblit/client/EditTeamDialog.java
@@ -70,11 +70,11 @@
   private boolean canceled = true;
   private JTextField teamnameField;
   private JCheckBox canAdminCheckbox;
   private JCheckBox canForkCheckbox;
   private JCheckBox canCreateCheckbox;
   private JTextField mailingListsField;
@@ -117,6 +117,7 @@
      KeyStroke stroke = KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0);
      JRootPane rootPane = new JRootPane();
      rootPane.registerKeyboardAction(new ActionListener() {
         @Override
         public void actionPerformed(ActionEvent actionEvent) {
            setVisible(false);
         }
@@ -127,7 +128,7 @@
   private void initialize(int protocolVersion, TeamModel aTeam) {
      teamnameField = new JTextField(aTeam.name == null ? "" : aTeam.name, 25);
      canAdminCheckbox = new JCheckBox(Translation.get("gb.canAdminDescription"), aTeam.canAdmin);
      canAdminCheckbox = new JCheckBox(Translation.get("gb.canAdminDescription"), aTeam.canAdmin);
      canForkCheckbox = new JCheckBox(Translation.get("gb.canForkDescription"), aTeam.canFork);
      canCreateCheckbox = new JCheckBox(Translation.get("gb.canCreateDescription"), aTeam.canCreate);
@@ -146,7 +147,7 @@
      repositoryPalette = new RegistrantPermissionsPanel(RegistrantType.REPOSITORY);
      userPalette = new JPalette<String>();
      userPalette.setEnabled(settings.supportsTeamMembershipChanges);
      JPanel fieldsPanelTop = new JPanel(new BorderLayout());
      fieldsPanelTop.add(fieldsPanel, BorderLayout.NORTH);
@@ -154,6 +155,7 @@
         private static final long serialVersionUID = 1L;
         @Override
         public Insets getInsets() {
            return _insets;
         }
@@ -164,6 +166,7 @@
         private static final long serialVersionUID = 1L;
         @Override
         public Insets getInsets() {
            return _insets;
         }
@@ -175,7 +178,7 @@
      JPanel preReceivePanel = new JPanel(new BorderLayout(5, 5));
      preReceivePanel.add(preReceivePalette, BorderLayout.CENTER);
      preReceivePanel.add(preReceiveInherited, BorderLayout.WEST);
      postReceivePalette = new JPalette<String>(true);
      postReceiveInherited = new JLabel();
      JPanel postReceivePanel = new JPanel(new BorderLayout(5, 5));
@@ -191,6 +194,7 @@
      JButton createButton = new JButton(Translation.get("gb.save"));
      createButton.addActionListener(new ActionListener() {
         @Override
         public void actionPerformed(ActionEvent event) {
            if (validateFields()) {
               canceled = false;
@@ -201,6 +205,7 @@
      JButton cancelButton = new JButton(Translation.get("gb.cancel"));
      cancelButton.addActionListener(new ActionListener() {
         @Override
         public void actionPerformed(ActionEvent event) {
            canceled = true;
            setVisible(false);
@@ -317,10 +322,10 @@
         if (repo.accessRestriction.exceeds(AccessRestrictionType.NONE)
               && repo.authorizationControl.equals(AuthorizationControl.NAMED)) {
            restricted.add(repo.name);
         }
         }
      }
      StringUtils.sortRepositorynames(restricted);
      List<String> list = new ArrayList<String>();
      // repositories
      list.add(".*");
@@ -339,7 +344,7 @@
         // all repositories excluding personal repositories
         list.add("[^" + prefix + "].*");
      }
      String lastProject = null;
      for (String repo : restricted) {
         String projectPath = StringUtils.getFirstPathElement(repo);