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
8fc766ab05
commit
d833d917db
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,
|
public class GridManager implements IGridManager,
|
||||||
ISpatialEditorTimeChangedListener {
|
ISpatialEditorTimeChangedListener {
|
||||||
|
|
||||||
|
private class RedrawRunnable implements Runnable {
|
||||||
|
@Override
|
||||||
|
public void run() {
|
||||||
|
redraw();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Job to scroll the grid manager horizontally
|
* Job to scroll the grid manager horizontally
|
||||||
*/
|
*/
|
||||||
|
@ -246,6 +254,8 @@ public class GridManager implements IGridManager,
|
||||||
|
|
||||||
private boolean selectionActive;
|
private boolean selectionActive;
|
||||||
|
|
||||||
|
private Runnable redraw = new RedrawRunnable();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return the selectionActive
|
* @return the selectionActive
|
||||||
*/
|
*/
|
||||||
|
@ -801,6 +811,6 @@ public class GridManager implements IGridManager,
|
||||||
@Override
|
@Override
|
||||||
public void spatialEditorTimeChanged(Date date) {
|
public void spatialEditorTimeChanged(Date date) {
|
||||||
syncSelectTR(date);
|
syncSelectTR(date);
|
||||||
redraw();
|
VizApp.runAsync(redraw);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue