Issue #1280. Changes for non-blocking TrendPlotDlg. Fixed format.
Change-Id: I26af77a545c1ecd76dc6a15111e73d580992d77d Former-commit-id: d97fb49f2574dc320366475e02a5784be33bbaaf
This commit is contained in:
parent
9f3b0417cf
commit
8c1719f248
1 changed files with 9 additions and 5 deletions
|
@ -47,6 +47,7 @@ import com.raytheon.viz.ui.dialogs.CaveSWTDialog;
|
||||||
* ------------ ---------- ----------- --------------------------
|
* ------------ ---------- ----------- --------------------------
|
||||||
* 2009-12-02 vkorolev Initial creation.
|
* 2009-12-02 vkorolev Initial creation.
|
||||||
* 2010-01-21 4268 vkorolev Fixed Trend Plot
|
* 2010-01-21 4268 vkorolev Fixed Trend Plot
|
||||||
|
* 2012-10-15 1229 vkorolev Changes for non-blocking TrendPlotDlg
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* @author vkorolev
|
* @author vkorolev
|
||||||
|
@ -65,9 +66,12 @@ public class TrendPlotDlg extends CaveSWTDialog {
|
||||||
|
|
||||||
public Date curdate;
|
public Date curdate;
|
||||||
|
|
||||||
|
public String var;
|
||||||
|
|
||||||
public TrendPlotDlg(Shell parent, String selectedZone, String station,
|
public TrendPlotDlg(Shell parent, String selectedZone, String station,
|
||||||
ArrayList<String> product, String dataName) {
|
ArrayList<String> product, String dataName) {
|
||||||
super(parent, SWT.DIALOG_TRIM | SWT.RESIZE);
|
super(parent, SWT.DIALOG_TRIM | SWT.RESIZE, CAVE.DO_NOT_BLOCK
|
||||||
|
| CAVE.INDEPENDENT_SHELL);
|
||||||
setText(getTrendPlotName(product) + " Trend Plot for " + station + "#"
|
setText(getTrendPlotName(product) + " Trend Plot for " + station + "#"
|
||||||
+ dataName);
|
+ dataName);
|
||||||
|
|
||||||
|
@ -89,13 +93,13 @@ public class TrendPlotDlg extends CaveSWTDialog {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void initializeComponents(Shell shell) {
|
protected void initializeComponents(Shell shell) {
|
||||||
setReturnValue(false);
|
setReturnValue(product);
|
||||||
// Initialize all layouts
|
// Initialize all layouts
|
||||||
Iterator<String> prodVar = product.iterator();
|
Iterator<String> prodVar = product.iterator();
|
||||||
while (prodVar.hasNext()) {
|
while (prodVar.hasNext()) {
|
||||||
String varname = prodVar.next();
|
String var = prodVar.next();
|
||||||
new TrendPlotCanvas(shell, selectedZone, station, varname,
|
new TrendPlotCanvas(shell, selectedZone, station, var, dataName,
|
||||||
dataName, obData);
|
obData);
|
||||||
}
|
}
|
||||||
addCloseBtn();
|
addCloseBtn();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue