Merge "Omaha #4834 correct some menu items" into omaha_16.2.2

Former-commit-id: 00fdbe2dfe5f4563f4fbb29d34fc9efe6b956efa
This commit is contained in:
Nate Jensen 2015-12-14 13:13:40 -06:00 committed by Gerrit Code Review
commit 6f8dce4c54
21 changed files with 42 additions and 266 deletions

View file

@ -31,7 +31,7 @@
</contribute>
<contribute xsi:type="bundleItem" file="bundles/UpperAirRaob.xml"
menuText="Bethel, AK (PABE)" id="raobRarotonga"
menuText="Bethel, AK (PABE)" id="raobBethel_AK"
editorType="gov.noaa.nws.ncep.ui.nsharp.display.NsharpEditor">
<substitute key="stationId" value="70219"/>
</contribute>
@ -86,7 +86,7 @@
<substitute key="stationId" value="70133"/>
</contribute>
<contribute xsi:type="bundleItem" file="bundles/UpperAirRaob.xml"
menuText="St. Paul Island, AK (PASN)" id="raobSTPaulIsland_AK"
menuText="St. Paul Island, AK (PASN)" id="raobStPaulIsland_AK"
editorType="gov.noaa.nws.ncep.ui.nsharp.display.NsharpEditor">
<substitute key="stationId" value="70308"/>
</contribute>

View file

@ -77,13 +77,13 @@
<substitute key="stationId" value="78970"/>
</contribute>
<contribute xsi:type="bundleItem" file="bundles/UpperAirRaob.xml"
menuText="Howard AFB, PM (MPHO)" id="raobHowardAFB_PM "
menuText="Howard AFB, PM (MPHO)" id="raobHowardAFB_PM"
editorType="gov.noaa.nws.ncep.ui.nsharp.display.NsharpEditor">
<substitute key="stationId" value="78806"/>
</contribute>
<contribute xsi:type="bundleItem" file="bundles/UpperAirRaob.xml"
menuText="Guantanamo Bay, CU (MUGM)" id="raobPortland_ME"
menuText="Guantanamo Bay, CU (MUGM)" id="raobGuantanamoBay_CU"
editorType="gov.noaa.nws.ncep.ui.nsharp.display.NsharpEditor">
<substitute key="stationId" value="78367"/>
</contribute>
@ -108,12 +108,12 @@
<substitute key="stationId" value="81405"/>
</contribute>
<contribute xsi:type="bundleItem" file="bundles/UpperAirRaob.xml"
menuText="Le Ralset, Guadeloupe (TFFR)" id="LeRalset_Guadeloupe"
menuText="Le Ralset, Guadeloupe (TFFR)" id="raobLeRalset_Guadeloupe"
editorType="gov.noaa.nws.ncep.ui.nsharp.display.NsharpEditor">
<substitute key="stationId" value="78897"/>
</contribute>
<contribute xsi:type="bundleItem" file="bundles/UpperAirRaob.xml"
menuText="San Juan, PR (TJSJ)" id="raobWashington_DC"
menuText="San Juan, PR (TJSJ)" id="raobSanJuan_PR"
editorType="gov.noaa.nws.ncep.ui.nsharp.display.NsharpEditor">
<substitute key="stationId" value="78526"/>
</contribute>

View file

@ -20,7 +20,7 @@
-->
<menuTemplate xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<contribute xsi:type="bundleItem" file="bundles/UpperAirRaob.xml"
menuText="Willis Island (94299)" id="raobWillis Island"
menuText="Willis Island (94299)" id="raobWillisIsland"
editorType="gov.noaa.nws.ncep.ui.nsharp.display.NsharpEditor">
<substitute key="stationId" value="94299"/>
</contribute>
@ -155,7 +155,7 @@
<substitute key="stationId" value="94750"/>
</contribute>
<contribute xsi:type="bundleItem" file="bundles/UpperAirRaob.xml"
menuText="Sydney Arpt (YSSY)" id="raobSydney Arpt"
menuText="Sydney Arpt (YSSY)" id="raobSydneyArpt"
editorType="gov.noaa.nws.ncep.ui.nsharp.display.NsharpEditor">
<substitute key="stationId" value="94767"/>
</contribute>

View file

@ -70,7 +70,7 @@
<substitute key="stationId" value="71907"/>
</contribute>
<contribute xsi:type="bundleItem" file="bundles/UpperAirRaob.xml"
menuText="Yarmouth, NS (CYQI)" id="raobAtlanta_GA"
menuText="Yarmouth, NS (CYQI)" id="raobYarmouth_NS"
editorType="gov.noaa.nws.ncep.ui.nsharp.display.NsharpEditor">
<substitute key="stationId" value="71603"/>
</contribute>
@ -95,7 +95,7 @@
<substitute key="stationId" value="71801"/>
</contribute>
<contribute xsi:type="bundleItem" file="bundles/UpperAirRaob.xml"
menuText="Toronto Int'l, ON (CYYZ)" id="raobTorontoIntl_ON "
menuText="Toronto Int'l, ON (CYYZ)" id="raobTorontoIntl_ON"
editorType="gov.noaa.nws.ncep.ui.nsharp.display.NsharpEditor">
<substitute key="stationId" value="71624"/>
</contribute>

View file

@ -158,7 +158,7 @@
</contribute>
<contribute xsi:type="bundleItem" file="bundles/UpperAirRaob.xml"
menuText="Ishigakijima (ROIG)" id="raobIshigakijima "
menuText="Ishigakijima (ROIG)" id="raobIshigakijima"
editorType="gov.noaa.nws.ncep.ui.nsharp.display.NsharpEditor">
<substitute key="stationId" value="47918"/>
</contribute>
@ -168,7 +168,7 @@
<substitute key="stationId" value="47945"/>
</contribute>
<contribute xsi:type="bundleItem" file="bundles/UpperAirRaob.xml"
menuText="Clark AFB (RPMK)" id="raobClearkAFB"
menuText="Clark AFB (RPMK)" id="raobClarkAFB"
editorType="gov.noaa.nws.ncep.ui.nsharp.display.NsharpEditor">
<substitute key="stationId" value="98327"/>
</contribute>

View file

@ -30,12 +30,12 @@
<substitute key="stationId" value="76840"/>
</contribute>
<contribute xsi:type="bundleItem" file="bundles/UpperAirRaob.xml"
menuText="Ciudad Del Carmen, MX (MCME)" id="raobCiudadDelCarmen_MX "
menuText="Ciudad Del Carmen, MX (MCME)" id="raobCiudadDelCarmen_MX"
editorType="gov.noaa.nws.ncep.ui.nsharp.display.NsharpEditor">
<substitute key="stationId" value="76749"/>
</contribute>
<contribute xsi:type="bundleItem" file="bundles/UpperAirRaob.xml"
menuText="Ciudad Victoria, MX (MCVM)" id="raobCiudadVictoria_MX "
menuText="Ciudad Victoria, MX (MCVM)" id="raobCiudadVictoria_MX"
editorType="gov.noaa.nws.ncep.ui.nsharp.display.NsharpEditor">
<substitute key="stationId" value="76225"/>
</contribute>
@ -45,7 +45,7 @@
<substitute key="stationId" value="76649"/>
</contribute>
<contribute xsi:type="bundleItem" file="bundles/UpperAirRaob.xml"
menuText="Isle of Guadalupe, MX (MILS)" id="raobIsleofGuadalupe_MX "
menuText="Isle of Guadalupe, MX (MILS)" id="raobIsleofGuadalupe_MX"
editorType="gov.noaa.nws.ncep.ui.nsharp.display.NsharpEditor">
<substitute key="stationId" value="76151"/>
</contribute>
@ -70,12 +70,12 @@
<substitute key="stationId" value="76361"/>
</contribute>
<contribute xsi:type="bundleItem" file="bundles/UpperAirRaob.xml"
menuText="Chihuahua, MX (MMCU)" id="raobChihuahua_MX "
menuText="Chihuahua, MX (MMCU)" id="raobChihuahua_MX"
editorType="gov.noaa.nws.ncep.ui.nsharp.display.NsharpEditor">
<substitute key="stationId" value="76225"/>
</contribute>
<contribute xsi:type="bundleItem" file="bundles/UpperAirRaob.xml"
menuText="Mexico/Central, MX (MMDF)" id="raobCentral, MX"
menuText="Mexico/Central, MX (MMDF)" id="raobCentral_MX"
editorType="gov.noaa.nws.ncep.ui.nsharp.display.NsharpEditor">
<substitute key="stationId" value="76679"/>
</contribute>

View file

@ -81,7 +81,7 @@
</contribute>
<contribute xsi:type="bundleItem" file="bundles/UpperAirRaob.xml"
menuText="Midway Island (Navy) (PMDY)" id="raobPortland_ME"
menuText="Midway Island (Navy) (PMDY)" id="raobMidwayIs"
editorType="gov.noaa.nws.ncep.ui.nsharp.display.NsharpEditor">
<substitute key="stationId" value="91066"/>
</contribute>

View file

@ -25,7 +25,7 @@
<substitute key="stationId" value="99027"/>
</contribute>
<contribute xsi:type="bundleItem" file="bundles/UpperAirRaob.xml"
menuText="Honiara (AGGH)" id="raobHonlara"
menuText="Honiara (AGGH)" id="raobHoniara"
editorType="gov.noaa.nws.ncep.ui.nsharp.display.NsharpEditor">
<substitute key="stationId" value="91517"/>
</contribute>
@ -72,12 +72,12 @@
<substitute key="stationId" value="91592"/>
</contribute>
<contribute xsi:type="bundleItem" file="bundles/UpperAirRaob.xml"
menuText="Guam/Taguac, GU (PGAC)" id="raobTaguac_GU "
menuText="Guam/Taguac, GU (PGAC)" id="raobTaguac_GU"
editorType="gov.noaa.nws.ncep.ui.nsharp.display.NsharpEditor">
<substitute key="stationId" value="91217"/>
</contribute>
<contribute xsi:type="bundleItem" file="bundles/UpperAirRaob.xml"
menuText="Guam/Anderson AFB, GU (PGUA)" id="raobAndersonAFB_GU "
menuText="Guam/Anderson AFB, GU (PGUA)" id="raobAndersonAFB_GU"
editorType="gov.noaa.nws.ncep.ui.nsharp.display.NsharpEditor">
<substitute key="stationId" value="91218"/>
</contribute>
@ -122,7 +122,7 @@
<substitute key="stationId" value="91413"/>
</contribute>
<contribute xsi:type="bundleItem" file="bundles/UpperAirRaob.xml"
menuText="Wake Island (PWAK)" id="raobWake Island"
menuText="Wake Island (PWAK)" id="raobWakeIsland"
editorType="gov.noaa.nws.ncep.ui.nsharp.display.NsharpEditor">
<substitute key="stationId" value="91245"/>
</contribute>

View file

@ -20,7 +20,7 @@
-->
<menuTemplate xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<contribute xsi:type="bundleItem" file="bundles/UpperAirRaob.xml"
menuText="Mys Uzlen (25399)" id="raobMys Uzlen"
menuText="Mys Uzlen (25399)" id="raobMysUzlen"
editorType="gov.noaa.nws.ncep.ui.nsharp.display.NsharpEditor">
<substitute key="stationId" value="25399"/>
</contribute>
@ -135,12 +135,12 @@
<substitute key="stationId" value="21824"/>
</contribute>
<contribute xsi:type="bundleItem" file="bundles/UpperAirRaob.xml"
menuText="Anadyr' (UHMA)" id="raobnadyr'"
menuText="Anadyr (UHMA)" id="raobAnadyr"
editorType="gov.noaa.nws.ncep.ui.nsharp.display.NsharpEditor">
<substitute key="stationId" value="25563"/>
</contribute>
<contribute xsi:type="bundleItem" file="bundles/UpperAirRaob.xml"
menuText="Bukhta Provideniya (UHMD)" id="raobBukhta Provideniya"
menuText="Bukhta Provideniya (UHMD)" id="raobBukhtaProvideniya"
editorType="gov.noaa.nws.ncep.ui.nsharp.display.NsharpEditor">
<substitute key="stationId" value="25594"/>
</contribute>

View file

@ -65,7 +65,7 @@
<substitute key="stationId" value="72364"/>
</contribute>
<contribute xsi:type="bundleItem" file="bundles/UpperAirRaob.xml"
menuText="Fort Worth, TX (KFWD)" id="raobFortWorth_TX "
menuText="Fort Worth, TX (KFWD)" id="raobFortWorth_TX"
editorType="gov.noaa.nws.ncep.ui.nsharp.display.NsharpEditor">
<substitute key="stationId" value="72249"/>
</contribute>
@ -100,7 +100,7 @@
<substitute key="stationId" value="72340"/>
</contribute>
<contribute xsi:type="bundleItem" file="bundles/UpperAirRaob.xml"
menuText="Midland, TX (KMAF)" id="raobSanNicholasIsland_CA"
menuText="Midland, TX (KMAF)" id="raobMidland_TX"
editorType="gov.noaa.nws.ncep.ui.nsharp.display.NsharpEditor">
<substitute key="stationId" value="72265"/>
</contribute>
@ -115,7 +115,7 @@
<substitute key="stationId" value="72558"/>
</contribute>
<contribute xsi:type="bundleItem" file="bundles/UpperAirRaob.xml"
menuText="Oklahoma City, OK (KOUN)" id="raobOklahomaCity_OK "
menuText="Oklahoma City, OK (KOUN)" id="raobOklahomaCity_OK"
editorType="gov.noaa.nws.ncep.ui.nsharp.display.NsharpEditor">
<substitute key="stationId" value="72357"/>
</contribute>

View file

@ -165,7 +165,7 @@
<substitute key="stationId" value="72221"/>
</contribute>
<contribute xsi:type="bundleItem" file="bundles/UpperAirRaob.xml"
menuText="Wallops Island, VA (KWAL)" id="raobWallopsIsland_VA "
menuText="Wallops Island, VA (KWAL)" id="raobWallopsIsland_VA"
editorType="gov.noaa.nws.ncep.ui.nsharp.display.NsharpEditor">
<substitute key="stationId" value="72402"/>
</contribute>

View file

@ -35,12 +35,12 @@
<substitute key="stationId" value="74004"/>
</contribute>
<contribute xsi:type="bundleItem" file="bundles/UpperAirRaob.xml"
menuText="Yuma PG Site 2, AZ (K1Y8)" id="raobYuma_AZ"
menuText="Yuma PG Site 2, AZ (K1Y8)" id="raobYumaPgSite2_AZ"
editorType="gov.noaa.nws.ncep.ui.nsharp.display.NsharpEditor">
<substitute key="stationId" value="74005"/>
</contribute>
<contribute xsi:type="bundleItem" file="bundles/UpperAirRaob.xml"
menuText="Yuma PG Site 3, AZ (K1Y9)" id="raobYuma_AZ"
menuText="Yuma PG Site 3, AZ (K1Y9)" id="raobYumaPgSite3_AZ"
editorType="gov.noaa.nws.ncep.ui.nsharp.display.NsharpEditor">
<substitute key="stationId" value="74006"/>
</contribute>
@ -65,7 +65,7 @@
<substitute key="stationId" value="72387"/>
</contribute>
<contribute xsi:type="bundleItem" file="bundles/UpperAirRaob.xml"
menuText="Edwards AFB, CA (KEDW)" id="raobEdwardsAFB_CA "
menuText="Edwards AFB, CA (KEDW)" id="raobEdwardsAFB_CA"
editorType="gov.noaa.nws.ncep.ui.nsharp.display.NsharpEditor">
<substitute key="stationId" value="72381"/>
</contribute>
@ -130,7 +130,7 @@
<substitute key="stationId" value="74626"/>
</contribute>
<contribute xsi:type="bundleItem" file="bundles/UpperAirRaob.xml"
menuText="Reno, NV (KREV)" id="raobReno_NV "
menuText="Reno, NV (KREV)" id="raobReno_NV"
editorType="gov.noaa.nws.ncep.ui.nsharp.display.NsharpEditor">
<substitute key="stationId" value="72489"/>
</contribute>

View file

@ -19,12 +19,4 @@
further_licensing_information.
-->
<menuTemplate xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<contribute xsi:type="subMenu" menuText="Added Features">
<contribute xsi:type="subMenu" menuText="Archive">
<contribute xsi:type="placeholder" menuText=" "/>
</contribute>
<contribute xsi:type="subMenu" menuText="Composite">
<contribute xsi:type="placeholder" menuText=" "/>
</contribute>
</contribute>
</menuTemplate>

View file

@ -98,7 +98,6 @@
<substitute key="legend" value="Sfc Profiler"/>
</contribute>
</contribute>
<contribute xsi:type="placeholder"
menuText="NPN Perspective" id="npnPerspective"/>
<contribute xsi:type="separator" id="npnPerspective"/>
<contribute xsi:type="separator" id="MySeparatorId1"/>
</menuTemplate>

View file

@ -168,6 +168,5 @@
<substitute key="label" value="925mb"/>
</contribute>
</contribute>
<contribute xsi:type="placeholder" menuText="VWP perspective"/>
<contribute xsi:type="separator" id="MySeparatorId2"/>
</menuTemplate>

View file

@ -20,7 +20,7 @@
-->
<menuTemplate xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<contribute xsi:type="bundleItem" file="bundles/UpperAirProfiler.xml"
menuText="Bloomfield MO (BLMM7)" id="profBloomfield MO"
menuText="Bloomfield MO (BLMM7)" id="profBloomfield_MO"
editorType="com.raytheon.uf.viz.profiler.ui.ProfilerEditor">
<substitute key="wmoid" value="74662"/>
<substitute key="productURI" value="/profiler/%/3000/74662/%"/>
@ -80,7 +80,7 @@
<substitute key="productURI" value="/profiler/%/3000/74542/%"/>
</contribute>
<contribute xsi:type="bundleItem" file="bundles/UpperAirProfiler.xml"
menuText="Okolona MS (OKOM6)" id="profOkolona MS"
menuText="Okolona MS (OKOM6)" id="profOkolona_MS"
editorType="com.raytheon.uf.viz.profiler.ui.ProfilerEditor">
<substitute key="wmoid" value="74769"/>
<substitute key="productURI" value="/profiler/%/3000/74769/%"/>

View file

@ -221,23 +221,23 @@
<contribute xsi:type="titleItem"
titleText="------ SSM/I Data ------" id="SSMIDataLine"/>
<contribute xsi:type="bundleItem" file="bundles/SSMIWindPlot.xml"
menuText="SSM/I Wind Speeds" id="SSMIDataLine">
menuText="SSM/I Wind Speeds" id="SSMIWindSpeeds">
<substitute key="svg" value="ssmiWindPlotDesign.svg"/>
</contribute>
<contribute xsi:type="bundleItem" file="bundles/SSMIPlot.xml"
menuText="SSM/I Precip. Water" id="SSMIDataLine">
menuText="SSM/I Precip. Water" id="SSMIPrecipWater">
<substitute key="svg" value="ssmiPWPlotDesign.svg"/>
<substitute key="legend" value="SSM/I Precipitable Water (kg/m**2)"/>
<substitute key="offset" value="1800"/>
</contribute>
<contribute xsi:type="bundleItem" file="bundles/SSMIPlot.xml"
menuText="SSM/I Sea Temperature" id="SSMIDataLine">
menuText="SSM/I Sea Temperature" id="SSMISeaTemp">
<substitute key="svg" value="ssmiSTPlotDesign.svg"/>
<substitute key="legend" value="SSM/I Sea Temperature (C)"/>
<substitute key="offset" value="1800"/>
</contribute>
<contribute xsi:type="bundleItem" file="bundles/SSMIPlot.xml"
menuText="SSM/I VIL" id="SSMIDataLine">
menuText="SSM/I VIL" id="SSMIVIL">
<substitute key="svg" value="ssmiVILPlotDesign.svg"/>
<substitute key="legend" value="SSM/I Vert. Integ. Water (kg/(m**2))"/>
<substitute key="offset" value="1800"/>

View file

@ -40,7 +40,7 @@
<substitute key="colormap" value="Sat/Precip Water/Precip Water Default"/>
</contribute>
<contribute xsi:type="bundleItem" file="bundles/DefaultSatellite.xml"
menuText="Cloud Amount" id="cloud Amount">
menuText="Cloud Amount" id="cloudAmount">
<substitute key="element" value="Gridded Cloud Amount"/>
<substitute key="entity" value="Composite"/>
<substitute key="colormap" value="Sat/Cloud Amount Default"/>

View file

@ -19,12 +19,6 @@
further_licensing_information.
-->
<menuTemplate xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<contribute xsi:type="command" menuText="Create TAF template" commandId="com.raytheon.viz.ui.actions.notImplemented"/>
<contribute xsi:type="command" menuText="Transmit TAF" commandId="com.raytheon.viz.ui.actions.notImplemented"/>
<contribute xsi:type="separator" id="belowTransmitTaf"/>
<contribute xsi:type="subinclude" fileName="menus/textws/toolsMenus.xml"/>
</menuTemplate>

View file

@ -1,130 +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 com.raytheon.viz.textworkstation;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.graphics.Font;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.List;
import org.eclipse.swt.widgets.Shell;
import com.raytheon.viz.ui.dialogs.CaveSWTDialog;
/**
* SelectUserIdDlg class.
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 9/27/2007 368 lvenable Initial creation.
* 10/11/2007 482 grichard Reformatted file.
* 26Sep2012 1196 lvenable Dialog refactor to not block.
*
* </pre>
*
* @author lvenable
*/
public class SelectUserIdDlg extends CaveSWTDialog {
private Font font;
private List userIdList;
public SelectUserIdDlg(Shell parent) {
super(parent, SWT.DIALOG_TRIM, CAVE.PERSPECTIVE_INDEPENDENT
| CAVE.DO_NOT_BLOCK);
setText("Select User ID");
}
@Override
protected void disposed() {
font.dispose();
}
@Override
protected void initializeComponents(Shell shell) {
setReturnValue(false);
font = new Font(shell.getDisplay(), "Monospace", 10, SWT.NORMAL);
// Initialize all of the controls and layouts
createUserIdList();
createBottomButtons();
// TODO : remove this method call...
createDummyData();
}
private void createUserIdList() {
GridData gd = new GridData(SWT.CENTER, SWT.DEFAULT, false, false);
gd.widthHint = 200;
gd.heightHint = 350;
userIdList = new List(shell, SWT.BORDER | SWT.SINGLE | SWT.V_SCROLL);
userIdList.setLayoutData(gd);
userIdList.setFont(font);
}
private void createBottomButtons() {
Composite centeredComp = new Composite(shell, SWT.NONE);
GridLayout gl = new GridLayout(2, false);
centeredComp.setLayout(gl);
GridData gd = new GridData(SWT.CENTER, SWT.DEFAULT, true, false);
centeredComp.setLayoutData(gd);
gd = new GridData(70, SWT.DEFAULT);
Button okBtn = new Button(centeredComp, SWT.NONE);
okBtn.setText("OK");
okBtn.setLayoutData(gd);
okBtn.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent event) {
}
});
gd = new GridData(70, SWT.DEFAULT);
Button cancelBtn = new Button(centeredComp, SWT.NONE);
cancelBtn.setText("Cancel");
cancelBtn.setLayoutData(gd);
cancelBtn.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent event) {
shell.dispose();
}
});
}
// TODO : remove this method...
private void createDummyData() {
String tmp;
for (int i = 0; i < 30; i++) {
tmp = "User ID " + i;
userIdList.add(tmp);
}
}
}

View file

@ -39,7 +39,6 @@ import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Menu;
import org.eclipse.swt.widgets.MenuItem;
import org.eclipse.swt.widgets.MessageBox;
import org.eclipse.swt.widgets.Monitor;
import org.eclipse.swt.widgets.Shell;
@ -98,6 +97,7 @@ import com.raytheon.viz.ui.dialogs.CaveSWTDialog;
* 25July2013 DR 15733 Greg Hull Make dflt and max number of Text Buttons configurable.
* 28Oct2015 5054 randerso Make TextWorkstationDlg appear in upper left corner of
* monitor where parent shell is located
* Dec 14, 2015 4834 njensen Remove dead menu items
*
* </pre>
*
@ -150,16 +150,11 @@ public class TextWorkstationDlg extends CaveSWTDialog implements
private long initStartTime;
/** Select user ID dialog */
private SelectUserIdDlg userIdDlg;
/**
* Create dialog specifying NONE for blocking and DO_NOT_BLOCK for
* non-blocking dialog.
*
* @param parent
* @param block
* - CAVE.DO_NOT_BLOCK or CAVE.NONE
*/
public TextWorkstationDlg(Shell parent) {
super(parent, SWT.DIALOG_TRIM | SWT.MIN /* | SWT.RESIZE */,
@ -288,39 +283,6 @@ public class TextWorkstationDlg extends CaveSWTDialog implements
Menu fileMenu = new Menu(menuBar);
fileMenuItem.setMenu(fileMenu);
// --------------------------------------------------
// Create Select User ID menu item
// --------------------------------------------------
MenuItem selectUserIdMenuItem = new MenuItem(fileMenu, SWT.NONE);
selectUserIdMenuItem.setText("Select User ID...");
selectUserIdMenuItem.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent event) {
if (userIdDlg == null || userIdDlg.isDisposed()) {
userIdDlg = new SelectUserIdDlg(shell);
userIdDlg.open();
} else {
userIdDlg.bringToTop();
}
}
});
// --------------------------------------------------
// Create Evaluation sub menu item
// --------------------------------------------------
MenuItem evaluationMenuItem = new MenuItem(fileMenu, SWT.CASCADE);
evaluationMenuItem.setText("Select");
Menu selectSubMenu = new Menu(shell, SWT.DROP_DOWN);
evaluationMenuItem.setMenu(selectSubMenu);
createEvaluationSubMenu(selectSubMenu);
// -------------------------------
// Add a menu separator.
// -------------------------------
new MenuItem(fileMenu, SWT.SEPARATOR);
// --------------------------------------------------
// Create Select User ID menu item
// --------------------------------------------------
@ -387,35 +349,6 @@ public class TextWorkstationDlg extends CaveSWTDialog implements
});
}
private void createEvaluationSubMenu(Menu evalSubMenu) {
MenuItem evaluationLogItem = new MenuItem(evalSubMenu, SWT.NONE);
evaluationLogItem.setText("Evaluation Log");
evaluationLogItem.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent event) {
notImplementedYet("Evaluation Log");
}
});
MenuItem endOfShiftItem = new MenuItem(evalSubMenu, SWT.NONE);
endOfShiftItem.setText("End of Shift");
endOfShiftItem.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent event) {
notImplementedYet("End of Shift");
}
});
MenuItem questionnaireItem = new MenuItem(evalSubMenu, SWT.NONE);
questionnaireItem.setText("Questionnaire");
questionnaireItem.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent event) {
notImplementedYet("Questionnaire");
}
});
}
private void createAwipsLabel() {
GridData gd = new GridData(300, 20);
Label awipsBlankLabel = new Label(shell, SWT.NONE);
@ -598,17 +531,6 @@ public class TextWorkstationDlg extends CaveSWTDialog implements
}
// TODO - remove this when needed...
// this is a convenience method to show a dialog
// when functionality has not been implemented...
//
private void notImplementedYet(String information) {
MessageBox mb = new MessageBox(shell, SWT.ICON_ERROR | SWT.OK);
mb.setText("Notice");
mb.setMessage("Functionality not implemented yet:\n\n" + information);
mb.open();
}
@Override
public synchronized void notificationArrived(NotificationMessage[] messages) {
// SimpleDateFormat sdf = new