core/com.nokia.carbide.win32.utils/plugin.xml
author dadubrow
Wed, 30 Jun 2010 15:34:24 -0500
changeset 1564 1c3ed56966df
parent 0 fb279309251b
permissions -rw-r--r--
remove show in explorer/command prompt from editor context menu

<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>
<plugin>
  <extension
        point="org.eclipse.ui.commands">
     <command
           id="com.nokia.carbide.win32.utils.openInWindowsExplorer"
           name="Show in Explorer">
     </command>
     <command
           id="com.nokia.carbide.win32.utils.openInCmdPrompt"
           name="Open Command Window">
     </command>
  </extension>
  <extension
        point="org.eclipse.ui.handlers">
     <handler
           class="com.nokia.carbide.internal.win32.utils.actions.OpenInExplorerHandler"
           commandId="com.nokia.carbide.win32.utils.openInWindowsExplorer">
     </handler>
     <handler
           class="com.nokia.carbide.internal.win32.utils.actions.OpenInCmdPromptHandler"
           commandId="com.nokia.carbide.win32.utils.openInCmdPrompt">
     </handler>
  </extension>
  <extension point="org.eclipse.core.expressions.definitions">
      <definition id="com.nokia.carbide.win32.utils.singleResource">
          <with variable="activeMenuSelection">
             <count value="1"/>
             <iterate ifEmpty="false">
	            <adapt type="org.eclipse.core.resources.IResource"/>
	         </iterate>
          </with>
      </definition>
  </extension>
  <extension
        point="org.eclipse.ui.menus">
     <menuContribution
           locationURI="popup:org.eclipse.ui.popup.any?after=additions">
        <command
              commandId="com.nokia.carbide.win32.utils.openInWindowsExplorer"
              style="push">
           <visibleWhen
                 checkEnabled="false">
    			<reference definitionId="com.nokia.carbide.win32.utils.singleResource"/>
           </visibleWhen>
        </command>
        <command
              commandId="com.nokia.carbide.win32.utils.openInCmdPrompt"
              style="push">
           <visibleWhen
                 checkEnabled="false">
    			<reference definitionId="com.nokia.carbide.win32.utils.singleResource"/>
           </visibleWhen>
        </command>
     </menuContribution>
  </extension>
</plugin>