Issue #2088 Changes for non-blocking RiverGageDlg, RiverProFcstGrpPointsDlg, RiverProGenParamsDlg and StatesCountiesZonesDlg.

Change-Id: I5f11ffd383622c49dcfbeb91e08904bad3a508b3

Former-commit-id: 31ef6d5563 [formerly 0c3841b243] [formerly 31ef6d5563 [formerly 0c3841b243] [formerly b87c394598 [formerly 769bc48479c0f5d69c54bf1d541ff1f9c89b0330]]]
Former-commit-id: b87c394598
Former-commit-id: 57124228e6 [formerly 24094e19bc]
Former-commit-id: 17d5e0f572
This commit is contained in:
Roger Ferrel 2013-06-12 08:26:14 -05:00
parent 636ac3b196
commit 5935035391
5 changed files with 192 additions and 65 deletions

View file

@ -153,6 +153,10 @@ import com.raytheon.viz.ui.dialogs.ICloseCallback;
* Changes for non-blocking ReferenceFieldsDlg.
* Changes for non-blocking ReferencesDlg.
* Changes for non-blocking ReservoirDlg.
* 06/11/2013 2088 rferrel Changes for non-blocking RiverGageDlg.
* Changes for non-blocking RiverProFcstGrpPointsDlg.
* Changes for non-blocking RiverProGenParamsDlg.
* Changes for non-blocking StatesCountiesZonesDlg.
*
* </pre>
*
@ -220,6 +224,11 @@ public class HydroBaseDlg extends CaveSWTDialog implements IGetSortType,
*/
private final Map<String, DescriptionDlg> descDlgMap = new HashMap<String, DescriptionDlg>();
/**
* Allow one river gage dialog per station.
*/
private final Map<String, RiverGageDlg> riverGageDlgMap = new HashMap<String, RiverGageDlg>();
/**
* Allow one flood category dialog per station.
*/
@ -271,10 +280,15 @@ public class HydroBaseDlg extends CaveSWTDialog implements IGetSortType,
private RadarLocationsDlg radarLocDlg;
/**
* Allow one Reference Field dialog.
* Allow single instance of Reference Field dialog.
*/
private ReferenceFieldsDlg referenceDlg;
/**
* Allow single instance of State/Counties/Zones dialog.
*/
private StatesCountiesZonesDlg sczDlg;
/**
* Allow one References dialog per station.
*/
@ -285,6 +299,16 @@ public class HydroBaseDlg extends CaveSWTDialog implements IGetSortType,
*/
private final Map<String, ReservoirDlg> reservoirDlgMap = new HashMap<String, ReservoirDlg>();
/**
* Allow one instance of the RiverPro General Parameters dialog.
*/
private RiverProGenParamsDlg riverProGen;
/**
* Allow one instance of the RiverPro Forecast Groups/Points dialog.
*/
private RiverProFcstGrpPointsDlg riverProFcst;
/**
* Flood category menu item.
*/
@ -712,9 +736,26 @@ public class HydroBaseDlg extends CaveSWTDialog implements IGetSortType,
riverGageMI.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent event) {
RiverGageDlg riverGageDlg = new RiverGageDlg(shell,
getStationAndName(), getSelectedLocation().getStation());
riverGageDlg.open();
String lid = getSelectedLocation().getStation();
RiverGageDlg riverGageDlg = riverGageDlgMap.get(lid);
if (riverGageDlg == null) {
riverGageDlg = new RiverGageDlg(shell, getStationAndName(),
lid);
riverGageDlg.setCloseCallback(new ICloseCallback() {
@Override
public void dialogClosed(Object returnValue) {
if (returnValue instanceof String) {
String lid = returnValue.toString();
riverGageDlgMap.remove(lid);
}
}
});
riverGageDlgMap.put(lid, riverGageDlg);
riverGageDlg.open();
} else {
riverGageDlg.bringToTop();
}
}
});
@ -1300,9 +1341,12 @@ public class HydroBaseDlg extends CaveSWTDialog implements IGetSortType,
statesCountiesZonesMI.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent event) {
StatesCountiesZonesDlg sczDlg = new StatesCountiesZonesDlg(
shell);
sczDlg.open();
if (sczDlg == null || sczDlg.isDisposed()) {
sczDlg = new StatesCountiesZonesDlg(shell);
sczDlg.open();
} else {
sczDlg.bringToTop();
}
}
});
@ -1314,9 +1358,12 @@ public class HydroBaseDlg extends CaveSWTDialog implements IGetSortType,
riverProGenParamMI.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent event) {
RiverProGenParamsDlg riverProGen = new RiverProGenParamsDlg(
shell);
riverProGen.open();
if (riverProGen == null || riverProGen.isDisposed()) {
riverProGen = new RiverProGenParamsDlg(shell);
riverProGen.open();
} else {
riverProGen.bringToTop();
}
}
});
@ -1326,9 +1373,12 @@ public class HydroBaseDlg extends CaveSWTDialog implements IGetSortType,
riverProForecastMI.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent event) {
RiverProFcstGrpPointsDlg riverProFcst = new RiverProFcstGrpPointsDlg(
shell);
riverProFcst.open();
if (riverProFcst == null || riverProFcst.isDisposed()) {
riverProFcst = new RiverProFcstGrpPointsDlg(shell);
riverProFcst.open();
} else {
riverProFcst.bringToTop();
}
}
});

View file

@ -45,6 +45,9 @@ import org.eclipse.swt.widgets.MessageBox;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Text;
import com.raytheon.uf.common.status.IUFStatusHandler;
import com.raytheon.uf.common.status.UFStatus;
import com.raytheon.uf.common.status.UFStatus.Priority;
import com.raytheon.uf.viz.core.exception.VizException;
import com.raytheon.viz.hydrobase.FcstPointGroupDlg;
import com.raytheon.viz.hydrobase.listeners.IForecastGroupAssignmentListener;
@ -71,6 +74,7 @@ import com.raytheon.viz.ui.dialogs.CaveSWTDialog;
* Mar 29,2012 14463 wkwock Fix max # of char for remark text box to 255
* Also see https://bugs.eclipse.org/bugs/show_bug.cgi?id=43004
* Apr 16,2012 14797 wkwock Change lat/lon from hour minute sec to decimal.
* Jun 11,2013 2088 rferrel Make dialog non-blocking.
*
* </pre>
*
@ -79,6 +83,8 @@ import com.raytheon.viz.ui.dialogs.CaveSWTDialog;
*/
public class RiverGageDlg extends CaveSWTDialog implements
IForecastGroupAssignmentListener {
private final IUFStatusHandler statusHandler = UFStatus
.getHandler(RiverGageDlg.class);
/**
* Control font.
@ -290,10 +296,14 @@ public class RiverGageDlg extends CaveSWTDialog implements
*/
private final String NO_FCST_GROUP_SELECTED = "(Not a Forecast Point)";
/** Original latitude value */
/**
* Original latitude value
*/
private String origLat;
/** Original longitude value */
/**
* Original longitude value
*/
private String origLon;
/**
@ -322,14 +332,20 @@ public class RiverGageDlg extends CaveSWTDialog implements
* Dialog title information.
*/
public RiverGageDlg(Shell parent, String titleInfo, String lid) {
super(parent);
super(parent, SWT.DIALOG_TRIM, CAVE.DO_NOT_BLOCK);
setText("River Gage" + titleInfo);
this.lid = lid;
dateFormat = new SimpleDateFormat("MM/dd/yyyy");
dateFormat.setTimeZone(TimeZone.getTimeZone("UTC"));
setReturnValue(lid);
}
/*
* (non-Javadoc)
*
* @see com.raytheon.viz.ui.dialogs.CaveSWTDialogBase#constructShellLayout()
*/
@Override
protected Layout constructShellLayout() {
// Create the main layout for the shell.
@ -340,14 +356,25 @@ public class RiverGageDlg extends CaveSWTDialog implements
return mainLayout;
}
/*
* (non-Javadoc)
*
* @see com.raytheon.viz.ui.dialogs.CaveSWTDialogBase#disposed()
*/
@Override
protected void disposed() {
controlFont.dispose();
}
/*
* (non-Javadoc)
*
* @see
* com.raytheon.viz.ui.dialogs.CaveSWTDialogBase#initializeComponents(org
* .eclipse.swt.widgets.Shell)
*/
@Override
protected void initializeComponents(Shell shell) {
setReturnValue(false);
// Initialize all of the controls and layouts
controlFont = new Font(shell.getDisplay(), "Monospace", 10, SWT.NORMAL);
@ -839,7 +866,7 @@ public class RiverGageDlg extends CaveSWTDialog implements
@Override
public void widgetSelected(SelectionEvent event) {
if (saveRecord()) {
shell.dispose();
close();
}
}
});
@ -864,7 +891,7 @@ public class RiverGageDlg extends CaveSWTDialog implements
cancelBtn.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent event) {
shell.dispose();
close();
}
});
@ -878,11 +905,14 @@ public class RiverGageDlg extends CaveSWTDialog implements
@Override
public void widgetSelected(SelectionEvent event) {
deleteRecord();
shell.dispose();
close();
}
});
}
/**
* Load static PElist from manager.
*/
private void loadStaticData() {
// Load Physical Element Lists
stageFlowList.removeAll();
@ -893,10 +923,14 @@ public class RiverGageDlg extends CaveSWTDialog implements
}
stageFlowList.select(0);
} catch (VizException e) {
e.printStackTrace();
statusHandler
.handle(Priority.PROBLEM, "Unable to load PE list ", e);
}
}
/**
* Get lid's data and populate the display.
*/
private void getDialogData() {
RiverStatData seedData = new RiverStatData();
seedData.setLid(lid);
@ -918,7 +952,8 @@ public class RiverGageDlg extends CaveSWTDialog implements
fcstGroup = NO_FCST_GROUP_SELECTED;
}
} catch (VizException e) {
e.printStackTrace();
statusHandler.handle(Priority.PROBLEM, "Unable to load " + lid
+ "'s data ", e);
}
if ((data != null) && (data.size() > 0)) {
@ -934,6 +969,9 @@ public class RiverGageDlg extends CaveSWTDialog implements
updateDisplay();
}
/**
* Populate te display.
*/
private void updateDisplay() {
if (riverGageData != null) {
// Stream
@ -1196,7 +1234,8 @@ public class RiverGageDlg extends CaveSWTDialog implements
lon = GeoUtil.getInstance().cvt_spaced_format(lonTxt, 0);
} catch (Exception e) {
invalidLon = true;
e.printStackTrace();
statusHandler.handle(Priority.PROBLEM,
"Unable to determine logitude ", e);
}
if ((lon > 180) || (lon < -180) || invalidLon) {
@ -1226,9 +1265,6 @@ public class RiverGageDlg extends CaveSWTDialog implements
mb.setText("Invalid Value");
mb.setMessage("Please enter a Date\nin the form: YYYY-MM-DD");
mb.open();
e.printStackTrace();
return successful;
}
} else {
@ -1285,8 +1321,6 @@ public class RiverGageDlg extends CaveSWTDialog implements
mb.setMessage("Please enter a Date of Rating\nin the form: YYYY-MM-DD");
mb.open();
e.printStackTrace();
return successful;
}
} else {
@ -1324,8 +1358,6 @@ public class RiverGageDlg extends CaveSWTDialog implements
mb.setText("Unable to Save");
mb.setMessage("An error occurred while trying to save the River Gage");
mb.open();
e.printStackTrace();
}
// Refresh the data
@ -1424,8 +1456,6 @@ public class RiverGageDlg extends CaveSWTDialog implements
mb.setText("Unable to Delete");
mb.setMessage("An error occurred while trying to delete the River Gage");
mb.open();
e.printStackTrace();
}
}
}
@ -1448,6 +1478,13 @@ public class RiverGageDlg extends CaveSWTDialog implements
}
}
/*
* (non-Javadoc)
*
* @see
* com.raytheon.viz.hydrobase.listeners.IForecastGroupAssignmentListener
* #notifyUpdate(com.raytheon.viz.hydrocommon.data.RPFFcstGroupData)
*/
@Override
public void notifyUpdate(RPFFcstGroupData selectedForecastGroup) {
if (selectedForecastGroup != null) {

View file

@ -38,6 +38,9 @@ import org.eclipse.swt.widgets.MessageBox;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Text;
import com.raytheon.uf.common.status.IUFStatusHandler;
import com.raytheon.uf.common.status.UFStatus;
import com.raytheon.uf.common.status.UFStatus.Priority;
import com.raytheon.uf.viz.core.exception.VizException;
import com.raytheon.viz.hydrocommon.data.RPFFcstGroupData;
import com.raytheon.viz.hydrocommon.data.RPFFcstPointData;
@ -56,6 +59,7 @@ import com.raytheon.viz.ui.dialogs.CaveSWTDialog;
* ------------ ---------- ----------- --------------------------
* Sep 8, 2008 lvenable Initial creation
* Dec 20, 2008 1802 askripsk Connect to database
* Jun 11, 2013 2088 rferrel Make dialog non-blocking.
*
* </pre>
*
@ -63,6 +67,8 @@ import com.raytheon.viz.ui.dialogs.CaveSWTDialog;
* @version 1.0
*/
public class RiverProFcstGrpPointsDlg extends CaveSWTDialog {
private final IUFStatusHandler statusHandler = UFStatus
.getHandler(RiverProFcstGrpPointsDlg.class);
/**
* Control font.
@ -198,10 +204,15 @@ public class RiverProFcstGrpPointsDlg extends CaveSWTDialog {
* Parent shell.
*/
public RiverProFcstGrpPointsDlg(Shell parent) {
super(parent);
super(parent, SWT.DIALOG_TRIM, CAVE.DO_NOT_BLOCK);
setText("RiverPro Forecast Groups/Points");
}
/*
* (non-Javadoc)
*
* @see com.raytheon.viz.ui.dialogs.CaveSWTDialogBase#constructShellLayout()
*/
@Override
protected Layout constructShellLayout() {
// Create the main layout for the shell.
@ -212,11 +223,23 @@ public class RiverProFcstGrpPointsDlg extends CaveSWTDialog {
return mainLayout;
}
/*
* (non-Javadoc)
*
* @see com.raytheon.viz.ui.dialogs.CaveSWTDialogBase#disposed()
*/
@Override
protected void disposed() {
controlFont.dispose();
}
/*
* (non-Javadoc)
*
* @see
* com.raytheon.viz.ui.dialogs.CaveSWTDialogBase#initializeComponents(org
* .eclipse.swt.widgets.Shell)
*/
@Override
protected void initializeComponents(Shell shell) {
setReturnValue(false);
@ -488,7 +511,7 @@ public class RiverProFcstGrpPointsDlg extends CaveSWTDialog {
closeBtn.setLayoutData(gd);
closeBtn.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent event) {
shell.dispose();
close();
}
});
@ -559,7 +582,8 @@ public class RiverProFcstGrpPointsDlg extends CaveSWTDialog {
secondaryHsaList.add(currHSA);
}
} catch (VizException e) {
e.printStackTrace();
statusHandler.handle(Priority.PROBLEM,
"Unble to load static HsaLists ", e);
}
}
@ -598,7 +622,7 @@ public class RiverProFcstGrpPointsDlg extends CaveSWTDialog {
updateDialogDisplay();
} catch (VizException e) {
e.printStackTrace();
statusHandler.handle(Priority.PROBLEM, "Unble to load data ", e);
}
}
@ -854,8 +878,6 @@ public class RiverProFcstGrpPointsDlg extends CaveSWTDialog {
mb.setText("Unable to Save");
mb.setMessage("An error occurred while saving.");
mb.open();
e.printStackTrace();
}
} else {
MessageBox mb = new MessageBox(shell, SWT.ICON_ERROR | SWT.OK);
@ -926,8 +948,6 @@ public class RiverProFcstGrpPointsDlg extends CaveSWTDialog {
mb.setText("Unable to Save");
mb.setMessage("An error occurred while saving.");
mb.open();
e.printStackTrace();
}
} else {
MessageBox mb = new MessageBox(shell, SWT.ICON_ERROR | SWT.OK);
@ -972,8 +992,6 @@ public class RiverProFcstGrpPointsDlg extends CaveSWTDialog {
mb.setText("Unable to Delete");
mb.setMessage("An error occurred while trying to delete");
mb.open();
e.printStackTrace();
}
}
} else {

View file

@ -32,6 +32,9 @@ import org.eclipse.swt.widgets.Layout;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Text;
import com.raytheon.uf.common.status.IUFStatusHandler;
import com.raytheon.uf.common.status.UFStatus;
import com.raytheon.uf.common.status.UFStatus.Priority;
import com.raytheon.uf.viz.core.exception.VizException;
import com.raytheon.viz.hydrocommon.data.RPFParamData;
import com.raytheon.viz.hydrocommon.datamanager.HydroDBDataManager;
@ -47,6 +50,7 @@ import com.raytheon.viz.ui.dialogs.CaveSWTDialog;
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* Sep 8, 2008 lvenable Initial creation
* Jun 11, 2013 2088 rferrel Make dialog non-blocking.
*
* </pre>
*
@ -54,6 +58,8 @@ import com.raytheon.viz.ui.dialogs.CaveSWTDialog;
* @version 1.0
*/
public class RiverProGenParamsDlg extends CaveSWTDialog {
private final IUFStatusHandler statusHandler = UFStatus
.getHandler(RiverProGenParamsDlg.class);
/**
* Look back hours for observed data text control.
@ -112,10 +118,15 @@ public class RiverProGenParamsDlg extends CaveSWTDialog {
* Parent shell.
*/
public RiverProGenParamsDlg(Shell parent) {
super(parent);
super(parent, SWT.DIALOG_TRIM, CAVE.DO_NOT_BLOCK);
setText("RiverPro General Parameters");
}
/*
* (non-Javadoc)
*
* @see com.raytheon.viz.ui.dialogs.CaveSWTDialogBase#constructShellLayout()
*/
@Override
protected Layout constructShellLayout() {
// Create the main layout for the shell.
@ -126,6 +137,13 @@ public class RiverProGenParamsDlg extends CaveSWTDialog {
return mainLayout;
}
/*
* (non-Javadoc)
*
* @see
* com.raytheon.viz.ui.dialogs.CaveSWTDialogBase#initializeComponents(org
* .eclipse.swt.widgets.Shell)
*/
@Override
protected void initializeComponents(Shell shell) {
setReturnValue(false);
@ -304,11 +322,14 @@ public class RiverProGenParamsDlg extends CaveSWTDialog {
closeBtn.setLayoutData(gd);
closeBtn.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent event) {
shell.dispose();
close();
}
});
}
/**
* Get data for the dialog from the manager.
*/
private void getDialogData() {
try {
java.util.List<RPFParamData> data = HydroDBDataManager
@ -321,12 +342,15 @@ public class RiverProGenParamsDlg extends CaveSWTDialog {
paramData = null;
}
} catch (VizException e) {
e.printStackTrace();
statusHandler.handle(Priority.PROBLEM, "Unable to load data ", e);
}
updateDialogDisplay();
}
/**
* Update the display froj paramData.
*/
private void updateDialogDisplay() {
if (paramData != null) {
lookbackTF.setText(HydroDataUtils.getDisplayString(paramData
@ -347,6 +371,9 @@ public class RiverProGenParamsDlg extends CaveSWTDialog {
}
}
/**
* Save changes to the data.
*/
private void saveRecord() {
RPFParamData newData = new RPFParamData();
@ -403,7 +430,7 @@ public class RiverProGenParamsDlg extends CaveSWTDialog {
getDialogData();
} catch (VizException e) {
e.printStackTrace();
statusHandler.handle(Priority.PROBLEM, "Unable to save data ", e);
}
}
}

View file

@ -36,6 +36,9 @@ import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Text;
import com.raytheon.uf.common.dataquery.db.QueryResult;
import com.raytheon.uf.common.status.IUFStatusHandler;
import com.raytheon.uf.common.status.UFStatus;
import com.raytheon.uf.common.status.UFStatus.Priority;
import com.raytheon.uf.viz.core.exception.VizException;
import com.raytheon.viz.hydrocommon.data.CountiesData;
import com.raytheon.viz.hydrocommon.data.EligZoneData;
@ -53,6 +56,7 @@ import com.raytheon.viz.ui.dialogs.CaveSWTDialog;
* ------------ ---------- ----------- --------------------------
* Sep 8, 2008 lvenable Initial creation
* Jan 8, 2008 1802 askripsk Connect to DB.
* Jun 11, 2013 2088 rferrel Make dialog non-blocking.
*
* </pre>
*
@ -60,6 +64,8 @@ import com.raytheon.viz.ui.dialogs.CaveSWTDialog;
* @version 1.0
*/
public class StatesCountiesZonesDlg extends CaveSWTDialog {
private final IUFStatusHandler statusHandler = UFStatus
.getHandler(StatesCountiesZonesDlg.class);
/**
* Control font.
@ -210,7 +216,7 @@ public class StatesCountiesZonesDlg extends CaveSWTDialog {
* Parent shell.
*/
public StatesCountiesZonesDlg(Shell parent) {
super(parent);
super(parent, SWT.DIALOG_TRIM, CAVE.DO_NOT_BLOCK);
setText("States/Counties/Zones");
}
@ -604,7 +610,7 @@ public class StatesCountiesZonesDlg extends CaveSWTDialog {
closeBtn.setLayoutData(gd);
closeBtn.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent event) {
shell.dispose();
close();
}
});
}
@ -662,7 +668,8 @@ public class StatesCountiesZonesDlg extends CaveSWTDialog {
stateData = HydroDBDataManager.getInstance().getData(
StateData.class);
} catch (VizException e) {
e.printStackTrace();
statusHandler.handle(Priority.PROBLEM,
"Unable to load state data ", e);
}
updateStateDisplay();
@ -673,7 +680,8 @@ public class StatesCountiesZonesDlg extends CaveSWTDialog {
countyData = HydroDBDataManager.getInstance().getData(
CountiesData.class);
} catch (VizException e) {
e.printStackTrace();
statusHandler.handle(Priority.PROBLEM,
"Unable to load counties data ", e);
}
updateCountyDisplay();
@ -684,7 +692,8 @@ public class StatesCountiesZonesDlg extends CaveSWTDialog {
zoneData = HydroDBDataManager.getInstance().getData(
EligZoneData.class);
} catch (VizException e) {
e.printStackTrace();
statusHandler.handle(Priority.PROBLEM, "Unable to load zone data ",
e);
}
updateZoneDisplay();
@ -801,8 +810,6 @@ public class StatesCountiesZonesDlg extends CaveSWTDialog {
mb.setText("Unable to Save");
mb.setMessage("An error occurred while trying to save the State");
mb.open();
e.printStackTrace();
}
} else {
missingValueMessage("State");
@ -839,8 +846,6 @@ public class StatesCountiesZonesDlg extends CaveSWTDialog {
mb.setText("Unable to Save");
mb.setMessage("An error occurred while trying to save the County");
mb.open();
e.printStackTrace();
}
}
@ -867,8 +872,6 @@ public class StatesCountiesZonesDlg extends CaveSWTDialog {
mb.setText("Unable to Save");
mb.setMessage("An error occurred while trying to save the Zone");
mb.open();
e.printStackTrace();
}
}
@ -908,8 +911,6 @@ public class StatesCountiesZonesDlg extends CaveSWTDialog {
mb.setText("Unable to Delete");
mb.setMessage("An error occurred while trying to delete the State");
mb.open();
e.printStackTrace();
}
}
} else {
@ -942,8 +943,6 @@ public class StatesCountiesZonesDlg extends CaveSWTDialog {
mb.setText("Unable to Delete");
mb.setMessage("An error occurred while trying to delete the County");
mb.open();
e.printStackTrace();
}
}
} else {
@ -976,8 +975,6 @@ public class StatesCountiesZonesDlg extends CaveSWTDialog {
mb.setText("Unable to Delete");
mb.setMessage("An error occurred while trying to delete the Zone");
mb.open();
e.printStackTrace();
}
}
} else {
@ -1088,7 +1085,6 @@ public class StatesCountiesZonesDlg extends CaveSWTDialog {
}
} catch (VizException e) {
// don't care, just return false
e.printStackTrace();
}
return rval;
@ -1116,7 +1112,6 @@ public class StatesCountiesZonesDlg extends CaveSWTDialog {
} catch (VizException e) {
// don't care, just return false
e.printStackTrace();
}
return rval;