From ca113ca06e4e50bf46056fa46ef45f77998293ac Mon Sep 17 00:00:00 2001 From: Heiko Klare Date: Sat, 7 Sep 2024 09:46:41 +0200 Subject: [PATCH] Correct faulty reference to listener constants for Widget Widget#addListener(int, Listener) currently states that event constants are defined in the SWTError class, but these constants are defined in the SWT class. This change fixes the faulty reference. --- .../Eclipse SWT/cocoa/org/eclipse/swt/widgets/Widget.java | 2 +- .../Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java | 2 +- .../Eclipse SWT/win32/org/eclipse/swt/widgets/Widget.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Widget.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Widget.java index f6030de3579..5e900f424ec 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Widget.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Widget.java @@ -446,7 +446,7 @@ boolean resignFirstResponder (long id, long sel) { * be notified when an event of the given type occurs. When the * event does occur in the widget, the listener is notified by * sending it the handleEvent() message. The event - * type is one of the event constants defined in class {@link SWTError}. + * type is one of the event constants defined in class {@link SWT}. * * @param eventType the type of event to listen for * @param listener the listener which should be notified when the event occurs diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java index 72b8351f0b0..4f5f8e7a9b7 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java @@ -307,7 +307,7 @@ void _addListener (int eventType, Listener listener) { * be notified when an event of the given type occurs. When the * event does occur in the widget, the listener is notified by * sending it the handleEvent() message. The event - * type is one of the event constants defined in class {@link SWTError}. + * type is one of the event constants defined in class {@link SWT}. * * @param eventType the type of event to listen for * @param listener the listener which should be notified when the event occurs diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Widget.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Widget.java index bf8020b1ef5..ccee2e698db 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Widget.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Widget.java @@ -202,7 +202,7 @@ void _removeListener (int eventType, Listener listener) { * be notified when an event of the given type occurs. When the * event does occur in the widget, the listener is notified by * sending it the handleEvent() message. The event - * type is one of the event constants defined in class {@link SWTError}. + * type is one of the event constants defined in class {@link SWT}. * * @param eventType the type of event to listen for * @param listener the listener which should be notified when the event occurs