ncradar command showing but disabled, had to remove and re-add command/action/handler in gov.noaa.nws.ncep.viz.ui.perspectives/plugin.xml
This commit is contained in:
parent
e6eaa7dbfd
commit
705e4f95a9
2 changed files with 41 additions and 11 deletions
|
@ -75,7 +75,7 @@
|
||||||
<command
|
<command
|
||||||
commandId="gov.noaa.nws.ncep.viz.actions.resourceManager"
|
commandId="gov.noaa.nws.ncep.viz.actions.resourceManager"
|
||||||
id="gov.noaa.nws.ncep.viz.actions.resourceManager"
|
id="gov.noaa.nws.ncep.viz.actions.resourceManager"
|
||||||
label="New Data Bundle"
|
label="Data"
|
||||||
style="push"
|
style="push"
|
||||||
tooltip="Resource Manager">
|
tooltip="Resource Manager">
|
||||||
<visibleWhen>
|
<visibleWhen>
|
||||||
|
@ -414,6 +414,28 @@
|
||||||
</command>
|
</command>
|
||||||
-->
|
-->
|
||||||
</menu>
|
</menu>
|
||||||
|
<menu
|
||||||
|
id="satellite"
|
||||||
|
label="Satellite"
|
||||||
|
mnemonic="S">
|
||||||
|
<separator
|
||||||
|
name="MENUSTART"
|
||||||
|
visible="false">
|
||||||
|
</separator>
|
||||||
|
<separator
|
||||||
|
name="GROUPX"
|
||||||
|
visible="false">
|
||||||
|
</separator>
|
||||||
|
<separator
|
||||||
|
name="MENUEND"
|
||||||
|
visible="false">
|
||||||
|
</separator>
|
||||||
|
<visibleWhen>
|
||||||
|
<reference
|
||||||
|
definitionId="gov.noaa.nws.ncep.viz.ui.personalities.inNCActionSet">
|
||||||
|
</reference>
|
||||||
|
</visibleWhen>
|
||||||
|
</menu>
|
||||||
<!--menu
|
<!--menu
|
||||||
id="NCHelp"
|
id="NCHelp"
|
||||||
label="Help"
|
label="Help"
|
||||||
|
@ -461,11 +483,10 @@
|
||||||
locationURI="toolbar:org.eclipse.ui.main.toolbar">
|
locationURI="toolbar:org.eclipse.ui.main.toolbar">
|
||||||
<toolbar
|
<toolbar
|
||||||
id="NC-1">
|
id="NC-1">
|
||||||
<command
|
<command
|
||||||
commandId="gov.noaa.nws.ncep.viz.actions.resourceManager"
|
commandId="gov.noaa.nws.ncep.viz.ui.newResource"
|
||||||
icon="icons/plus.png"
|
icon="icons/plus.png"
|
||||||
id="gov.noaa.nws.ncep.viz.actions.resourceManager"
|
label="Load"
|
||||||
label="Data Bundle"
|
|
||||||
mode="FORCE_TEXT"
|
mode="FORCE_TEXT"
|
||||||
style="push"
|
style="push"
|
||||||
tooltip="Load">
|
tooltip="Load">
|
||||||
|
@ -474,10 +495,6 @@
|
||||||
definitionId="gov.noaa.nws.ncep.viz.ui.personalities.inNCActionSet">
|
definitionId="gov.noaa.nws.ncep.viz.ui.personalities.inNCActionSet">
|
||||||
</reference>
|
</reference>
|
||||||
</visibleWhen>
|
</visibleWhen>
|
||||||
<parameter
|
|
||||||
name="mode"
|
|
||||||
value="CREATE_RBD">
|
|
||||||
</parameter>
|
|
||||||
</command>
|
</command>
|
||||||
<command
|
<command
|
||||||
commandId="gov.noaa.nws.ncep.viz.ui.actions.clearData"
|
commandId="gov.noaa.nws.ncep.viz.ui.actions.clearData"
|
||||||
|
@ -626,6 +643,11 @@
|
||||||
id="edu.ucar.unidata.ui.ncradarui.palette"
|
id="edu.ucar.unidata.ui.ncradarui.palette"
|
||||||
label="Ncradar"
|
label="Ncradar"
|
||||||
style="push">
|
style="push">
|
||||||
|
<visibleWhen>
|
||||||
|
<reference
|
||||||
|
definitionId="gov.noaa.nws.ncep.viz.ui.personalities.inNCActionSet">
|
||||||
|
</reference>
|
||||||
|
</visibleWhen>
|
||||||
</command>
|
</command>
|
||||||
</toolbar>
|
</toolbar>
|
||||||
</menuContribution>
|
</menuContribution>
|
||||||
|
@ -775,7 +797,11 @@
|
||||||
<visibleWhen>
|
<visibleWhen>
|
||||||
<reference
|
<reference
|
||||||
definitionId="gov.noaa.nws.ncep.viz.ui.personalities.notInNCActionSet">
|
definitionId="gov.noaa.nws.ncep.viz.ui.personalities.notInNCActionSet">
|
||||||
<command
|
</reference>
|
||||||
|
</visibleWhen>
|
||||||
|
</toolbar>
|
||||||
|
</command>
|
||||||
|
<command
|
||||||
id="edu.ucar.unidata.ui.ncradarui.palette"
|
id="edu.ucar.unidata.ui.ncradarui.palette"
|
||||||
name="Ncradar">
|
name="Ncradar">
|
||||||
</command>/command>
|
</command>/command>
|
||||||
|
@ -814,6 +840,10 @@
|
||||||
id="gov.noaa.nws.ncep.viz.ui.preferences.handler"
|
id="gov.noaa.nws.ncep.viz.ui.preferences.handler"
|
||||||
name="Preferences Handler">
|
name="Preferences Handler">
|
||||||
</command>
|
</command>
|
||||||
|
<command
|
||||||
|
id="edu.ucar.unidata.ui.ncradarui.palette"
|
||||||
|
name="name">
|
||||||
|
</command>
|
||||||
</extension>
|
</extension>
|
||||||
|
|
||||||
<extension
|
<extension
|
||||||
|
|
|
@ -235,7 +235,7 @@ public class NcradaruiPaletteWindow extends ViewPart implements
|
||||||
* if(mapEditor != null) return; File rbdFile =
|
* if(mapEditor != null) return; File rbdFile =
|
||||||
* LocalizationManager.getInstance().getLocalizationFile("defaultRBDFile");
|
* LocalizationManager.getInstance().getLocalizationFile("defaultRBDFile");
|
||||||
* try { mapEditor =
|
* try { mapEditor =
|
||||||
* NcDisplayMngr.createNatlCntrsEditor("ncradar-Map","NCRADAR" ); NcMapRBD rbd
|
* NcDisplayMngr.createNatlCntrsEditor("NCRadar-Map","NCRADAR" ); NcMapRBD rbd
|
||||||
* = NcMapRBD.unmarshalRBD( rbdFile, null ); rbd.setNcEditor( mapEditor );
|
* = NcMapRBD.unmarshalRBD( rbdFile, null ); rbd.setNcEditor( mapEditor );
|
||||||
* ResourceBndlLoader rbdLoader = new ResourceBndlLoader("DefaultMap");
|
* ResourceBndlLoader rbdLoader = new ResourceBndlLoader("DefaultMap");
|
||||||
* rbdLoader.addRBD( rbd ); VizApp.runSync( rbdLoader );
|
* rbdLoader.addRBD( rbd ); VizApp.runSync( rbdLoader );
|
||||||
|
|
Loading…
Add table
Reference in a new issue