-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -191,10 +191,12 @@ public int compare(Tuple o1, Tuple o2) { | |
|
||
@Override | ||
public void textChanged(TextEvent event) { | ||
if (event.getViewerRedrawState() && fCachedTextWidget.getLineCount() != previousLineCount) { | ||
previousLineCount= fCachedTextWidget.getLineCount(); | ||
postRedraw(); | ||
} | ||
fCachedTextWidget.getDisplay().execute(() -> { | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
mickaelistria
Author
Owner
|
||
if (event.getViewerRedrawState() && fCachedTextWidget.getLineCount() != previousLineCount) { | ||
previousLineCount= fCachedTextWidget.getLineCount(); | ||
postRedraw(); | ||
} | ||
}); | ||
} | ||
}; | ||
|
||
|
I can find plenty ITextListener implementations in platform that assume the listener is notified on the UI thread (e.g. performs redraws of the widget). Why do you think this listener here should be notified not on the UI thread in the first place?
Point is: The change here looks wrong and the entire call stack in the ticket is too short to tell which code path let to the listener being invoked on a non-ui thread.