[hg] main-silver: minor cleanup

  • From: Tomas Stupka < >
  • To:
  • Subject: [hg] main-silver: minor cleanup
  • Date: Thu, 04 Apr 2013 00:31:52 -0700

changeset 7c7ba86b0c6f in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/7c7ba86b0c6f
description:
        minor cleanup

diffstat:

 bugtracking/src/org/netbeans/modules/bugtracking/issuetable/Filter.java      
       |  8 +++-----
 
bugtracking/src/org/netbeans/modules/bugtracking/issuetable/FindInQuerySupport.java
 |  6 ------
 bugtracking/src/org/netbeans/modules/bugtracking/issuetable/IssueTable.java  
       |  1 -
 3 files changed, 3 insertions(+), 12 deletions(-)

diffs (66 lines):

diff --git 
a/bugtracking/src/org/netbeans/modules/bugtracking/issuetable/Filter.java 
b/bugtracking/src/org/netbeans/modules/bugtracking/issuetable/Filter.java
--- a/bugtracking/src/org/netbeans/modules/bugtracking/issuetable/Filter.java
+++ b/bugtracking/src/org/netbeans/modules/bugtracking/issuetable/Filter.java
@@ -71,8 +71,8 @@
     public static Filter getNotSeenFilter(QueryImpl query) {
         return getFilter(query, NotSeenFilter.class);
     }
-    public static Filter getNewFilter(QueryImpl query) {
-        return getFilter(query, NewFilter.class);
+    public static Filter getNewFilter() {
+        return getFilter(null, NewFilter.class);
     }
     public static Filter getObsoleteDateFilter(QueryImpl query) {
         return getFilter(query, ObsoleteDateFilter.class);
@@ -135,9 +135,7 @@
         }
     }
     private static class NewFilter extends Filter {
-        private final QueryImpl query;
-        NewFilter(QueryImpl query) {
-            this.query = query;
+        NewFilter() {
         }
         @Override
         public String getDisplayName() {
diff --git 
a/bugtracking/src/org/netbeans/modules/bugtracking/issuetable/FindInQuerySupport.java
 
b/bugtracking/src/org/netbeans/modules/bugtracking/issuetable/FindInQuerySupport.java
--- 
a/bugtracking/src/org/netbeans/modules/bugtracking/issuetable/FindInQuerySupport.java
+++ 
b/bugtracking/src/org/netbeans/modules/bugtracking/issuetable/FindInQuerySupport.java
@@ -50,7 +50,6 @@
 import javax.swing.ActionMap;
 import javax.swing.event.AncestorEvent;
 import javax.swing.event.AncestorListener;
-import org.netbeans.modules.bugtracking.QueryImpl;
 import org.openide.util.actions.CallbackSystemAction;
 import org.openide.util.actions.SystemAction;
 import org.openide.windows.TopComponent;
@@ -60,7 +59,6 @@
  * @author Tomas Stupka
  */
 class FindInQuerySupport {
-    private QueryImpl query;
     private final FindInQueryBar bar;
     private final AncestorListener ancestorListener;
     private final IssueTable issueTable;
@@ -112,10 +110,6 @@
         return new FindInQuerySupport(issueTable);
     }
 
-    void setQuery(QueryImpl query) {
-        this.query = query;
-    }
-
     FindInQueryBar getFindBar() {
         return bar;
     }
diff --git 
a/bugtracking/src/org/netbeans/modules/bugtracking/issuetable/IssueTable.java 
b/bugtracking/src/org/netbeans/modules/bugtracking/issuetable/IssueTable.java
--- 
a/bugtracking/src/org/netbeans/modules/bugtracking/issuetable/IssueTable.java
+++ 
b/bugtracking/src/org/netbeans/modules/bugtracking/issuetable/IssueTable.java
@@ -201,7 +201,6 @@
         /* find bar */
         findInQuerySupport = FindInQuerySupport.create(this);
         FindInQueryBar findBar = findInQuerySupport.getFindBar();
-        findInQuerySupport.setQuery(query);
         
         initComponents(tableScrollPane, findBar);       
         

[hg] main-silver: minor cleanup

Tomas Stupka 04/04/2013

Project Features

About this Project

ConnectedDeveloper was started in November 2009, is owned by tpavek, and has 64 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