LOCAL_RADARS will not show under main menu anymore
Former-commit-id:26d3cfdf39
[formerly07afa1ef0d
] [formerly 13396447405d71652a5a45bdf024e2c65f3a9c5b [formerly67632b57bd
]] Former-commit-id: 8a107784ef89e4f80b84cf9d84c51f656bc40204 [formerly98678aa032
] Former-commit-id:4f28f24f15
This commit is contained in:
parent
f6df3bb55c
commit
46f7e6bb8d
1 changed files with 11 additions and 9 deletions
|
@ -90,22 +90,24 @@ public class RadarMenuUtil extends AbstractMenuUtil implements
|
|||
// retrieve the local radars from
|
||||
// radarsInUse.txt
|
||||
RadarsInUseUtil.setParsed(false);
|
||||
List<String> radars = RadarsInUseUtil.getSite(getSite(),
|
||||
RadarsInUseUtil.LOCAL_CONSTANT);
|
||||
|
||||
VariableSubstitution[] vars = null;
|
||||
// loop through all the radars
|
||||
Map<String, List<Double>> map = TerminalRadarUtils
|
||||
.parseTerminalRadarFile();
|
||||
String path = "menus" + File.separator + "radar" + File.separator;
|
||||
CommonMenuContributionFile menuContributionFile = new CommonMenuContributionFile();
|
||||
CommonIncludeMenuItem includeMenuItem = null;
|
||||
VariableSubstitution[] vars = null;
|
||||
/* Unidata comment out localized radars from menus
|
||||
List<String> radars = RadarsInUseUtil.getSite(getSite(),
|
||||
RadarsInUseUtil.LOCAL_CONSTANT);
|
||||
|
||||
if (radars.size() == 0) {
|
||||
menuContributionFile.contribution = new CommonIncludeMenuItem[1];
|
||||
} else {
|
||||
menuContributionFile.contribution = new CommonIncludeMenuItem[radars
|
||||
.size()];
|
||||
}
|
||||
// loop through all the radars
|
||||
Map<String, List<Double>> map = TerminalRadarUtils
|
||||
.parseTerminalRadarFile();
|
||||
|
||||
if (radars.size() > 0) {
|
||||
for (int i = radars.size() - 1; i >= 0; i--) {
|
||||
includeMenuItem = new CommonIncludeMenuItem();
|
||||
|
@ -166,9 +168,9 @@ public class RadarMenuUtil extends AbstractMenuUtil implements
|
|||
|
||||
toXml(menuContributionFile, "menus" + File.separator + "radar"
|
||||
+ File.separator + "index.xml");
|
||||
|
||||
*/
|
||||
// now on to dial radars
|
||||
radars = RadarsInUseUtil.getSite(getSite(),
|
||||
List<String> radars = RadarsInUseUtil.getSite(getSite(),
|
||||
RadarsInUseUtil.DIAL_CONSTANT);
|
||||
|
||||
// create MenuTemplateFile for the dialRadars.xml
|
||||
|
|
Loading…
Add table
Reference in a new issue