コード例 #1
0
 @Override
 protected void afterTestConnection(final boolean b) {
   super.afterTestConnection(b);
   if (b) {
     updateProjects();
   }
 }
コード例 #2
0
 @Override
 public void setAnchor(@Nullable final JComponent anchor) {
   super.setAnchor(anchor);
   myHostLabel.setAnchor(anchor);
   myRepositoryLabel.setAnchor(anchor);
   myTokenLabel.setAnchor(anchor);
 }
コード例 #3
0
 @Override
 public void apply() {
   myRepository.setRepoName(getRepoName());
   myRepository.setRepoAuthor(getRepoAuthor());
   myRepository.setToken(getToken());
   super.apply();
 }
コード例 #4
0
 @Override
 public void apply() {
   if (!myRepository.getUrl().equals(myURLText.getText())
       || !myRepository.getUsername().equals(myUserNameText.getText())
       || !myRepository.getPassword().equals(myPasswordText.getText())) {
     resetComboBoxes();
   } else {
     final Object selectedProjectObject = myProjectCombobox.getModel().getSelectedItem();
     final Object selectedFilterObject = myFilterCombobox.getModel().getSelectedItem();
     if (selectedProjectObject != null
         && selectedFilterObject != null
         && selectedProjectObject instanceof MantisProject
         && selectedFilterObject instanceof MantisFilter) {
       myRepository.setProject((MantisProject) selectedProjectObject);
       myRepository.setFilter((MantisFilter) selectedFilterObject);
     }
   }
   super.apply();
 }
コード例 #5
0
 @Override
 public void setAnchor(@Nullable final JComponent anchor) {
   super.setAnchor(anchor);
   myProjectLabel.setAnchor(anchor);
   myFilterLabel.setAnchor(anchor);
 }