Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfbecker2011-01-16 16:20:40 +0000
committerfbecker2011-01-16 16:20:40 +0000
commitbdd54def1244f14a196f50b4d7f061c97d9bcc54 (patch)
tree12366221c45fa5dd25b4226ef30ccc5b542520ba
parent460c8f5d08e5eac9412e65b7303d68fbd0fd7528 (diff)
downloadorg.eclipse.mylyn.tasks-bdd54def1244f14a196f50b4d7f061c97d9bcc54.tar.gz
org.eclipse.mylyn.tasks-bdd54def1244f14a196f50b4d7f061c97d9bcc54.tar.xz
org.eclipse.mylyn.tasks-bdd54def1244f14a196f50b4d7f061c97d9bcc54.zip
ASSIGNED - bug 333779: better way to handle configuration changes
https://bugs.eclipse.org/bugs/show_bug.cgi?id=333779
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaRepositorySettingsPage.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaRepositorySettingsPage.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaRepositorySettingsPage.java
index da7aa9b7d..36bcf105f 100644
--- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaRepositorySettingsPage.java
+++ b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaRepositorySettingsPage.java
@@ -461,14 +461,16 @@ public class BugzillaRepositorySettingsPage extends AbstractRepositorySettingsPa
AuthenticationCredentials httpAuth = repository.getCredentials(AuthenticationType.HTTP);
AuthenticationCredentials proxyAuth = repository.getCredentials(AuthenticationType.PROXY);
boolean changed = repository.getCharacterEncoding() != getCharacterEncoding();
+ String descriptorFileName = repository.getProperty(IBugzillaConstants.BUGZILLA_DESCRIPTOR_FILE);
+ if (descriptorFileName == null) {
+ descriptorFileName = ""; //$NON-NLS-1$
+ }
changed = changed || repository.getSavePassword(AuthenticationType.REPOSITORY) != getSavePassword();
changed = changed || repositoryAuth.getUserName().compareTo(getUserName()) != 0;
changed = changed || repositoryAuth.getPassword().compareTo(getPassword()) != 0;
changed = changed
|| Boolean.parseBoolean(repository.getProperty(IBugzillaConstants.BUGZILLA_USE_XMLRPC)) != useXMLRPCstatusTransitions.getSelection();
- changed = changed
- || descriptorFile.getText().compareTo(
- repository.getProperty(IBugzillaConstants.BUGZILLA_DESCRIPTOR_FILE)) != 0;
+ changed = changed || descriptorFileName.compareTo(descriptorFile.getText()) != 0;
if (httpAuth != null) {
changed = changed || httpAuth.getUserName().compareTo(getHttpAuthUserId()) != 0
|| httpAuth.getPassword().compareTo(getHttpAuthPassword()) != 0

Back to the top