Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfbecker2010-08-21 19:37:21 +0000
committerfbecker2010-08-21 19:37:21 +0000
commit20d59681aaa4ae2529a435e1cf148412aec08867 (patch)
treefe3c5f688009b2d0c5e45c6fdbb68b8ec36438ac /org.eclipse.mylyn.bugzilla.ui
parent314d0aa18d3cd5d86e7f6330603df252f720b8e9 (diff)
downloadorg.eclipse.mylyn.tasks-20d59681aaa4ae2529a435e1cf148412aec08867.tar.gz
org.eclipse.mylyn.tasks-20d59681aaa4ae2529a435e1cf148412aec08867.tar.xz
org.eclipse.mylyn.tasks-20d59681aaa4ae2529a435e1cf148412aec08867.zip
ASSIGNED - bug 322867: [patch] [regression] target milestone field disappeared for Eclipse.org bugs
https://bugs.eclipse.org/bugs/show_bug.cgi?id=322867
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.ui')
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaRepositorySettingsPage.java46
1 files changed, 26 insertions, 20 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 9605dab9a..c8694d089 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
@@ -151,7 +151,6 @@ public class BugzillaRepositorySettingsPage extends AbstractRepositorySettingsPa
@Override
protected void createAdditionalControls(Composite parent) {
addRepositoryTemplatesToServerUrlCombo();
-
Label shortLoginLabel = new Label(parent, SWT.NONE);
shortLoginLabel.setText(LABEL_SHORT_LOGINS);
cleanQAContact = new Button(parent, SWT.CHECK | SWT.LEFT);
@@ -360,25 +359,32 @@ public class BugzillaRepositorySettingsPage extends AbstractRepositorySettingsPa
break;
}
}
-
- }
- if (myTemplate != null) {
- // we have an Template but no values in the Repository so we use the Template values
- boolean value = Boolean.parseBoolean(myTemplate.getAttribute("useclassification")); //$NON-NLS-1$
- useclassification.setSelection(!value);
- value = Boolean.parseBoolean(myTemplate.getAttribute("usetargetmilestone")); //$NON-NLS-1$
- usetargetmilestone.setSelection(!value);
- value = Boolean.parseBoolean(myTemplate.getAttribute("useqacontact")); //$NON-NLS-1$
- useqacontact.setSelection(!value);
- value = Boolean.parseBoolean(myTemplate.getAttribute("usestatuswhiteboard")); //$NON-NLS-1$
- usestatuswhiteboard.setSelection(!value);
- value = Boolean.parseBoolean(myTemplate.getAttribute("usebugaliases")); //$NON-NLS-1$
- usebugaliases.setSelection(!value);
- value = Boolean.parseBoolean(myTemplate.getAttribute("use_see_also")); //$NON-NLS-1$
- use_see_also.setSelection(!value);
-
- value = Boolean.parseBoolean(myTemplate.getAttribute("useXMLRPC")); //$NON-NLS-1$
- useXMLRPCstatusTransitions.setSelection(value);
+ if (myTemplate != null) {
+ // we have an Template but no values in the Repository so we use the Template values
+ boolean value = Boolean.parseBoolean(myTemplate.getAttribute("useclassification")); //$NON-NLS-1$
+ useclassification.setSelection(!value);
+ value = Boolean.parseBoolean(myTemplate.getAttribute("usetargetmilestone")); //$NON-NLS-1$
+ usetargetmilestone.setSelection(!value);
+ value = Boolean.parseBoolean(myTemplate.getAttribute("useqacontact")); //$NON-NLS-1$
+ useqacontact.setSelection(!value);
+ value = Boolean.parseBoolean(myTemplate.getAttribute("usestatuswhiteboard")); //$NON-NLS-1$
+ usestatuswhiteboard.setSelection(!value);
+ value = Boolean.parseBoolean(myTemplate.getAttribute("usebugaliases")); //$NON-NLS-1$
+ usebugaliases.setSelection(!value);
+ value = Boolean.parseBoolean(myTemplate.getAttribute("use_see_also")); //$NON-NLS-1$
+ use_see_also.setSelection(!value);
+
+ value = Boolean.parseBoolean(myTemplate.getAttribute("useXMLRPC")); //$NON-NLS-1$
+ useXMLRPCstatusTransitions.setSelection(value);
+ } else {
+ useclassification.setSelection(true);
+ usetargetmilestone.setSelection(false);
+ useqacontact.setSelection(false);
+ usestatuswhiteboard.setSelection(false);
+ usebugaliases.setSelection(true);
+ use_see_also.setSelection(true);
+ useXMLRPCstatusTransitions.setSelection(true);
+ }
} else {
// we use the repository values
boolean value = Boolean.parseBoolean(repository.getProperty(IBugzillaConstants.BUGZILLA_PARAM_USECLASSIFICATION));

Back to the top