示例#1
0
 /**
  * Check if fields has been modified with respect to settings object
  *
  * @param settings the settings to load
  */
 public boolean isModified(@NotNull GitVcsSettings settings) {
   return !settings.getAppSettings().getPathToGit().equals(myGitField.getText())
       || (settings.isIdeaSsh() != IDEA_SSH.equals(mySSHExecutableComboBox.getSelectedItem()))
       || !crlfPolicyItem(settings).equals(myConvertTextFilesComboBox.getSelectedItem());
 }
示例#2
0
 /**
  * Load settings into the configuration panel
  *
  * @param settings the settings to load
  */
 public void load(@NotNull GitVcsSettings settings) {
   myGitField.setText(settings.getAppSettings().getPathToGit());
   mySSHExecutableComboBox.setSelectedItem(settings.isIdeaSsh() ? IDEA_SSH : NATIVE_SSH);
   myConvertTextFilesComboBox.setSelectedItem(crlfPolicyItem(settings));
 }