Skip to content

Commit

Permalink
replace anonymous runnable class with lambda (eclipse-platform#1459)
Browse files Browse the repository at this point in the history
* replace anonymous runnable class with lambda
  • Loading branch information
elsazac authored and amartya4256 committed Feb 8, 2024
1 parent 469ea97 commit 3cd845f
Showing 1 changed file with 7 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -872,18 +872,14 @@ public void processEvent(VerifyEvent e) {
private void filterProposals() {
++ fInvocationCounter;
Control control= fViewer.getTextWidget();
control.getDisplay().asyncExec(new Runnable() {
long fCounter= fInvocationCounter;
@Override
public void run() {

if (fCounter != fInvocationCounter)
return;
if (fInvocationProcessedCounter == fInvocationCounter)
return;
long fCounter= fInvocationCounter;
control.getDisplay().asyncExec(() -> {
if (fCounter != fInvocationCounter)
return;
if (fInvocationProcessedCounter == fInvocationCounter)
return;

doFilterProposals();
}
doFilterProposals();
});
}

Expand Down

0 comments on commit 3cd845f

Please sign in to comment.