Omaha #3220 - Moved refreshing of table in the UI thread.
Former-commit-id: 7454b39e71eeca348f4f167b8aa70d6ce5253004
This commit is contained in:
parent
08734bb4e1
commit
fd3a6ea199
6 changed files with 37 additions and 10 deletions
|
@ -46,6 +46,7 @@ import com.raytheon.uf.common.monitor.data.CommonConfig;
|
||||||
import com.raytheon.uf.common.status.IUFStatusHandler;
|
import com.raytheon.uf.common.status.IUFStatusHandler;
|
||||||
import com.raytheon.uf.common.status.UFStatus;
|
import com.raytheon.uf.common.status.UFStatus;
|
||||||
import com.raytheon.uf.common.status.UFStatus.Priority;
|
import com.raytheon.uf.common.status.UFStatus.Priority;
|
||||||
|
import com.raytheon.uf.viz.core.VizApp;
|
||||||
import com.raytheon.uf.viz.core.alerts.AlertMessage;
|
import com.raytheon.uf.viz.core.alerts.AlertMessage;
|
||||||
import com.raytheon.uf.viz.core.notification.NotificationMessage;
|
import com.raytheon.uf.viz.core.notification.NotificationMessage;
|
||||||
import com.raytheon.uf.viz.monitor.IMonitor;
|
import com.raytheon.uf.viz.monitor.IMonitor;
|
||||||
|
@ -90,6 +91,7 @@ import com.vividsolutions.jts.geom.Geometry;
|
||||||
* Sep 04, 2014 3220 skorolev Updated configUpdate method and added updateMonitoringArea.
|
* Sep 04, 2014 3220 skorolev Updated configUpdate method and added updateMonitoringArea.
|
||||||
* Sep 23, 2014 3356 njensen Remove unnecessary import
|
* Sep 23, 2014 3356 njensen Remove unnecessary import
|
||||||
* Oct 16, 2014 3220 skorolev Corrected fogConfig assignment.
|
* Oct 16, 2014 3220 skorolev Corrected fogConfig assignment.
|
||||||
|
* Dec 11, 2014 3220 skorolev Moved refreshing of table in the UI thread.
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* </pre>
|
* </pre>
|
||||||
|
@ -318,8 +320,15 @@ public class FogMonitor extends ObsMonitor implements IFogResourceListener {
|
||||||
fogConfig = (FSSObsMonitorConfigurationManager) me.getSource();
|
fogConfig = (FSSObsMonitorConfigurationManager) me.getSource();
|
||||||
updateMonitoringArea();
|
updateMonitoringArea();
|
||||||
if (zoneDialog != null && !zoneDialog.isDisposed()) {
|
if (zoneDialog != null && !zoneDialog.isDisposed()) {
|
||||||
zoneDialog.refreshZoneTableData(obData);
|
VizApp.runAsync(new Runnable() {
|
||||||
fireMonitorEvent(zoneDialog.getClass().getName());
|
|
||||||
|
@Override
|
||||||
|
public void run() {
|
||||||
|
zoneDialog.refreshZoneTableData(obData);
|
||||||
|
fireMonitorEvent(zoneDialog.getClass().getName());
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -51,6 +51,7 @@ import com.raytheon.viz.ui.dialogs.ICloseCallback;
|
||||||
* Oct 16, 2014 3220 skorolev Corrected getInstance() method.
|
* Oct 16, 2014 3220 skorolev Corrected getInstance() method.
|
||||||
* Oct 27, 2014 3667 skorolev Cleaned code.
|
* Oct 27, 2014 3667 skorolev Cleaned code.
|
||||||
* Nov 21, 2014 3841 skorolev Corrected handleOkBtnSelection.
|
* Nov 21, 2014 3841 skorolev Corrected handleOkBtnSelection.
|
||||||
|
* Dec 11, 2014 3220 skorolev Removed unnecessary code.
|
||||||
*
|
*
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
|
@ -126,7 +127,6 @@ public class FogMonitoringAreaConfigDlg extends MonitoringAreaConfigDlg {
|
||||||
private void fireConfigUpdateEvent() {
|
private void fireConfigUpdateEvent() {
|
||||||
final IMonitorConfigurationEvent me = new IMonitorConfigurationEvent(
|
final IMonitorConfigurationEvent me = new IMonitorConfigurationEvent(
|
||||||
configMgr);
|
configMgr);
|
||||||
shell.setCursor(getDisplay().getSystemCursor(SWT.CURSOR_WAIT));
|
|
||||||
Display.getDefault().asyncExec(new Runnable() {
|
Display.getDefault().asyncExec(new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
|
|
@ -42,6 +42,7 @@ import com.raytheon.uf.common.monitor.data.CommonConfig;
|
||||||
import com.raytheon.uf.common.status.IUFStatusHandler;
|
import com.raytheon.uf.common.status.IUFStatusHandler;
|
||||||
import com.raytheon.uf.common.status.UFStatus;
|
import com.raytheon.uf.common.status.UFStatus;
|
||||||
import com.raytheon.uf.common.status.UFStatus.Priority;
|
import com.raytheon.uf.common.status.UFStatus.Priority;
|
||||||
|
import com.raytheon.uf.viz.core.VizApp;
|
||||||
import com.raytheon.uf.viz.core.alerts.AlertMessage;
|
import com.raytheon.uf.viz.core.alerts.AlertMessage;
|
||||||
import com.raytheon.uf.viz.core.notification.NotificationMessage;
|
import com.raytheon.uf.viz.core.notification.NotificationMessage;
|
||||||
import com.raytheon.uf.viz.monitor.IMonitor;
|
import com.raytheon.uf.viz.monitor.IMonitor;
|
||||||
|
@ -87,6 +88,7 @@ import com.vividsolutions.jts.geom.Geometry;
|
||||||
* Apr 28, 2014 3086 skorolev Removed local getMonitorAreaConfig method.
|
* Apr 28, 2014 3086 skorolev Removed local getMonitorAreaConfig method.
|
||||||
* Sep 04, 2014 3220 skorolev Updated configUpdate method and added updateMonitoringArea.
|
* Sep 04, 2014 3220 skorolev Updated configUpdate method and added updateMonitoringArea.
|
||||||
* Oct 16, 2014 3220 skorolev Corrected ssAreaConfig assignment.
|
* Oct 16, 2014 3220 skorolev Corrected ssAreaConfig assignment.
|
||||||
|
* Dec 11, 2014 3220 skorolev Moved refreshing of table in the UI thread.
|
||||||
*
|
*
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
|
@ -357,8 +359,15 @@ public class SafeSeasMonitor extends ObsMonitor implements ISSResourceListener {
|
||||||
ssAreaConfig = (FSSObsMonitorConfigurationManager) me.getSource();
|
ssAreaConfig = (FSSObsMonitorConfigurationManager) me.getSource();
|
||||||
updateMonitoringArea();
|
updateMonitoringArea();
|
||||||
if (zoneDialog != null && !zoneDialog.isDisposed()) {
|
if (zoneDialog != null && !zoneDialog.isDisposed()) {
|
||||||
zoneDialog.refreshZoneTableData(obData);
|
VizApp.runAsync(new Runnable() {
|
||||||
fireMonitorEvent(zoneDialog.getClass().getName());
|
|
||||||
|
@Override
|
||||||
|
public void run() {
|
||||||
|
zoneDialog.refreshZoneTableData(obData);
|
||||||
|
fireMonitorEvent(zoneDialog.getClass().getName());
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -51,6 +51,7 @@ import com.raytheon.viz.ui.dialogs.ICloseCallback;
|
||||||
* Oct 16, 2014 3220 skorolev Corrected getInstance() method.
|
* Oct 16, 2014 3220 skorolev Corrected getInstance() method.
|
||||||
* Oct 27, 2014 3667 skorolev Cleaned code.
|
* Oct 27, 2014 3667 skorolev Cleaned code.
|
||||||
* Nov 21, 2014 3841 skorolev Corrected handleOkBtnSelection.
|
* Nov 21, 2014 3841 skorolev Corrected handleOkBtnSelection.
|
||||||
|
* Dec 11, 2014 3220 skorolev Removed unnecessary code.
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* </pre>
|
* </pre>
|
||||||
|
@ -118,7 +119,6 @@ public class SSMonitoringAreaConfigDlg extends MonitoringAreaConfigDlg {
|
||||||
private void fireConfigUpdateEvent() {
|
private void fireConfigUpdateEvent() {
|
||||||
final IMonitorConfigurationEvent me = new IMonitorConfigurationEvent(
|
final IMonitorConfigurationEvent me = new IMonitorConfigurationEvent(
|
||||||
configMgr);
|
configMgr);
|
||||||
shell.setCursor(getDisplay().getSystemCursor(SWT.CURSOR_WAIT));
|
|
||||||
Display.getDefault().asyncExec(new Runnable() {
|
Display.getDefault().asyncExec(new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
|
|
@ -34,6 +34,7 @@ import com.raytheon.uf.common.monitor.config.FSSObsMonitorConfigurationManager;
|
||||||
import com.raytheon.uf.common.monitor.data.CommonConfig;
|
import com.raytheon.uf.common.monitor.data.CommonConfig;
|
||||||
import com.raytheon.uf.common.status.IUFStatusHandler;
|
import com.raytheon.uf.common.status.IUFStatusHandler;
|
||||||
import com.raytheon.uf.common.status.UFStatus;
|
import com.raytheon.uf.common.status.UFStatus;
|
||||||
|
import com.raytheon.uf.viz.core.VizApp;
|
||||||
import com.raytheon.uf.viz.core.alerts.AlertMessage;
|
import com.raytheon.uf.viz.core.alerts.AlertMessage;
|
||||||
import com.raytheon.uf.viz.core.notification.NotificationMessage;
|
import com.raytheon.uf.viz.core.notification.NotificationMessage;
|
||||||
import com.raytheon.uf.viz.monitor.IMonitor;
|
import com.raytheon.uf.viz.monitor.IMonitor;
|
||||||
|
@ -74,6 +75,7 @@ import com.raytheon.viz.ui.dialogs.ICloseCallback;
|
||||||
* Apr 28, 2014 3086 skorolev Removed local getMonitorAreaConfig method.
|
* Apr 28, 2014 3086 skorolev Removed local getMonitorAreaConfig method.
|
||||||
* Sep 04, 2014 3220 skorolev Updated configUpdate method and added updateMonitoringArea.
|
* Sep 04, 2014 3220 skorolev Updated configUpdate method and added updateMonitoringArea.
|
||||||
* Oct 16, 2014 3220 skorolev Corrected snowConfig assignment.
|
* Oct 16, 2014 3220 skorolev Corrected snowConfig assignment.
|
||||||
|
* Dec 11, 2014 3220 skorolev Moved refreshing of table in the UI thread.
|
||||||
*
|
*
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
|
@ -306,8 +308,15 @@ public class SnowMonitor extends ObsMonitor implements ISnowResourceListener {
|
||||||
snowConfig = (FSSObsMonitorConfigurationManager) me.getSource();
|
snowConfig = (FSSObsMonitorConfigurationManager) me.getSource();
|
||||||
updateMonitoringArea();
|
updateMonitoringArea();
|
||||||
if (zoneDialog != null && !zoneDialog.isDisposed()) {
|
if (zoneDialog != null && !zoneDialog.isDisposed()) {
|
||||||
zoneDialog.refreshZoneTableData(obData);
|
VizApp.runAsync(new Runnable() {
|
||||||
fireMonitorEvent(zoneDialog.getClass().getName());
|
|
||||||
|
@Override
|
||||||
|
public void run() {
|
||||||
|
zoneDialog.refreshZoneTableData(obData);
|
||||||
|
fireMonitorEvent(zoneDialog.getClass().getName());
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -50,7 +50,8 @@ import com.raytheon.viz.ui.dialogs.ICloseCallback;
|
||||||
* Sep 19, 2014 2757 skorolev Updated handlers for dialog buttons.
|
* Sep 19, 2014 2757 skorolev Updated handlers for dialog buttons.
|
||||||
* Oct 16, 2014 3220 skorolev Corrected getInstance() method.
|
* Oct 16, 2014 3220 skorolev Corrected getInstance() method.
|
||||||
* Oct 27, 2014 3667 skorolev Cleaned code.
|
* Oct 27, 2014 3667 skorolev Cleaned code.
|
||||||
* Nov 21, 2014 3841 skorolev Corrected handleOkBtnSelection.
|
* Nov 21, 2014 3841 skorolev Corrected handleOkBtnSelection.
|
||||||
|
* Dec 11, 2014 3220 skorolev Removed unnecessary code.
|
||||||
*
|
*
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
|
@ -150,7 +151,6 @@ public class SnowMonitoringAreaConfigDlg extends MonitoringAreaConfigDlg {
|
||||||
private void fireConfigUpdateEvent() {
|
private void fireConfigUpdateEvent() {
|
||||||
final IMonitorConfigurationEvent me = new IMonitorConfigurationEvent(
|
final IMonitorConfigurationEvent me = new IMonitorConfigurationEvent(
|
||||||
configMgr);
|
configMgr);
|
||||||
shell.setCursor(getDisplay().getSystemCursor(SWT.CURSOR_WAIT));
|
|
||||||
Display.getDefault().asyncExec(new Runnable() {
|
Display.getDefault().asyncExec(new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue