From cb6a3e2cf5a5640a6b91d1fdb7a79ca6ed2120b9 Mon Sep 17 00:00:00 2001 From: Mike Duff Date: Tue, 18 Mar 2014 09:02:15 -0500 Subject: [PATCH] Issue #2855 - Implement HPC menus for NDM, refactor NDM code so more code is common. Peer review comments Change-Id: Ie27e8f93d976dcc0573631472986898b3ad8c9ef Former-commit-id: 29a88687a788305be537ef97cce13e3f45338205 --- .../menus/ncepHydro/hpc/baseHPC.xml | 13 +- .../menus/ncepHydro/hpc/hpcMenus.xml | 206 +++++++++++++++ .../menus/ncepHydro/spc/baseSPC.xml | 2 +- .../SampleFiles/RedbookHPCMenus.xml | 215 ++++++++++++++++ .../SampleFiles/RedbookHazardMenus.xml | 122 ++++----- .../res/spring/redbook-ingest.xml | 5 + .../ingest/RedbookHazardsMenuUtil.java | 187 -------------- .../redbook/ingest/RedbookMenuSubscriber.java | 11 +- .../plugin/redbook/ingest/xml/ButtonXML.java | 181 ------------- .../plugin/redbook/ingest/xml/MenuEntry.java | 243 ++++++++++++++++++ .../redbook/ingest/xml/MenuEntryType.java | 85 ++++++ ...zardMenusXML.java => RedbookMenusXML.java} | 34 +-- .../plugin/redbook/ingest/xml/SubmenuXML.java | 128 --------- .../redbook/ingest/xml/SubstituteXML.java | 97 ------- .../redbook/menu/RedbookHazardsMenuUtil.java | 94 +++++++ .../redbook/menu/RedbookHpcMenuUtil.java | 93 +++++++ .../plugin/redbook/menu/RedbookMenuUtil.java | 210 +++++++++++++++ 17 files changed, 1244 insertions(+), 682 deletions(-) create mode 100644 cave/com.raytheon.uf.viz.d2d.ui.ncephydro/localization/menus/ncepHydro/hpc/hpcMenus.xml create mode 100644 edexOsgi/com.raytheon.edex.plugin.redbook/Documentation/SampleFiles/RedbookHPCMenus.xml delete mode 100644 edexOsgi/com.raytheon.edex.plugin.redbook/src/com/raytheon/edex/plugin/redbook/ingest/RedbookHazardsMenuUtil.java delete mode 100644 edexOsgi/com.raytheon.edex.plugin.redbook/src/com/raytheon/edex/plugin/redbook/ingest/xml/ButtonXML.java create mode 100644 edexOsgi/com.raytheon.edex.plugin.redbook/src/com/raytheon/edex/plugin/redbook/ingest/xml/MenuEntry.java create mode 100644 edexOsgi/com.raytheon.edex.plugin.redbook/src/com/raytheon/edex/plugin/redbook/ingest/xml/MenuEntryType.java rename edexOsgi/com.raytheon.edex.plugin.redbook/src/com/raytheon/edex/plugin/redbook/ingest/xml/{RedbookHazardMenusXML.java => RedbookMenusXML.java} (66%) delete mode 100644 edexOsgi/com.raytheon.edex.plugin.redbook/src/com/raytheon/edex/plugin/redbook/ingest/xml/SubmenuXML.java delete mode 100644 edexOsgi/com.raytheon.edex.plugin.redbook/src/com/raytheon/edex/plugin/redbook/ingest/xml/SubstituteXML.java create mode 100644 edexOsgi/com.raytheon.edex.plugin.redbook/src/com/raytheon/edex/plugin/redbook/menu/RedbookHazardsMenuUtil.java create mode 100644 edexOsgi/com.raytheon.edex.plugin.redbook/src/com/raytheon/edex/plugin/redbook/menu/RedbookHpcMenuUtil.java create mode 100644 edexOsgi/com.raytheon.edex.plugin.redbook/src/com/raytheon/edex/plugin/redbook/menu/RedbookMenuUtil.java diff --git a/cave/com.raytheon.uf.viz.d2d.ui.ncephydro/localization/menus/ncepHydro/hpc/baseHPC.xml b/cave/com.raytheon.uf.viz.d2d.ui.ncephydro/localization/menus/ncepHydro/hpc/baseHPC.xml index 9fa200a592..554c629687 100644 --- a/cave/com.raytheon.uf.viz.d2d.ui.ncephydro/localization/menus/ncepHydro/hpc/baseHPC.xml +++ b/cave/com.raytheon.uf.viz.d2d.ui.ncephydro/localization/menus/ncepHydro/hpc/baseHPC.xml @@ -23,14 +23,7 @@ - - - - - - - - + + + \ No newline at end of file diff --git a/cave/com.raytheon.uf.viz.d2d.ui.ncephydro/localization/menus/ncepHydro/hpc/hpcMenus.xml b/cave/com.raytheon.uf.viz.d2d.ui.ncephydro/localization/menus/ncepHydro/hpc/hpcMenus.xml new file mode 100644 index 0000000000..5a1365e067 --- /dev/null +++ b/cave/com.raytheon.uf.viz.d2d.ui.ncephydro/localization/menus/ncepHydro/hpc/hpcMenus.xml @@ -0,0 +1,206 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/cave/com.raytheon.uf.viz.d2d.ui.ncephydro/localization/menus/ncepHydro/spc/baseSPC.xml b/cave/com.raytheon.uf.viz.d2d.ui.ncephydro/localization/menus/ncepHydro/spc/baseSPC.xml index 6a69557f1a..9344f90add 100644 --- a/cave/com.raytheon.uf.viz.d2d.ui.ncephydro/localization/menus/ncepHydro/spc/baseSPC.xml +++ b/cave/com.raytheon.uf.viz.d2d.ui.ncephydro/localization/menus/ncepHydro/spc/baseSPC.xml @@ -27,5 +27,5 @@ menuText="Svr Wx Plot" id="spcWxPlot"> - + \ No newline at end of file diff --git a/edexOsgi/com.raytheon.edex.plugin.redbook/Documentation/SampleFiles/RedbookHPCMenus.xml b/edexOsgi/com.raytheon.edex.plugin.redbook/Documentation/SampleFiles/RedbookHPCMenus.xml new file mode 100644 index 0000000000..0e882b40fa --- /dev/null +++ b/edexOsgi/com.raytheon.edex.plugin.redbook/Documentation/SampleFiles/RedbookHPCMenus.xml @@ -0,0 +1,215 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/edexOsgi/com.raytheon.edex.plugin.redbook/Documentation/SampleFiles/RedbookHazardMenus.xml b/edexOsgi/com.raytheon.edex.plugin.redbook/Documentation/SampleFiles/RedbookHazardMenus.xml index f3976c4196..c5be727438 100644 --- a/edexOsgi/com.raytheon.edex.plugin.redbook/Documentation/SampleFiles/RedbookHazardMenus.xml +++ b/edexOsgi/com.raytheon.edex.plugin.redbook/Documentation/SampleFiles/RedbookHazardMenus.xml @@ -9,80 +9,80 @@ RedbookHazardMenus.xml as written here will generate the base version of the SPC hazard menus. --> - - - - - - - - - - - - - - - - - - - + + + \ No newline at end of file diff --git a/edexOsgi/com.raytheon.edex.plugin.redbook/res/spring/redbook-ingest.xml b/edexOsgi/com.raytheon.edex.plugin.redbook/res/spring/redbook-ingest.xml index 47045fd1f6..842df4a7cf 100644 --- a/edexOsgi/com.raytheon.edex.plugin.redbook/res/spring/redbook-ingest.xml +++ b/edexOsgi/com.raytheon.edex.plugin.redbook/res/spring/redbook-ingest.xml @@ -20,6 +20,11 @@ + + + + +