You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by mb...@apache.org on 2022/10/02 00:58:10 UTC

[netbeans] branch master updated: Fix: NPE from Gradle build actions dialog reset button Enable/disable the button as needed.

This is an automated email from the ASF dual-hosted git repository.

mbien pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git


The following commit(s) were added to refs/heads/master by this push:
     new 9d48d82fe6 Fix: NPE from Gradle build actions dialog reset button Enable/disable the button as needed.
     new d27cbbce19 Merge pull request #4703 from errael/Fix_NPE_FromGradleBuildActionsDialog
9d48d82fe6 is described below

commit 9d48d82fe628d2d8ebbff517256c948cc5992691
Author: Ernie Rael <er...@raelity.com>
AuthorDate: Thu Sep 29 09:33:40 2022 -0700

    Fix: NPE from Gradle build actions dialog reset button
    Enable/disable the button as needed.
---
 .../org/netbeans/modules/gradle/customizer/BuildActionsCustomizer.java  | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/extide/gradle/src/org/netbeans/modules/gradle/customizer/BuildActionsCustomizer.java b/extide/gradle/src/org/netbeans/modules/gradle/customizer/BuildActionsCustomizer.java
index bacfc49edf..b2c77d3053 100644
--- a/extide/gradle/src/org/netbeans/modules/gradle/customizer/BuildActionsCustomizer.java
+++ b/extide/gradle/src/org/netbeans/modules/gradle/customizer/BuildActionsCustomizer.java
@@ -126,6 +126,7 @@ public class BuildActionsCustomizer extends javax.swing.JPanel {
         });
         cbConfiguration.setModel(configModel);
         cbConfiguration.addActionListener(this::configurationChanged);
+        btRemove.setEnabled(getSelectedMapping() != null);
     }
     
     private void configurationChanged(ActionEvent e) {
@@ -519,6 +520,7 @@ public class BuildActionsCustomizer extends javax.swing.JPanel {
         autoApply = true;
         GradleExecConfiguration cfg = (GradleExecConfiguration)cbConfiguration.getSelectedItem();
         btnDisableAction.setEnabled(!cfg.isDefault());
+        btRemove.setEnabled(getSelectedMapping() != null);
     }
     
     private void btRemoveActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btRemoveActionPerformed


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists