Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfbecker2010-08-09 19:46:40 +0000
committerfbecker2010-08-09 19:46:40 +0000
commit40bd3136fd16f79de80ed79337f73341e19b10ce (patch)
tree1687e9837961caba33fdbd967d45df778b445dc3 /org.eclipse.mylyn.bugzilla.ui
parent519e0789401dca14290a20f53cfd758c27d4d315 (diff)
downloadorg.eclipse.mylyn.tasks-40bd3136fd16f79de80ed79337f73341e19b10ce.tar.gz
org.eclipse.mylyn.tasks-40bd3136fd16f79de80ed79337f73341e19b10ce.tar.xz
org.eclipse.mylyn.tasks-40bd3136fd16f79de80ed79337f73341e19b10ce.zip
ASSIGNED - bug 320202: [patch] add support for use... administation parameters
https://bugs.eclipse.org/bugs/show_bug.cgi?id=320202
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
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/messages.properties14
2 files changed, 31 insertions, 29 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 0d3da3a53..30e830197 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
@@ -255,10 +255,6 @@ public class BugzillaRepositorySettingsPage extends AbstractRepositorySettingsPa
xmlrpc.setToolTipText(Messages.BugzillaRepositorySettingsPage_RequiresBugzilla3_6);
useXMLRPCstatusTransitions = new Button(parent, SWT.CHECK | SWT.LEFT);
useXMLRPCstatusTransitions.setText(Messages.BugzillaRepositorySettingsPage_UseXmlRpc);
- if (repository != null) {
- boolean shortLogin = Boolean.parseBoolean(repository.getProperty(IBugzillaConstants.BUGZILLA_USE_XMLRPC));
- useXMLRPCstatusTransitions.setSelection(shortLogin);
- }
Label descriptorLabel = new Label(parent, SWT.NONE);
descriptorLabel.setText(Messages.BugzillaRepositorySettingsPage_descriptor_file);
@@ -369,31 +365,37 @@ public class BugzillaRepositorySettingsPage extends AbstractRepositorySettingsPa
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);
+ useclassification.setSelection(!value);
value = Boolean.parseBoolean(myTemplate.getAttribute("usetargetmilestone")); //$NON-NLS-1$
- usetargetmilestone.setSelection(value);
+ usetargetmilestone.setSelection(!value);
value = Boolean.parseBoolean(myTemplate.getAttribute("useqacontact")); //$NON-NLS-1$
- useqacontact.setSelection(value);
+ useqacontact.setSelection(!value);
value = Boolean.parseBoolean(myTemplate.getAttribute("usestatuswhiteboard")); //$NON-NLS-1$
- usestatuswhiteboard.setSelection(value);
+ usestatuswhiteboard.setSelection(!value);
value = Boolean.parseBoolean(myTemplate.getAttribute("usebugaliases")); //$NON-NLS-1$
- usebugaliases.setSelection(value);
+ usebugaliases.setSelection(!value);
value = Boolean.parseBoolean(myTemplate.getAttribute("use_see_also")); //$NON-NLS-1$
- use_see_also.setSelection(value);
+ use_see_also.setSelection(!value);
+
+ value = Boolean.parseBoolean(myTemplate.getAttribute("useXMLRPC")); //$NON-NLS-1$
+ useXMLRPCstatusTransitions.setSelection(value);
} else {
// we use the repository values
boolean value = Boolean.parseBoolean(repository.getProperty(IBugzillaConstants.BUGZILLA_PARAM_USECLASSIFICATION));
- useclassification.setSelection(value);
+ useclassification.setSelection(!value);
value = Boolean.parseBoolean(repository.getProperty(IBugzillaConstants.BUGZILLA_PARAM_USETARGETMILESTONE));
- usetargetmilestone.setSelection(value);
+ usetargetmilestone.setSelection(!value);
value = Boolean.parseBoolean(repository.getProperty(IBugzillaConstants.BUGZILLA_PARAM_USEQACONTACT));
- useqacontact.setSelection(value);
+ useqacontact.setSelection(!value);
value = Boolean.parseBoolean(repository.getProperty(IBugzillaConstants.BUGZILLA_PARAM_USESTATUSWHITEBOARD));
- usestatuswhiteboard.setSelection(value);
+ usestatuswhiteboard.setSelection(!value);
value = Boolean.parseBoolean(repository.getProperty(IBugzillaConstants.BUGZILLA_PARAM_USEBUGALIASES));
- usebugaliases.setSelection(value);
+ usebugaliases.setSelection(!value);
value = Boolean.parseBoolean(repository.getProperty(IBugzillaConstants.BUGZILLA_PARAM_USE_SEE_ALSO));
- use_see_also.setSelection(value);
+ use_see_also.setSelection(!value);
+
+ value = Boolean.parseBoolean(repository.getProperty(IBugzillaConstants.BUGZILLA_USE_XMLRPC));
+ useXMLRPCstatusTransitions.setSelection(value);
}
}
}
@@ -470,17 +472,17 @@ public class BugzillaRepositorySettingsPage extends AbstractRepositorySettingsPa
repository.removeProperty(IBugzillaConstants.BUGZILLA_DEF_OS);
}
repository.setProperty(IBugzillaConstants.BUGZILLA_PARAM_USECLASSIFICATION,
- Boolean.toString(useclassification.getSelection()));
+ Boolean.toString(!useclassification.getSelection()));
repository.setProperty(IBugzillaConstants.BUGZILLA_PARAM_USETARGETMILESTONE,
- Boolean.toString(usetargetmilestone.getSelection()));
+ Boolean.toString(!usetargetmilestone.getSelection()));
repository.setProperty(IBugzillaConstants.BUGZILLA_PARAM_USEQACONTACT,
- Boolean.toString(useqacontact.getSelection()));
+ Boolean.toString(!useqacontact.getSelection()));
repository.setProperty(IBugzillaConstants.BUGZILLA_PARAM_USESTATUSWHITEBOARD,
- Boolean.toString(usestatuswhiteboard.getSelection()));
+ Boolean.toString(!usestatuswhiteboard.getSelection()));
repository.setProperty(IBugzillaConstants.BUGZILLA_PARAM_USEBUGALIASES,
- Boolean.toString(usebugaliases.getSelection()));
+ Boolean.toString(!usebugaliases.getSelection()));
repository.setProperty(IBugzillaConstants.BUGZILLA_PARAM_USE_SEE_ALSO,
- Boolean.toString(use_see_also.getSelection()));
+ Boolean.toString(!use_see_also.getSelection()));
}
@Override
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/messages.properties b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/messages.properties
index b6e08e459..7b9b6902f 100644
--- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/messages.properties
+++ b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/messages.properties
@@ -30,7 +30,7 @@ BugzillaQueryTypeWizardPage_Select_from_the_available_query_types=Select from th
BugzillaRepositorySettingsPage_All=All
BugzillaRepositorySettingsPage_AutodetectWorkflow=Autodetect workflow:
BugzillaRepositorySettingsPage_AUTOTETECT_PLATFORM_AND_OS=Autodetect platform and os
-BugzillaRepositorySettingsPage_admin_parameter=admin parameter
+BugzillaRepositorySettingsPage_admin_parameter=Task Editor Attributes to Suppress
BugzillaRepositorySettingsPage_available_once_repository_created=Available once repository has been created.
BugzillaRepositorySettingsPage_Browse_descriptor=Browse
BugzillaRepositorySettingsPage_bugzilla_repository_settings=Bugzilla Repository Settings
@@ -46,12 +46,12 @@ BugzillaRepositorySettingsPage_Retrieving_repository_configuration=Retrieving re
BugzillaRepositorySettingsPage_SelectDescriptorFile=Select descriptor file
BugzillaRepositorySettingsPage_Server_URL_is_invalid=Server URL is invalid.
BugzillaRepositorySettingsPage_supports_bugzilla_X=Supports Bugzilla {0}
-BugzillaRepositorySettingsPage_use_see_also=use_see_also
-BugzillaRepositorySettingsPage_usebugaliases=usebugaliases
-BugzillaRepositorySettingsPage_useclassification=useclassification
-BugzillaRepositorySettingsPage_useqacontact=useqacontact
-BugzillaRepositorySettingsPage_usestatuswhiteboard=usestatuswhiteboard
-BugzillaRepositorySettingsPage_usetargetmilestone=usetargetmilestone
+BugzillaRepositorySettingsPage_use_see_also=See also
+BugzillaRepositorySettingsPage_usebugaliases=Bug Aliases
+BugzillaRepositorySettingsPage_useclassification=Classification
+BugzillaRepositorySettingsPage_useqacontact=QA Contact
+BugzillaRepositorySettingsPage_usestatuswhiteboard=Status Whiteboard
+BugzillaRepositorySettingsPage_usetargetmilestone=Target Milestone
BugzillaRepositorySettingsPage_UseXmlRpc=Use xmlrpc.cgi
BugzillaRepositorySettingsPage_Validating_server_settings=Validating server settings
BugzillaTaskAttachmentPage_Advanced=Advanced

Back to the top