From 28c48923b729b3cf4818cbafbbb98f71e13d1d5d Mon Sep 17 00:00:00 2001 From: Hannes Wellmann Date: Fri, 21 Jun 2024 20:00:20 +0200 Subject: [PATCH] Use Widget.removeTypedListener() in CheckTableCombo --- .../widgets/checktablecombo/CheckTableCombo.java | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/widgets/tablecombo/org.eclipse.nebula.widgets.tablecombo/src/org/eclipse/nebula/widgets/checktablecombo/CheckTableCombo.java b/widgets/tablecombo/org.eclipse.nebula.widgets.tablecombo/src/org/eclipse/nebula/widgets/checktablecombo/CheckTableCombo.java index 57aebe72a..b1fa02619 100644 --- a/widgets/tablecombo/org.eclipse.nebula.widgets.tablecombo/src/org/eclipse/nebula/widgets/checktablecombo/CheckTableCombo.java +++ b/widgets/tablecombo/org.eclipse.nebula.widgets.tablecombo/src/org/eclipse/nebula/widgets/checktablecombo/CheckTableCombo.java @@ -1677,7 +1677,7 @@ public void removeModifyListener(final ModifyListener listener) { if (listener == null) { SWT.error(SWT.ERROR_NULL_ARGUMENT); } - this.removeListener(SWT.Modify, listener); + this.removeTypedListener(SWT.Modify, listener); } /** @@ -1699,12 +1699,8 @@ public void removeModifyListener(final ModifyListener listener) { * @see #addSelectionListener */ public void removeSelectionListener(final SelectionListener listener) { - checkWidget(); - if (listener == null) { - SWT.error(SWT.ERROR_NULL_ARGUMENT); - } - this.removeListener(SWT.Selection, listener); - this.removeListener(SWT.DefaultSelection, listener); + this.removeTypedListener(SWT.Selection, listener); + this.removeTypedListener(SWT.DefaultSelection, listener); } /** @@ -1728,11 +1724,7 @@ public void removeSelectionListener(final SelectionListener listener) { * @since 3.3 */ public void removeVerifyListener(final VerifyListener listener) { - checkWidget(); - if (listener == null) { - SWT.error(SWT.ERROR_NULL_ARGUMENT); - } - this.removeListener(SWT.Verify, listener); + this.removeTypedListener(SWT.Verify, listener); } /**