[hg] main-silver: saving a bugzilla query before refreshing it t...

  • From: Ondrej Vrabec < >
  • To:
  • Subject: [hg] main-silver: saving a bugzilla query before refreshing it t...
  • Date: Tue, 07 May 2013 18:45:48 -0700

changeset 031e8fd71a41 in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/031e8fd71a41
description:
        saving a bugzilla query before refreshing it to keep query 
configuration data consistent

diffstat:

 bugzilla/src/org/netbeans/modules/bugzilla/query/BugzillaQuery.java |  10 
+++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (20 lines):

diff --git 
a/bugzilla/src/org/netbeans/modules/bugzilla/query/BugzillaQuery.java 
b/bugzilla/src/org/netbeans/modules/bugzilla/query/BugzillaQuery.java
--- a/bugzilla/src/org/netbeans/modules/bugzilla/query/BugzillaQuery.java
+++ b/bugzilla/src/org/netbeans/modules/bugzilla/query/BugzillaQuery.java
@@ -216,7 +216,15 @@
                                 iquery = runningQuery;
                             }
                         }
-                        runningQuery.setUrl(url.toString());
+                        String queryUrl = url.toString();
+                        if (isSaved() && !queryUrl.equals(iquery.getUrl())) {
+                            // running a mylyn query automatically saves the 
parameters
+                            // and refreshes the task dashboard
+                            // until it is solved somehow, let's just save 
also in bugzilla config
+                            // so we have consistent data
+                            repository.saveQuery(BugzillaQuery.this);
+                        }
+                        runningQuery.setUrl(queryUrl);
                         SynchronizeQueryCommand queryCmd = 
MylynSupport.getInstance().getMylynFactory()
                                 
.createSynchronizeQueriesCommand(repository.getTaskRepository(), 
runningQuery);
                         QueryProgressListener list = new 
QueryProgressListener();

[hg] main-silver: saving a bugzilla query before refreshing it t...

Ondrej Vrabec 05/08/2013

Project Features

About this Project

ConnectedDeveloper was started in November 2009, is owned by tpavek, and has 66 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20131025.e7cbc9d). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close