[hg] main-silver: keep the cached query results even if not online

  • From: Ondrej Vrabec < >
  • To:
  • Subject: [hg] main-silver: keep the cached query results even if not online
  • Date: Tue, 13 Aug 2013 13:30:58 -0700

changeset 12e0c0e51d11 in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/12e0c0e51d11
description:
        keep the cached query results even if not online
        - that's what the offline mode means

diffstat:

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

diffs (15 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
@@ -221,6 +221,11 @@
                         repository.getExecutor().execute(queryCmd, 
!autoRefresh);
                         ret[0] = queryCmd.hasFailed();
                         if (ret[0]) {
+                            if (isSaved()) {
+                                for (NbTask t : 
MylynSupport.getInstance().getTasks(runningQuery)) {
+                                    issues.add(t.getTaskId());
+                                }
+                            }
                             return;
                         }
 

[hg] main-silver: keep the cached query results even if not online

Ondrej Vrabec 08/13/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