Merge remote-tracking branch 'omaha/omaha_16.1.1-redelivery' into master_16.1.1

Former-commit-id: bc21b3c3012c608e2a327e55827fa7fb19a558c3
This commit is contained in:
Shawn.Hooper 2015-12-11 14:43:06 -05:00
commit be77f3b2bb
2 changed files with 15 additions and 11 deletions

View file

@ -91,7 +91,6 @@ import com.raytheon.viz.gfe.textformatter.TextFmtParserUtil;
* editing of framing codes.
* 07/02/2015 13753 lshi Update times for products in Product Editor
* 08/06/2015 13753 lshi use isSystemTextChange instead of isUpdateTime
* 11/19/2015 5141 randerso Changed upper() to also replace commas with ellipses
* 12/04/2015 13753 lshi revert 13753
*
*
@ -1024,13 +1023,11 @@ public class StyledTextComp extends Composite {
protected void upper() {
String text = textEditorST.getText();
if (isUpperCase(text) && !text.contains(",")) {
if (isUpperCase(text)) {
return;
}
text = text.toUpperCase();
text = text.replaceAll(", {0,1}", "...");
int topIdx = textEditorST.getTopIndex();
setProductText(text);
setProductText(textEditorST.getText().toUpperCase());
textEditorST.setTopIndex(topIdx);
}

View file

@ -356,6 +356,7 @@ import com.raytheon.viz.ui.simulatedtime.SimulatedTimeOperations;
* 07Oct2015 RM 18132 D. Friedman Exlucde certain phensigs from automatic ETN incrementing.
* 19Nov2015 5141 randerso Replace commas with ellipses if product not enabled for
* mixed case transmission
* 10Dec2015 5206 randerso Replace commas with ellipses only in WarnGen products
*
* </pre>
*
@ -387,6 +388,10 @@ public class TextEditorDialog extends CaveSWTDialog implements VerifyListener,
private static List<String> gfePils = Arrays.asList("WSW", "NPW", "HLS",
"CFW", "WCN", "FFA", "MWW", "RFW");
private static final List<String> warngenPils = Arrays.asList("AWW", "EWW",
"FFS", "FFW", "FLS", "FLW", "FRW", "MWS", "NOW", "SMW", "SPS",
"SVR", "SVS", "TOR");
/**
* Default list of VTEC phenomena significance codes for which the ETN
* should not be changed when sending a NEW-action product.
@ -4235,9 +4240,10 @@ public class TextEditorDialog extends CaveSWTDialog implements VerifyListener,
// section
setCurrentHeaderAndBody();
// if product is not enabled for mixed case transmission,
// replace all commas with ellipses
if (!MixedCaseProductSupport.isMixedCase(product.getNnnid())) {
// if product a WarnGen product and is not enabled for mixed case
// transmission, replace all commas with ellipses
if (warngenPils.contains(product.getNnnid())
&& !MixedCaseProductSupport.isMixedCase(product.getNnnid())) {
textEditor.setText(textEditor.getText()
.replaceAll(", {0,1}", "..."));
}
@ -7112,9 +7118,10 @@ public class TextEditorDialog extends CaveSWTDialog implements VerifyListener,
textEditor.append(textProduct);
// if product is not enabled for mixed case transmission,
// replace all commas with ellipses
if (!MixedCaseProductSupport.isMixedCase(product.getNnnid())) {
// if product a WarnGen product and is not enabled for mixed case
// transmission, replace all commas with ellipses
if (warngenPils.contains(product.getNnnid())
&& !MixedCaseProductSupport.isMixedCase(product.getNnnid())) {
textEditor.setText(textEditor.getText()
.replaceAll(", {0,1}", "..."));
}