Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfbecker2010-07-12 20:34:43 +0000
committerfbecker2010-07-12 20:34:43 +0000
commite2223742d4bc003420a9110286cb34106ba4589a (patch)
treefab86f8e87cbb6f7c49d316429b03cfcd70860f5 /org.eclipse.mylyn.bugzilla.ui
parente6ca4cf50a4844ad8fd162d85e426d3086300b53 (diff)
downloadorg.eclipse.mylyn.tasks-e2223742d4bc003420a9110286cb34106ba4589a.tar.gz
org.eclipse.mylyn.tasks-e2223742d4bc003420a9110286cb34106ba4589a.tar.xz
org.eclipse.mylyn.tasks-e2223742d4bc003420a9110286cb34106ba4589a.zip
NEW - bug 311966: [patch] create XMLRPC operation for status transition
https://bugs.eclipse.org/bugs/show_bug.cgi?id=311966 commit patch https://bugs.eclipse.org/bugs/attachment.cgi?id=174028
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.java25
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/Messages.java6
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/messages.properties6
3 files changed, 30 insertions, 7 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 cf2b1c496..eb288854b 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
@@ -99,6 +99,8 @@ public class BugzillaRepositorySettingsPage extends AbstractRepositorySettingsPa
private Combo languageSettingCombo;
+ private Button useXMLRPCstatusTransitions;
+
public BugzillaRepositorySettingsPage(TaskRepository taskRepository) {
super(TITLE, DESCRIPTION, taskRepository);
setNeedsAnonymousLogin(true);
@@ -221,6 +223,16 @@ public class BugzillaRepositorySettingsPage extends AbstractRepositorySettingsPa
new Label(parent, SWT.NONE).setText(Messages.BugzillaRepositorySettingsPage_Language_);
languageSettingCombo = new Combo(parent, SWT.DROP_DOWN);
+ Label xmlrpc = new Label(parent, SWT.NONE);
+ xmlrpc.setText(Messages.BugzillaRepositorySettingsPage_AutodetectWorkflow);
+ 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);
GridDataFactory.fillDefaults().align(SWT.BEGINNING, SWT.CENTER).applyTo(descriptorLabel);
@@ -348,13 +360,14 @@ public class BugzillaRepositorySettingsPage extends AbstractRepositorySettingsPa
repository.setProperty(IBugzillaConstants.REPOSITORY_SETTING_SHORT_LOGIN,
String.valueOf(cleanQAContact.getSelection()));
repository.setProperty(IBugzillaConstants.BUGZILLA_LANGUAGE_SETTING, languageSettingCombo.getText());
- if (descriptorFile != null) {
+ repository.setProperty(IBugzillaConstants.BUGZILLA_USE_XMLRPC,
+ Boolean.toString(useXMLRPCstatusTransitions.getSelection()));
+ if (oldDescriptorFile == null || !descriptorFile.getText().equals(oldDescriptorFile)) {
repository.setProperty(IBugzillaConstants.BUGZILLA_DESCRIPTOR_FILE, descriptorFile.getText());
- if (oldDescriptorFile != null && !descriptorFile.getText().equals(oldDescriptorFile)) {
- if (repositoryConfiguration != null) {
- repositoryConfiguration.setValidTransitions(descriptorFile.getText());
- }
- }
+ }
+ if (repositoryConfiguration != null) {
+ repositoryConfiguration.setValidTransitions(descriptorFile.getText(),
+ useXMLRPCstatusTransitions.getSelection());
}
if (!autodetectPlatformOS.getSelection()) {
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/Messages.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/Messages.java
index b845fa2b6..890c025b4 100644
--- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/Messages.java
+++ b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/Messages.java
@@ -59,6 +59,8 @@ public class Messages extends NLS {
public static String BugzillaRepositorySettingsPage_All;
+ public static String BugzillaRepositorySettingsPage_AutodetectWorkflow;
+
public static String BugzillaRepositorySettingsPage_AUTOTETECT_PLATFORM_AND_OS;
public static String BugzillaRepositorySettingsPage_available_once_repository_created;
@@ -81,6 +83,8 @@ public class Messages extends NLS {
public static String BugzillaRepositorySettingsPage_override_auto_detection_of_platform;
+ public static String BugzillaRepositorySettingsPage_RequiresBugzilla3_6;
+
public static String BugzillaRepositorySettingsPage_Retrieving_repository_configuration;
public static String BugzillaRepositorySettingsPage_SelectDescriptorFile;
@@ -89,6 +93,8 @@ public class Messages extends NLS {
public static String BugzillaRepositorySettingsPage_supports_bugzilla_X;
+ public static String BugzillaRepositorySettingsPage_UseXmlRpc;
+
public static String BugzillaRepositorySettingsPage_Validating_server_settings;
public static String BugzillaTaskAttachmentPage_Advanced;
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 26960404a..70bd1f442 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
@@ -17,6 +17,7 @@ BugzillaCustomQueryDialog_Query_URL=Query URL
BugzillaCustomQueryWizardPage_Create_query_from_URL=Create query from URL
BugzillaCustomQueryWizardPage_Enter_the_title_and_URL_for_the_query=Enter the title and URL for the query
+BugzillaCustomQueryWizardPage_No_Valid_Buglist_URL=Please specify a valid Buglist URL (../buglist.cgi)
BugzillaCustomQueryWizardPage_Please_specify_Query_URL=Please specify Query URL
BugzillaCustomQueryWizardPage_Query_Title=&Query Title:
BugzillaCustomQueryWizardPage_Query_URL=Query &URL
@@ -27,20 +28,23 @@ BugzillaQueryTypeWizardPage_Create_query_using_form=Cre&ate query using form
BugzillaQueryTypeWizardPage_Select_from_the_available_query_types=Select from the available query types.
BugzillaRepositorySettingsPage_All=All
+BugzillaRepositorySettingsPage_AutodetectWorkflow=Autodetect workflow:
BugzillaRepositorySettingsPage_AUTOTETECT_PLATFORM_AND_OS=Autodetect platform and os
BugzillaRepositorySettingsPage_available_once_repository_created=Available once repository has been created.
BugzillaRepositorySettingsPage_Browse_descriptor=Browse
BugzillaRepositorySettingsPage_bugzilla_repository_settings=Bugzilla Repository Settings
BugzillaRepositorySettingsPage_example_do_not_include=\nExample: https://bugs.eclipse.org/bugs (do not include index.cgi)
BugzillaRepositorySettingsPage_Language_=Language:
-BugzillaRepositorySettingsPage_descriptor_file=Description file:
+BugzillaRepositorySettingsPage_descriptor_file=Workflow description file:
BugzillaRepositorySettingsPage_DescriptorCannotBeApplied=<Not available -- please initialize repository.>
BugzillaRepositorySettingsPage_DescriptorFileNotExists=Descriptor File does not exist
BugzillaRepositorySettingsPage_local_users_enabled=Local users enabled:
BugzillaRepositorySettingsPage_override_auto_detection_of_platform=Override auto detection of Platform and OS for new bug reports.
+BugzillaRepositorySettingsPage_RequiresBugzilla3_6=Requires Bugzilla > 3.6
BugzillaRepositorySettingsPage_Retrieving_repository_configuration=Retrieving repository configuration
BugzillaRepositorySettingsPage_SelectDescriptorFile=Select descriptor file
BugzillaRepositorySettingsPage_Server_URL_is_invalid=Server URL is invalid.
BugzillaRepositorySettingsPage_supports_bugzilla_X=Supports Bugzilla {0}
+BugzillaRepositorySettingsPage_UseXmlRpc=Use xmlrpc.cgi
BugzillaRepositorySettingsPage_Validating_server_settings=Validating server settings
BugzillaTaskAttachmentPage_Advanced=Advanced

Back to the top