Issue #1790 Minor changes to bring code up to Raytheon standards.
Change-Id: Iad49a91187bc8f6f4eab9be23fa030399bffd12b Former-commit-id:1f50588858
[formerlydd9012a533
[formerly 89095dce81484d1629f399d849581585a8c67431]] Former-commit-id:dd9012a533
Former-commit-id:d0bf884341
This commit is contained in:
parent
7bb8189127
commit
1bf4a145d4
3 changed files with 30 additions and 24 deletions
|
@ -277,8 +277,9 @@ public class DescriptionDlg extends CaveSWTDialog {
|
|||
if (remarksTF.getText().length() > 255) {
|
||||
remarksTF.setText(currentRemarkText);
|
||||
shell.getDisplay().beep();
|
||||
} else
|
||||
} else {
|
||||
currentRemarkText = remarksTF.getText();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -302,8 +303,9 @@ public class DescriptionDlg extends CaveSWTDialog {
|
|||
if (freezingTF.getText().length() > 160) {
|
||||
freezingTF.setText(currentFreezeText);
|
||||
shell.getDisplay().beep();
|
||||
} else
|
||||
} else {
|
||||
currentFreezeText = freezingTF.getText();
|
||||
}
|
||||
}
|
||||
};
|
||||
freezingTF.addModifyListener(listenerF);
|
||||
|
@ -326,8 +328,9 @@ public class DescriptionDlg extends CaveSWTDialog {
|
|||
if (reachTF.getText().length() > 80) {
|
||||
reachTF.setText(currentReachText);
|
||||
shell.getDisplay().beep();
|
||||
} else
|
||||
} else {
|
||||
currentReachText = reachTF.getText();
|
||||
}
|
||||
}
|
||||
};
|
||||
reachTF.addModifyListener(listenerR);
|
||||
|
@ -350,8 +353,9 @@ public class DescriptionDlg extends CaveSWTDialog {
|
|||
if (regulationTF.getText().length() > 230) {
|
||||
regulationTF.setText(currentRegText);
|
||||
shell.getDisplay().beep();
|
||||
} else
|
||||
} else {
|
||||
currentRegText = regulationTF.getText();
|
||||
}
|
||||
}
|
||||
};
|
||||
regulationTF.addModifyListener(listenerReg);
|
||||
|
@ -374,8 +378,9 @@ public class DescriptionDlg extends CaveSWTDialog {
|
|||
if (topoTF.getText().length() > 230) {
|
||||
topoTF.setText(currentTopoText);
|
||||
shell.getDisplay().beep();
|
||||
} else
|
||||
} else {
|
||||
currentTopoText = topoTF.getText();
|
||||
}
|
||||
}
|
||||
};
|
||||
topoTF.addModifyListener(listenerT);
|
||||
|
@ -439,8 +444,9 @@ public class DescriptionDlg extends CaveSWTDialog {
|
|||
if (affectedAreaTF.getText().length() > 80) {
|
||||
affectedAreaTF.setText(currentAreaText);
|
||||
shell.getDisplay().beep();
|
||||
} else
|
||||
} else {
|
||||
currentAreaText = affectedAreaTF.getText();
|
||||
}
|
||||
}
|
||||
};
|
||||
affectedAreaTF.addModifyListener(listenerA);
|
||||
|
|
|
@ -353,38 +353,44 @@ public class FloodCategoryDlg extends CaveSWTDialog {
|
|||
FloodCategoryData data = FloodCategoryDataManager.getInstance()
|
||||
.getFloodCategoryData(lid);
|
||||
|
||||
if (Math.abs(data.getMajorStage() - missingVal) < diffAllowed)
|
||||
if (Math.abs(data.getMajorStage() - missingVal) < diffAllowed) {
|
||||
majorStageTF.setText("");
|
||||
else
|
||||
} else {
|
||||
majorStageTF.setText(Double.toString(data.getMajorStage()));
|
||||
}
|
||||
|
||||
if (Math.abs(data.getModerateStage() - missingVal) < diffAllowed)
|
||||
if (Math.abs(data.getModerateStage() - missingVal) < diffAllowed) {
|
||||
modStageTF.setText("");
|
||||
else
|
||||
} else {
|
||||
modStageTF.setText(Double.toString(data.getModerateStage()));
|
||||
}
|
||||
|
||||
if (Math.abs(data.getMinorStage() - missingVal) < diffAllowed)
|
||||
if (Math.abs(data.getMinorStage() - missingVal) < diffAllowed) {
|
||||
minorStageTF.setText("");
|
||||
else
|
||||
} else {
|
||||
minorStageTF.setText(Double.toString(data.getMinorStage()));
|
||||
}
|
||||
|
||||
if (Math.abs(data.getMajorDischarge() - missingVal) < diffAllowed)
|
||||
if (Math.abs(data.getMajorDischarge() - missingVal) < diffAllowed) {
|
||||
majorDischargeTF.setText("");
|
||||
else
|
||||
} else {
|
||||
majorDischargeTF.setText(Double.toString(data
|
||||
.getMajorDischarge()));
|
||||
}
|
||||
|
||||
if (Math.abs(data.getModerateDischarge() - missingVal) < diffAllowed)
|
||||
if (Math.abs(data.getModerateDischarge() - missingVal) < diffAllowed) {
|
||||
modDischargeTF.setText("");
|
||||
else
|
||||
} else {
|
||||
modDischargeTF.setText(Double.toString(data
|
||||
.getModerateDischarge()));
|
||||
}
|
||||
|
||||
if (Math.abs(data.getMinorDischarge() - missingVal) < diffAllowed)
|
||||
if (Math.abs(data.getMinorDischarge() - missingVal) < diffAllowed) {
|
||||
minorDischargeTF.setText("");
|
||||
else
|
||||
} else {
|
||||
minorDischargeTF.setText(Double.toString(data
|
||||
.getMinorDischarge()));
|
||||
}
|
||||
|
||||
} catch (VizException e) {
|
||||
statusHandler.handle(Priority.PROBLEM, "Retrieve failed. ", e);
|
||||
|
|
|
@ -1133,8 +1133,6 @@ public class QcAlertAlarmLimitsDlg extends CaveSWTDialog {
|
|||
|
||||
}
|
||||
|
||||
// QcAlertAlarmLimitsDataManager man = QcAlertAlarmLimitsDataManager
|
||||
// .getInstance();
|
||||
grossRangeMinTF.setText(HydroDataUtils.getDisplayString(currData
|
||||
.getGrossRangeMin()));
|
||||
grossRangeMaxTF.setText(HydroDataUtils.getDisplayString(currData
|
||||
|
@ -1228,8 +1226,6 @@ public class QcAlertAlarmLimitsDlg extends CaveSWTDialog {
|
|||
}
|
||||
}
|
||||
|
||||
// QcAlertAlarmLimitsDataManager man = QcAlertAlarmLimitsDataManager
|
||||
// .getInstance();
|
||||
grossRangeMinTF.setText(HydroDataUtils.getDisplayString(currData
|
||||
.getGrossRangeMin()));
|
||||
grossRangeMaxTF.setText(HydroDataUtils.getDisplayString(currData
|
||||
|
@ -1443,8 +1439,6 @@ public class QcAlertAlarmLimitsDlg extends CaveSWTDialog {
|
|||
}
|
||||
|
||||
private boolean setSaveValues(DataLimitData dataToSave) {
|
||||
// Date startDate = null;
|
||||
// Date endDate = null;
|
||||
|
||||
// Make sure that PE is selected
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue