Causes the CAVE log to be output to the console for monitoring/debugging.
+
+
-nc
+
YES
+
This option is only used by Service backup. It is used to indicate that the site is
+ a national center, consequently a non-primary site gets special permission to export
+ site configuration to the central server via the Service Backup GUI. This option should
+ be set to 'true', i.e., -nc true.
+
+
diff --git a/cave/com.raytheon.viz.gfe/help/gfeConfig_StartUp.html b/cave/com.raytheon.viz.gfe/help/gfeConfig_StartUp.html
index 8e325e6577..c9162f1843 100644
--- a/cave/com.raytheon.viz.gfe/help/gfeConfig_StartUp.html
+++ b/cave/com.raytheon.viz.gfe/help/gfeConfig_StartUp.html
@@ -159,8 +159,9 @@ This item keyboard shortcuts. You are allowed up to 200
shortcuts.
IMPORTANT: You should test your shortcuts on your system as many
keys are already bound by the system. For example, F10 is bound
-by
-some Tk widgets to bring up menus.
+by some Tk widgets to bring up menus. Please note that AWIPS2 replaces
+the KP_ syntax with the NUMPAD_ syntax, i.e. KP_Add in AWIPS1 becomes
+NUMPAD_ADD in AWIPS2.
Each shortcut is defined by a list with entries:
Shortcut key
State of ShortCut key
@@ -198,10 +199,10 @@ Examples:
ShortCut1 = ["F1", "None",
"SmartTool","Assign_Value"]
# F1
-ShortCut2 = ["KP_Subtract", "None",
+ShortCut2 = ["NUMPAD_SUBTRACT", "None",
"SmartTool","AdjustValue_Down"]
# Keypad -
-ShortCut3 = ["KP_Add", "None",
+ShortCut3 = ["NUMPAD_ADD", "None",
"SmartTool","AdjustValue_Up"]
# Keypad + ShortCut4 = ["F2", "None", "SmartTool","Smooth"]
diff --git a/cave/com.raytheon.viz.gfe/src/com/raytheon/viz/gfe/core/parm/VCParm.java b/cave/com.raytheon.viz.gfe/src/com/raytheon/viz/gfe/core/parm/VCParm.java
index df92e266d9..74dae96982 100644
--- a/cave/com.raytheon.viz.gfe/src/com/raytheon/viz/gfe/core/parm/VCParm.java
+++ b/cave/com.raytheon.viz.gfe/src/com/raytheon/viz/gfe/core/parm/VCParm.java
@@ -116,7 +116,7 @@ public class VCParm extends VParm implements IParmListChangedListener,
Activator
.getDefault()
.getLog()
- .log(new Status(IStatus.WARNING, Activator.PLUGIN_ID,
+ .log(new Status(IStatus.INFO, Activator.PLUGIN_ID,
"Can't get GPI: " + this.mod.getErrorString()));
}
@@ -470,7 +470,7 @@ public class VCParm extends VParm implements IParmListChangedListener,
Activator
.getDefault()
.getLog()
- .log(new Status(IStatus.WARNING, Activator.PLUGIN_ID,
+ .log(new Status(IStatus.INFO, Activator.PLUGIN_ID,
"Error getting dependent WeatherElements: " + this.mod.getErrorString()));
}
diff --git a/cave/com.raytheon.viz.gfe/src/com/raytheon/viz/gfe/dialogs/formatterlauncher/ProductAreaComp.java b/cave/com.raytheon.viz.gfe/src/com/raytheon/viz/gfe/dialogs/formatterlauncher/ProductAreaComp.java
index 6ba210d317..45e098eef9 100644
--- a/cave/com.raytheon.viz.gfe/src/com/raytheon/viz/gfe/dialogs/formatterlauncher/ProductAreaComp.java
+++ b/cave/com.raytheon.viz.gfe/src/com/raytheon/viz/gfe/dialogs/formatterlauncher/ProductAreaComp.java
@@ -56,7 +56,8 @@ import com.raytheon.viz.gfe.textformatter.TextProductManager;
* 2 SEP 2011 10654 gzhou Delete running/pending task and close tab.
* 23 MAY 2012 14859 ryu Select VTEC formatting in practice mode
* based on VTECMessageType setting.
- * 10 AUG 2012 15178 mli Add autoWrite and autoStore capability
+ * 10 AUG 2012 15178 mli Add autoWrite and autoStore capability
+ * 26 SEP 2012 15423 ryu Fix product correction in practice mode
*
*
*
@@ -432,8 +433,11 @@ public class ProductAreaComp extends Composite implements
int pracType = 0;
if (practiceMode) {
- String pil = (String) textProductMgr.getProductDefinition(productName)
- .get("pil");
+ String pil = null;
+ if (textProductMgr.getProductDefinition(productName) != null) {
+ pil = (String) textProductMgr.getProductDefinition(productName)
+ .get("pil");
+ }
if (pil != null) {
String vtecMode = textProductMgr.getVtecMessageType(
pil.substring(0, 3));
@@ -643,7 +647,7 @@ public class ProductAreaComp extends Composite implements
if (productText != null) {
productEditorComp.retrieveActiveVTEC();
productEditorComp.setProductText(productText);
-
+
// handle autoWrite and autoStore...
productEditorComp.doAutoStuff();
}
diff --git a/cave/com.raytheon.viz.gfe/src/com/raytheon/viz/gfe/dialogs/formatterlauncher/StyledTextComp.java b/cave/com.raytheon.viz.gfe/src/com/raytheon/viz/gfe/dialogs/formatterlauncher/StyledTextComp.java
index 3faab1f87f..ee6beeec5f 100644
--- a/cave/com.raytheon.viz.gfe/src/com/raytheon/viz/gfe/dialogs/formatterlauncher/StyledTextComp.java
+++ b/cave/com.raytheon.viz.gfe/src/com/raytheon/viz/gfe/dialogs/formatterlauncher/StyledTextComp.java
@@ -1,19 +1,19 @@
/**
* 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.
**/
@@ -67,7 +67,7 @@ import com.raytheon.viz.gfe.textformatter.TextFmtParserUtil;
/**
* Composite containing the product editor.
- *
+ *
*
* SOFTWARE HISTORY
* Date Ticket# Engineer Description
@@ -75,12 +75,13 @@ import com.raytheon.viz.gfe.textformatter.TextFmtParserUtil;
* 05 Jan 2008 1784 lvenable Initial creation
* 19 Feb 2010 4132 ryu Product correction.
* 30 Jul 2010 6719 jnjanga Placed cursor at the end of inserted CTA
- *
+ * 26 Sep 2012 15423 ryu Avoid resetting text when possible.
+ *
*
- *
+ *
* @author lvenable
* @version 1.0
- *
+ *
*/
public class StyledTextComp extends Composite {
private static final transient IUFStatusHandler statusHandler = UFStatus
@@ -179,7 +180,7 @@ public class StyledTextComp extends Composite {
/**
* Constructor.
- *
+ *
* @param parent
* Parent composite.
*/
@@ -297,7 +298,7 @@ public class StyledTextComp extends Composite {
/**
* Get the StyledText editor.
- *
+ *
* @return The StyledText editor.
*/
public StyledText getTextEditorST() {
@@ -306,7 +307,7 @@ public class StyledTextComp extends Composite {
/**
* Set the product text.
- *
+ *
* @param text
* The product text.
*/
@@ -324,7 +325,7 @@ public class StyledTextComp extends Composite {
/**
* computes the logical caret offset within the ProductEditor as a result of
* the CTA insert.
- *
+ *
* @param newProductText
* The new product text
*/
@@ -483,7 +484,7 @@ public class StyledTextComp extends Composite {
/**
* Parse the product text string.
- *
+ *
* @param productText
*/
private void parseProductText(String productText) {
@@ -669,7 +670,7 @@ public class StyledTextComp extends Composite {
/**
* Handle the verify key event. This event fires after a change has been
* made to the control (after the text has been updated, for example)
- *
+ *
* @param event
* Verify event that was fired.
*/
@@ -765,7 +766,7 @@ public class StyledTextComp extends Composite {
/**
* Handle the key event when a key is released.
- *
+ *
* @param ke
* Key event.
*/
@@ -787,7 +788,7 @@ public class StyledTextComp extends Composite {
/**
* Check if there is selected text and if there is locked text in the
* selected text.
- *
+ *
* @return True if there is selected text that contains locked text.
*/
private boolean selectionHasLockedText() {
@@ -801,12 +802,12 @@ public class StyledTextComp extends Composite {
/**
* Check if there is locked text in the specified range of text.
- *
+ *
* @param offset
* The starting point of the locked text search.
* @param length
* The length of the search.
- *
+ *
* @return Whether or not there is text in the range that contains locked
* text.
*/
@@ -824,7 +825,7 @@ public class StyledTextComp extends Composite {
/**
* Select the framing code and the text contained in the framing code.
- *
+ *
* @param sr
* StyleRange.
*/
@@ -836,7 +837,7 @@ public class StyledTextComp extends Composite {
/**
* Check if the key being pressed is a "non-edit" key.
- *
+ *
* @param event
* Verify event.
* @return True if the key is an arrow or "non-edit" key.
@@ -870,7 +871,7 @@ public class StyledTextComp extends Composite {
/**
* Handle the mouse down event.
- *
+ *
* @param e
* Event fired.
*/
@@ -905,7 +906,7 @@ public class StyledTextComp extends Composite {
/**
* Handle the mouse up event
- *
+ *
* @param e
* Event fired.
*/
@@ -1012,7 +1013,7 @@ public class StyledTextComp extends Composite {
/**
* Checks if the system is editing, e.g. updating the issue time every
* minute, vs a user typing text in the text area
- *
+ *
* @return
*/
private boolean isSystemTextChange() {
@@ -1036,7 +1037,18 @@ public class StyledTextComp extends Composite {
dirty = false;
}
+ protected boolean isUpperCase(final String word) {
+ for (int index= word.length() - 1; index >= 0; index--) {
+ if (Character.isLowerCase(word.charAt(index)))
+ return false;
+ }
+ return true;
+ }
+
protected void upper() {
+ String text = textEditorST.getText();
+ if (isUpperCase(text))
+ return;
int topIdx = textEditorST.getTopIndex();
setProductText(textEditorST.getText().toUpperCase());
textEditorST.setTopIndex(topIdx);
@@ -1152,7 +1164,7 @@ public class StyledTextComp extends Composite {
/**
* Getter for the column at which wrap and auto-wrap will wrap the text.
- *
+ *
* @return the column number
*/
public int getWrapColumn() {
@@ -1161,7 +1173,7 @@ public class StyledTextComp extends Composite {
/**
* Getter for the column at which wrap and auto-wrap will wrap the text.
- *
+ *
* @param wrapColumn
* the column number
*/
@@ -1200,7 +1212,7 @@ public class StyledTextComp extends Composite {
/**
* Query the prefs for setting. If it does not exist, use colorDft as its
* value. Create an SWT Color for display from the value and return it.
- *
+ *
* @param prefs
* A preference store which might have config values.
* @param display
@@ -1223,7 +1235,7 @@ public class StyledTextComp extends Composite {
/**
* Send a PROBLEM message if color1 is exactly equal to color2.
- *
+ *
* @param color1
* the first color
* @param color2
@@ -1250,7 +1262,7 @@ public class StyledTextComp extends Composite {
*
* The getter name is different to avoid confusion with the getFgColor()
* method of Control.
- *
+ *
* @return the foreground Color
*/
public Color getFgndColor() {
@@ -1261,7 +1273,7 @@ public class StyledTextComp extends Composite {
* Get the framed text color of the StyledTextComp. This is the actual
* color, not a copy. It will be disposed when the StyledTextComp is, and
* should not be disposed before then.
- *
+ *
* @return the frameColor
*/
public Color getFrameColor() {
@@ -1272,7 +1284,7 @@ public class StyledTextComp extends Composite {
* Get the insert color of the StyledTextComp. This is the actual color, not
* a copy. It will be disposed when the StyledTextComp is, and should not be
* disposed before then.
- *
+ *
* @return the insertColor
*/
public Color getInsertColor() {
@@ -1283,7 +1295,7 @@ public class StyledTextComp extends Composite {
* Get the locked text color of the StyledTextComp. This is the actual
* color, not a copy. It will be disposed when the StyledTextComp is, and
* should not be disposed before then.
- *
+ *
* @return the lockColor
*/
public Color getLockColor() {
@@ -1293,7 +1305,7 @@ public class StyledTextComp extends Composite {
/**
* Word wrap the text in the block around cursorIndex. Adjust the cursor
* position to account for inserted or deleted whitespace.
- *
+ *
* @param st
* The StyledText in which word wrap is to be performed
* @param cursorIndex
diff --git a/cave/com.raytheon.viz.gfe/src/com/raytheon/viz/gfe/dialogs/sbu/ServiceBackupDlg.java b/cave/com.raytheon.viz.gfe/src/com/raytheon/viz/gfe/dialogs/sbu/ServiceBackupDlg.java
index 1a1bb92776..34cbf3c6e8 100644
--- a/cave/com.raytheon.viz.gfe/src/com/raytheon/viz/gfe/dialogs/sbu/ServiceBackupDlg.java
+++ b/cave/com.raytheon.viz.gfe/src/com/raytheon/viz/gfe/dialogs/sbu/ServiceBackupDlg.java
@@ -1198,7 +1198,7 @@ public class ServiceBackupDlg extends CaveJFACEDialog {
+ UserController.getUserObject().uniqueId());
}
- if (!runningAsPrimary) {
+ if ((!runningAsPrimary) && (!LocalizationManager.getInstance().isNationalCenter())) {
doExCon.setEnabled(false);
}
}
diff --git a/cave/com.raytheon.viz.gfe/src/com/raytheon/viz/gfe/makehazard/MakeHazardDialog.java b/cave/com.raytheon.viz.gfe/src/com/raytheon/viz/gfe/makehazard/MakeHazardDialog.java
index 9a46a21412..650fd16c55 100644
--- a/cave/com.raytheon.viz.gfe/src/com/raytheon/viz/gfe/makehazard/MakeHazardDialog.java
+++ b/cave/com.raytheon.viz.gfe/src/com/raytheon/viz/gfe/makehazard/MakeHazardDialog.java
@@ -29,6 +29,7 @@ import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
+import java.util.Map.Entry;
import java.util.Set;
import java.util.TimeZone;
@@ -226,6 +227,8 @@ public class MakeHazardDialog extends CaveSWTDialog implements
private boolean running;
+ private org.eclipse.swt.widgets.List hazardGroupList;
+
public MakeHazardDialog(Shell parent, DataManager dataManager,
String colorName, int defaultMapWidth, int timeScaleEndTime,
float areaThreshold, String defaultHazardType,
@@ -1014,9 +1017,8 @@ public class MakeHazardDialog extends CaveSWTDialog implements
}
};
- org.eclipse.swt.widgets.List hazardGroupList = new org.eclipse.swt.widgets.List(
- hazardTypeGroup, SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL
- | SWT.SINGLE);
+ hazardGroupList = new org.eclipse.swt.widgets.List(hazardTypeGroup,
+ SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL | SWT.SINGLE);
gd = new GridData(SWT.FILL, SWT.DEFAULT, true, false);
gd.heightHint = hazardGroupList.getItemHeight() * 12
+ hazardGroupList.getBorderWidth();
@@ -1334,6 +1336,7 @@ public class MakeHazardDialog extends CaveSWTDialog implements
* the hazard type to select.
*/
public void setHazardType(String hazardType) {
+ hazardGroupList.setSelection(hazardGroupList.indexOf(hazardType));
updateSelectedHazardList(hazardType);
if (this.localEffectAreas.containsKey(hazardType)) {
@@ -1362,7 +1365,14 @@ public class MakeHazardDialog extends CaveSWTDialog implements
leGroup.setVisible(false);
((GridData) leGroup.getLayoutData()).exclude = true;
this.hazLocalEffect = "None";
- this.etnSegNumberField.setText("");
+ String s = etnSegNumberField.getText();
+ for (Entry> entry : localAreaData.entrySet()) {
+ if (s.equals(entry.getValue().get(0))) {
+ this.etnSegNumberField.setText("");
+ this.etnSegNumberField.setSelection(0);
+ break;
+ }
+ }
}
}
@@ -1391,9 +1401,9 @@ public class MakeHazardDialog extends CaveSWTDialog implements
}
}
- private void hazardLocalEffectSelected(String s) {
- this.hazLocalEffect = s;
- List