<?xml version="1.0" encoding="UTF-8"?>
    <!--
        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.
    -->

<?eclipse version="3.2"?>
<plugin>
   <extension
         point="org.eclipse.core.expressions.propertyTesters">
      <propertyTester
            class="com.raytheon.viz.warngen.site.SiteModePropertyTester"
            id="com.raytheon.viz.warngen.site.SiteModePropertyTester"
            namespace="com.raytheon.viz.warngen.site"
            properties="SiteMode"
            type="java.lang.Object">
      </propertyTester>
   </extension>
   <extension
         point="org.eclipse.ui.handlers">
      <handler
            class="com.raytheon.viz.warngen.gui.WarngenAction"
            commandId="com.raytheon.viz.warngen.gui.WarngenAction">
      </handler>
   </extension>
   <extension
         point="org.eclipse.ui.commands">
      <command
            id="com.raytheon.viz.warngen.gui.WarngenAction"
            name="Warngen">
      </command>
   </extension>
   <extension
		point="org.eclipse.ui.menus">
		<menuContribution
			locationURI="toolbar:org.eclipse.ui.main.toolbar?after=d2d-3">
			<toolbar
				id="plugins">
				<command
					commandId="com.raytheon.viz.warngen.gui.WarngenAction"
					icon="icons/warngen.gif"
					label="Warngen">
					<visibleWhen>
					    <and>
							<reference
								definitionId="com.raytheon.uf.viz.d2d.ui.inD2DActionSet">
							</reference>
							<test
	        					args="WFO"
	        					forcePluginActivation="true"
	        					property="com.raytheon.viz.warngen.site.SiteMode">
	                      	</test>
                       </and>
					</visibleWhen>
				</command>
			</toolbar>
		</menuContribution>
		<menuContribution locationURI="menu:tools">
			<command
				commandId="com.raytheon.viz.warngen.gui.WarngenAction"
				label="Warngen">
				<visibleWhen>
				    <and>
						<reference
							definitionId="com.raytheon.uf.viz.d2d.ui.inD2DActionSet">
						</reference>
						<test
        					args="WFO"
        					forcePluginActivation="true"
        					property="com.raytheon.viz.warngen.site.SiteMode">
                      	</test>
                   </and>
				</visibleWhen>
			</command>
		</menuContribution>
   </extension>
   <extension
       point="com.raytheon.uf.viz.localization.localizationpath">
       <path
          application="D2D"
          localizationType="COMMON_STATIC"
          name="Warngen"
          value="warngen" 
          recursive="true">
       </path>
    </extension>
</plugin>