public void setData(CVSRevisionGraphProjectComponent data) {
   CVSRevisionGraphProjectConfig config = data.getConfig();
   _useTwoTagConventionCB.setSelected(config.is_useTwoTagConvention());
   _tagNamingTF.setText(config.get_tagNaming());
   _showTagsCB.setSelected(config.is_showTags());
   if (config.is_showTagFilter()) {
     _showTagR.setSelected(true);
   } else {
     _hideTagR.setSelected(true);
   }
   _tagFilterTF.setText(config.get_tagFilter());
   if (config.is_showBranchFilter()) {
     _showBranchR.setSelected(true);
   } else {
     _hideBranchR.setSelected(true);
   }
   List<String> hiddenBranches = data.getBranchFilter();
   DefaultListModel lm = (DefaultListModel) _branchFilterL.getModel();
   lm.removeAllElements();
   for (String hiddenBranch : hiddenBranches) {
     lm.addElement(hiddenBranch);
   }
   if (config.is_showRevisionFilter()) {
     _showRevisionR.setSelected(true);
   } else {
     _hideRevisionR.setSelected(true);
   }
   _afterDateTimeCB.setSelected(config.is_afterDateTimeFilter());
   _beforeDateTimeCB.setSelected(config.is_beforeDateTimeFilter());
   _afterDateTimeTF.setText(config.get_afterDateTime());
   _beforeDateTimeTF.setText(config.get_beforeDateTime());
   updateTagNamingExample();
   updateTagFilter();
   updateAfterDateTimeFilter();
   updateBeforeDateTimeFilter();
 }
 public boolean isModified(CVSRevisionGraphProjectComponent data) {
   CVSRevisionGraphProjectConfig config = data.getConfig();
   if (_useTwoTagConventionCB.isSelected() != config.is_useTwoTagConvention()) {
     return true;
   }
   if (_tagNamingTF.getText() != null
       ? !_tagNamingTF.getText().equals(config.get_tagNaming())
       : config.get_tagNaming() != null) {
     return true;
   }
   if (_showRevisionR.isSelected() != config.is_showRevisionFilter()) {
     return true;
   }
   if (_afterDateTimeCB.isSelected() != config.is_afterDateTimeFilter()) {
     return true;
   }
   if (_beforeDateTimeCB.isSelected() != config.is_beforeDateTimeFilter()) {
     return true;
   }
   if (_afterDateTimeTF.getText() != null
       ? !_afterDateTimeTF.getText().equals(config.get_afterDateTime())
       : config.get_afterDateTime() != null) {
     return true;
   }
   if (_beforeDateTimeTF.getText() != null
       ? !_beforeDateTimeTF.getText().equals(config.get_beforeDateTime())
       : config.get_beforeDateTime() != null) {
     return true;
   }
   if (_showTagsCB.isSelected() != config.is_showTags()) {
     return true;
   }
   if (_showTagR.isSelected() != config.is_showTagFilter()) {
     return true;
   }
   if (_tagFilterTF.getText() != null
       ? !_tagFilterTF.getText().equals(config.get_tagFilter())
       : config.get_tagFilter() != null) {
     return true;
   }
   if (_showBranchR.isSelected() != config.is_showBranchFilter()) {
     return true;
   }
   DefaultListModel lm = (DefaultListModel) _branchFilterL.getModel();
   List<String> hiddenBranches = data.getBranchFilter();
   if ((lm == null) && (hiddenBranches == null)) {
     return false;
   }
   if ((lm == null)) {
     return true;
   }
   if ((hiddenBranches == null)) {
     return true;
   }
   if (lm.getSize() != hiddenBranches.size()) {
     return true;
   }
   for (int i = 0; i < hiddenBranches.size(); i++) {
     String hiddenBranch = hiddenBranches.get(i);
     String hBranch = (String) lm.getElementAt(i);
     if ((hiddenBranch == null) && (hBranch == null)) {
       continue;
     }
     if (hiddenBranch == null) {
       return true;
     }
     if (hBranch == null) {
       return true;
     }
     if (!hiddenBranch.equals(hBranch)) {
       return true;
     }
   }
   return false;
 }