Issue #1328 Fixed invalid thread access issue when parm inventory changes and GridCanvas needs to redraw
Change-Id: I8207e9e3082db861c8040858ef11dc67e63747da Former-commit-id: ba1d1a6bfe57466a6a0fe5864cd87ffefe61a2f8
This commit is contained in:
parent
424c6e0b1b
commit
d7c9ac3b84
1 changed files with 11 additions and 1 deletions
|
@ -76,6 +76,14 @@ import com.raytheon.viz.gfe.temporaleditor.TemporalEditor;
|
|||
|
||||
public class GridManager implements IGridManager,
|
||||
ISpatialEditorTimeChangedListener {
|
||||
|
||||
private class RedrawRunnable implements Runnable {
|
||||
@Override
|
||||
public void run() {
|
||||
redraw();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Job to scroll the grid manager horizontally
|
||||
*/
|
||||
|
@ -246,6 +254,8 @@ public class GridManager implements IGridManager,
|
|||
|
||||
private boolean selectionActive;
|
||||
|
||||
private Runnable redraw = new RedrawRunnable();
|
||||
|
||||
/**
|
||||
* @return the selectionActive
|
||||
*/
|
||||
|
@ -801,6 +811,6 @@ public class GridManager implements IGridManager,
|
|||
@Override
|
||||
public void spatialEditorTimeChanged(Date date) {
|
||||
syncSelectTR(date);
|
||||
redraw();
|
||||
VizApp.runAsync(redraw);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue