Merge "Issue #1328 Fixed invalid thread access issue when parm inventory changes and GridCanvas needs to redraw" into development

Former-commit-id: 5c772dc93e [formerly 80c743ac8b] [formerly 4867cd2a64] [formerly 5c772dc93e [formerly 80c743ac8b] [formerly 4867cd2a64] [formerly a505d78463 [formerly 4867cd2a64 [formerly 6ae7f9a4947420a6985ecbe2834f9c9fc9f5cac4]]]]
Former-commit-id: a505d78463
Former-commit-id: 3c9215fbc5 [formerly 7b004618b5] [formerly 93b31715757234f76e490ab3f956e4f601a58bbb [formerly ef76ea6d61]]
Former-commit-id: 7f7d5b85868c6816542163cbec3ae6340e6c877b [formerly 50d01007dc]
Former-commit-id: 8d184d92cd
This commit is contained in:
Nate Jensen 2012-12-07 13:32:29 -06:00 committed by Gerrit Code Review
commit a4386c4dcf

View file

@ -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);
} }
} }