Omaha #4474 Fix alert view race conditions again.
Former-commit-id: 5328cf1729f77408e88d35d0fd3d8f31a8b284a6
This commit is contained in:
parent
4891c2dd30
commit
9cce07705d
2 changed files with 11 additions and 2 deletions
|
@ -44,6 +44,7 @@ import org.eclipse.swt.events.SelectionEvent;
|
|||
import org.eclipse.swt.graphics.Point;
|
||||
import org.eclipse.swt.layout.FillLayout;
|
||||
import org.eclipse.swt.widgets.Composite;
|
||||
import org.eclipse.swt.widgets.Display;
|
||||
import org.eclipse.swt.widgets.Menu;
|
||||
import org.eclipse.swt.widgets.MenuItem;
|
||||
import org.eclipse.swt.widgets.Table;
|
||||
|
@ -432,7 +433,11 @@ public class AlertTable extends Composite implements StyleListener {
|
|||
|
||||
@Override
|
||||
public void updateStyle() {
|
||||
getDisplay().asyncExec(new Runnable() {
|
||||
Display display = getDisplay();
|
||||
if (display.isDisposed()) {
|
||||
return;
|
||||
}
|
||||
display.asyncExec(new Runnable() {
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
|
|
|
@ -177,7 +177,11 @@ public class AlertView extends ViewPart implements AlertDestination,
|
|||
|
||||
@Override
|
||||
public void update(final AlertViewPreferences preferences) {
|
||||
Display.getDefault().asyncExec(new Runnable() {
|
||||
Display display = Display.getCurrent();
|
||||
if (display.isDisposed()) {
|
||||
return;
|
||||
}
|
||||
display.asyncExec(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
if (alertTable.isDisposed()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue