Skip to content

Commit

Permalink
Correct faulty reference to listener constants for Widget
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
HeikoKlare committed Sep 7, 2024
1 parent cd11f5e commit ca113ca
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 <code>handleEvent()</code> 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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 <code>handleEvent()</code> 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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 <code>handleEvent()</code> 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
Expand Down

0 comments on commit ca113ca

Please sign in to comment.