From 33e56f78156cc6de03e1f1f87167d01f3d08d0a5 Mon Sep 17 00:00:00 2001 From: Michael Keppler Date: Mon, 12 Dec 2022 21:31:32 +0100 Subject: [PATCH] fix #430: set unused button invisible Previously that button was just not layouted in the container widget, but it was actually usable. Now set the widget to invisible, thereby removing it from the tab key cycling and from the button click listener. --- .../ui/config/CheckConfigurationWorkingSetEditor.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/net.sf.eclipsecs.ui/src/net/sf/eclipsecs/ui/config/CheckConfigurationWorkingSetEditor.java b/net.sf.eclipsecs.ui/src/net/sf/eclipsecs/ui/config/CheckConfigurationWorkingSetEditor.java index f63515700..50088faad 100644 --- a/net.sf.eclipsecs.ui/src/net/sf/eclipsecs/ui/config/CheckConfigurationWorkingSetEditor.java +++ b/net.sf.eclipsecs.ui/src/net/sf/eclipsecs/ui/config/CheckConfigurationWorkingSetEditor.java @@ -356,6 +356,9 @@ private Control createButtonBar(Composite parent) { formData.right = new FormAttachment(100); mDefaultButton.setLayoutData(formData); } + else { + mDefaultButton.setVisible(false); + } mExportButton = new Button(rightButtons, SWT.PUSH); mExportButton.setText(Messages.CheckstylePreferencePage_btnExport);