[hg] main-silver: #231654 - [Export diff patch] widgets should o...

  • From: Ondrej Vrabec < >
  • To:
  • Subject: [hg] main-silver: #231654 - [Export diff patch] widgets should o...
  • Date: Tue, 25 Jun 2013 21:08:39 -0700

changeset c4c4bbbfddb7 in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/c4c4bbbfddb7
description:
        #231654 - [Export diff patch] widgets should only be enabled when 
their radiobutton is checked

diffstat:

 
bugtracking.bridge/src/org/netbeans/modules/bugtracking/bridge/exportdiff/AttachPanel.java
 |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (25 lines):

diff --git 
a/bugtracking.bridge/src/org/netbeans/modules/bugtracking/bridge/exportdiff/AttachPanel.java
 
b/bugtracking.bridge/src/org/netbeans/modules/bugtracking/bridge/exportdiff/AttachPanel.java
--- 
a/bugtracking.bridge/src/org/netbeans/modules/bugtracking/bridge/exportdiff/AttachPanel.java
+++ 
b/bugtracking.bridge/src/org/netbeans/modules/bugtracking/bridge/exportdiff/AttachPanel.java
@@ -207,18 +207,19 @@
     private javax.swing.JLabel repositoryLabel;
     // End of variables declaration//GEN-END:variables
 
+    @Override
     public void itemStateChanged(ItemEvent e) {
+        if (repositoryComboBox.isEnabled()) {
         enableFields();
+        }
         if(e.getStateChange() == ItemEvent.SELECTED) {
             Object item = e.getItem();
             if(item instanceof Repository) {
                 Repository repo = (Repository) item;
-                if(repo != null) {
                     qs.setRepository(repo);
                 }
             }
         }
-    }
 
     @Override
     public void addNotify() {

[hg] main-silver: #231654 - [Export diff patch] widgets should o...

Ondrej Vrabec 06/26/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