Merge "Issue #1353 old test code classes." into development

Former-commit-id: 54765a26d6ca098133ff1e0b16c56e94e4053f74
This commit is contained in:
Lee Venable 2012-12-07 13:22:46 -06:00 committed by Gerrit Code Review
commit 4e13d01e67
2 changed files with 0 additions and 170 deletions

View file

@ -1,76 +0,0 @@
/**
* This software was developed and / or modified by Raytheon Company,
* pursuant to Contract DG133W-05-CQ-1067 with the US Government.
*
* U.S. EXPORT CONTROLLED TECHNICAL DATA
* This software product contains export-restricted data whose
* export/transfer/disclosure is restricted by U.S. law. Dissemination
* to non-U.S. persons whether in the United States or abroad requires
* an export license or other authorization.
*
* Contractor Name: Raytheon Company
* Contractor Address: 6825 Pine Street, Suite 340
* Mail Stop B8
* Omaha, NE 68106
* 402.291.0100
*
* See the AWIPS II Master Rights File ("Master Rights File.pdf") for
* further licensing information.
**/
package test;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
public class BasinMainWindow
{
private Display display;
private Shell shell;
public BasinMainWindow()
{
display = new Display();
shell = new Shell(display);
}
public void run()
{
shell.setLayout(new GridLayout(1, true));
addDisplayButtons();
shell.setSize(500, 600);
// shell.pack();
shell.open();
while (!shell.isDisposed())
{
if (!display.readAndDispatch()) display.sleep();
}
display.dispose();
}
private void addDisplayButtons()
{
// Button basinDlg = new Button(shell, SWT.PUSH);
// basinDlg.setText("Basin Trend...");
// basinDlg.addSelectionListener(new SelectionAdapter()
// {
// public void widgetSelected(SelectionEvent event)
// {
// Date date = Calendar.getInstance().getTime();
// BasinTrendDlg btd = new BasinTrendDlg(shell, date);
// btd.open();
// }
// });
}
public static void main(String[] args)
{
BasinMainWindow bmw = new BasinMainWindow();
bmw.run();
}
}

View file

@ -1,94 +0,0 @@
/**
* This software was developed and / or modified by Raytheon Company,
* pursuant to Contract DG133W-05-CQ-1067 with the US Government.
*
* U.S. EXPORT CONTROLLED TECHNICAL DATA
* This software product contains export-restricted data whose
* export/transfer/disclosure is restricted by U.S. law. Dissemination
* to non-U.S. persons whether in the United States or abroad requires
* an export license or other authorization.
*
* Contractor Name: Raytheon Company
* Contractor Address: 6825 Pine Street, Suite 340
* Mail Stop B8
* Omaha, NE 68106
* 402.291.0100
*
* See the AWIPS II Master Rights File ("Master Rights File.pdf") for
* further licensing information.
**/
package test;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
import com.raytheon.uf.common.monitor.data.CommonConfig;
import com.raytheon.uf.viz.monitor.ffmp.ui.dialogs.FFMPTableData;
import com.raytheon.uf.viz.monitor.ffmp.ui.dialogs.FfmpBasinTableDlg;
public class FfmpMainWindow {
private Display display;
private Shell shell;
private FFMPTableData tData;
private FfmpBasinTableDlg ffmp;
public FfmpMainWindow() {
display = new Display();
shell = new Shell(display);
}
public void run() {
shell.setLayout(new GridLayout(1, true));
addDisplayButtons();
shell.setSize(500, 500);
// shell.pack();
shell.open();
while (!shell.isDisposed()) {
if (!display.readAndDispatch())
display.sleep();
}
display.dispose();
}
private void addDisplayButtons() {
Button ffmpDlg = new Button(shell, SWT.PUSH);
ffmpDlg.setText("FFMP Dlg...");
ffmpDlg.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent event) {
createTableData(CommonConfig.AppName.FFMP);
ffmp = new FfmpBasinTableDlg(shell, tData, null);
ffmp.open();
}
});
}
private void createTableData(CommonConfig.AppName app) {
tData = null;
// DataGenerator dg = new DataGenerator();
// tData = dg.generateFFMPData();
}
/**
* @param args
*/
public static void main(String[] args) {
FfmpMainWindow mainWin = new FfmpMainWindow();
mainWin.run();
}
}