[hg] main-silver: Issue #240017 - New repository link button is ...

  • From: Tomas Stupka < >
  • To:
  • Subject: [hg] main-silver: Issue #240017 - New repository link button is ...
  • Date: Tue, 07 Jan 2014 19:52:44 +0000

changeset 2a351d2073c0 in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/2a351d2073c0
description:
        Issue #240017 - New repository link button is disabled in new task tab

diffstat:

 
bugtracking/src/org/netbeans/modules/bugtracking/ui/issue/IssueTopComponent.java
 |  2 +-
 bugtracking/src/org/netbeans/modules/bugtracking/ui/query/QueryAction.java   
    |  2 +-
 
bugtracking/src/org/netbeans/modules/bugtracking/ui/query/QueryTopComponent.java
 |  2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diffs (36 lines):

diff --git 
a/bugtracking/src/org/netbeans/modules/bugtracking/ui/issue/IssueTopComponent.java
 
b/bugtracking/src/org/netbeans/modules/bugtracking/ui/issue/IssueTopComponent.java
--- 
a/bugtracking/src/org/netbeans/modules/bugtracking/ui/issue/IssueTopComponent.java
+++ 
b/bugtracking/src/org/netbeans/modules/bugtracking/ui/issue/IssueTopComponent.java
@@ -181,7 +181,7 @@
             repositoryComboBox.setRenderer(new RepositoryComboRenderer());
             
repositoryComboBox.setSelectedItem(defaultRepository.getRepository());
             repositoryComboBox.setEnabled(false);
-            newButton.setEnabled(false);
+            newButton.setVisible(false);
             onRepoSelected();
         } else {
             if(defaultRepository == null) {
diff --git 
a/bugtracking/src/org/netbeans/modules/bugtracking/ui/query/QueryAction.java 
b/bugtracking/src/org/netbeans/modules/bugtracking/ui/query/QueryAction.java
--- 
a/bugtracking/src/org/netbeans/modules/bugtracking/ui/query/QueryAction.java
+++ 
b/bugtracking/src/org/netbeans/modules/bugtracking/ui/query/QueryAction.java
@@ -93,7 +93,7 @@
     }
 
     public  static void createNewQuery(RepositoryImpl repositoryToSelect) {
-        openQuery(null, repositoryToSelect, false, QueryMode.EDIT, true);
+        openQuery(null, repositoryToSelect, repositoryToSelect != null, 
QueryMode.EDIT, true);
     }
     
     public static void createNewQuery(RepositoryImpl repositoryToSelect, 
boolean suggestedSelectionOnly) {
diff --git 
a/bugtracking/src/org/netbeans/modules/bugtracking/ui/query/QueryTopComponent.java
 
b/bugtracking/src/org/netbeans/modules/bugtracking/ui/query/QueryTopComponent.java
--- 
a/bugtracking/src/org/netbeans/modules/bugtracking/ui/query/QueryTopComponent.java
+++ 
b/bugtracking/src/org/netbeans/modules/bugtracking/ui/query/QueryTopComponent.java
@@ -210,7 +210,7 @@
 
         if(suggestedSelectionOnly) {
             repositoryComboBox.setEnabled(false);
-            newButton.setEnabled(false);
+            newButton.setVisible(false);
         }
         
         if (query != null) {

[hg] main-silver: Issue #240017 - New repository link button is ...

Tomas Stupka 01/07/2014

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 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close