<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.2"?>
<plugin>
   <extension
         id="org.python.pydev.refactoring.commandContribution"
         point="org.eclipse.ui.commands">
      <category
            id="org.python.pydev.refactoring.pepticCategory"
            name="%peptic.category"
            description="%peptic.description"/>
      <command
            categoryId="org.python.pydev.refactoring.pepticCategory"
            description="%peptic.GeneratePropertiesDescription"
            id="org.python.pydev.refactoring.ui.actions.GeneratePropertiesCommand"
            name="%peptic.GeneratePropertiesLabel"/>
      <command
            categoryId="org.python.pydev.refactoring.pepticCategory"
            description="%peptic.GenerateConstructorFieldDescription"
            id="org.python.pydev.refactoring.ui.actions.ConstructorFieldCommand"
            name="%peptic.GenerateConstructorFieldLabel"/>
      <command
            categoryId="org.python.pydev.refactoring.pepticCategory"
            description="%peptic.OverrideMethodsDescription"
            id="org.python.pydev.refactoring.ui.actions.OverrideMethodsCommand"
            name="%peptic.OverrideMethodsLabel"/>
      <command
            categoryId="org.python.pydev.refactoring.pepticCategory"
            description="%peptic.ExtractMethodDescription"
            id="org.python.pydev.refactoring.ui.actions.ExtractMethodCommand"
            name="%peptic.ExtractMethodLabel"/>
      <!-- waiting for bug fixes
      <command
            categoryId="org.python.pydev.refactoring.pepticCategory"
            description="%peptic.ExtractLocalDescription"
            id="org.python.pydev.refactoring.ui.actions.ExtractLocalCommand"
            name="%peptic.ExtractLocalLabel"/>
      <command
            categoryId="org.python.pydev.refactoring.pepticCategory"
            description="%peptic.GenerateDocstringDescription"
            id="org.python.pydev.refactoring.ui.actions.GenerateDocstringCommand"
            name="%peptic.GenerateDocstringLabel"/>
      -->
   </extension>
   <extension
         id="org.python.pydev.refactoring.editorContribution"
         name="editorContribution"
         point="org.eclipse.ui.editorActions">
      <editorContribution
            id="org.python.pydev.refactoring.editorContribution"
            targetID="org.python.pydev.editor.PythonEditor">
         <menu
               id="org.python.pydev.refactoring.refactoringMenu"
               label="Refactoring"
               path="org.python.pydev.editor.actions.sourceMenu">
            <separator name="pepticRefactoringGroup"/>
            <separator name="pepticSourceGroup"/>
         </menu>
         <action
               class="org.python.pydev.refactoring.ui.actions.OverrideMethodsAction"
               definitionId="org.python.pydev.refactoring.ui.actions.OverrideMethodsCommand"
               id="org.python.pydev.refactoring.ui.actions.OverrideMethodsMenuAction"
               label="%peptic.OverrideMethodsLabel"
               menubarPath="org.python.pydev.refactoring.refactoringMenu/pepticSourceGroup"
               style="push"/>
        <action
               class="org.python.pydev.refactoring.ui.actions.ConstructorFieldAction"
               definitionId="org.python.pydev.refactoring.ui.actions.ConstructorFieldCommand"
               id="org.python.pydev.refactoring.ui.actions.ConstructorFieldMenuAction"
               label="%peptic.GenerateConstructorFieldLabel"
               menubarPath="org.python.pydev.refactoring.refactoringMenu/pepticSourceGroup"
               style="push"/>
         <action
               class="org.python.pydev.refactoring.ui.actions.GeneratePropertiesAction"
               definitionId="org.python.pydev.refactoring.ui.actions.GeneratePropertiesCommand"
               id="org.python.pydev.refactoring.actions.GenerateMenuAction"
               label="%peptic.GeneratePropertiesLabel"
               menubarPath="org.python.pydev.refactoring.refactoringMenu/pepticSourceGroup"
               style="push"/>
	     <!-- waiting for bug fixes
         <action
               class="org.python.pydev.refactoring.ui.actions.GenerateDocstringAction"
               definitionId="org.python.pydev.refactoring.ui.actions.GenerateDocstringCommand"
               id="org.python.pydev.refactoring.ui.actions.GenerateDocstringMenuAction"
               label="%peptic.GenerateDocstringLabel"
               menubarPath="org.python.pydev.refactoring.refactoringMenu/pepticSourceGroup"
               style="push"/>
         -->
         <action
               class="org.python.pydev.refactoring.ui.actions.ExtractMethodAction"
               definitionId="org.python.pydev.refactoring.ui.actions.ExtractMethodCommand"
               id="org.python.pydev.refactoring.ui.actions.ExtractMethodMenuAction"
               label="%peptic.ExtractMethodLabel"
               menubarPath="org.python.pydev.refactoring.refactoringMenu/pepticRefactoringGroup"
               style="push"/>
	     <!-- waiting for bug fixes
         <action
               class="org.python.pydev.refactoring.ui.actions.ExtractLocalAction"
               definitionId="org.python.pydev.refactoring.ui.actions.ExtractLocalCommand"
               id="org.python.pydev.refactoring.ui.actions.ExtractLocalMenuAction"
               label="%peptic.ExtractLocalLabel"
               menubarPath="org.python.pydev.refactoring.refactoringMenu/pepticRefactoringGroup"
               style="push"/>
         -->
      </editorContribution>
   </extension>
   <extension
         id="org.python.pydev.refactoring.popupContribution"
         point="org.eclipse.ui.popupMenus">
      <viewerContribution
            id="org.python.pydev.refactoring.popupContribution"
            targetID="#PyEditContext">
         <menu
               id="org.python.pydev.editor.refactoring"
               label="Refactoring"
               path="Refactoring">
            <separator name="pepticRefactoringGroup"/>
            <separator name="pepticSourceGroup"/>
         </menu>
         <action
               class="org.python.pydev.refactoring.ui.actions.OverrideMethodsAction"
               definitionId="org.python.pydev.refactoring.ui.actions.OverrideMethodsCommand"
               id="org.python.pydev.refactoring.ui.actions.OverrideMethodsAction"
               label="%peptic.OverrideMethodsLabel"
               menubarPath="org.python.pydev.editor.refactoring/pepticSourceGroup"/>
         <action
               class="org.python.pydev.refactoring.ui.actions.ConstructorFieldAction"
               definitionId="org.python.pydev.refactoring.ui.actions.ConstructorFieldCommand"
               id="org.python.pydev.refactoring.ui.actions.ConstructorFieldAction"
               label="%peptic.GenerateConstructorFieldLabel"
               menubarPath="org.python.pydev.editor.refactoring/pepticSourceGroup"/>
         <action
               class="org.python.pydev.refactoring.ui.actions.GeneratePropertiesAction"
               definitionId="org.python.pydev.refactoring.ui.actions.GeneratePropertiesCommand"
               id="org.python.pydev.refactoring.ui.actions.RenameAction"
               label="%peptic.GeneratePropertiesLabel"
               menubarPath="org.python.pydev.editor.refactoring/pepticSourceGroup"/>
         <!-- waiting for bug fixes
         <action
               class="org.python.pydev.refactoring.ui.actions.GenerateDocstringAction"
               definitionId="org.python.pydev.refactoring.ui.actions.GenerateDocstringCommand"
               id="org.python.pydev.refactoring.ui.actions.GenerateDocstringAction"
               label="%peptic.GenerateDocstringLabel"
               menubarPath="org.python.pydev.editor.refactoring/pepticSourceGroup"/>
         -->
         <action
               class="org.python.pydev.refactoring.ui.actions.ExtractMethodAction"
               definitionId="org.python.pydev.refactoring.ui.actions.ExtractMethodCommand"
               id="org.python.pydev.refactoring.ui.actions.ExtractMethodAction"
               label="%peptic.ExtractMethodLabel"
               menubarPath="org.python.pydev.editor.refactoring/pepticRefactoringGroup">
         </action>
         <!-- waiting for bug fixes
              <action
               class="org.python.pydev.refactoring.ui.actions.ExtractLocalAction"
               definitionId="org.python.pydev.refactoring.ui.actions.ExtractLocalCommand"
               id="org.python.pydev.refactoring.ui.actions.ExtractLocalAction"
               label="%peptic.ExtractLocalLabel"
               menubarPath="org.python.pydev.editor.refactoring/pepticRefactoringGroup">
         </action>
         -->
      </viewerContribution>
   </extension>
   <extension
         point="org.eclipse.ui.bindings">
      <key
            commandId="org.python.pydev.refactoring.ui.actions.GeneratePropertiesCommand"
            contextId="org.python.pydev.ui.editor.scope"
            schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
            sequence="M3+M2+T P"/>
      <key
            commandId="org.python.pydev.refactoring.ui.actions.ConstructorFieldCommand"
            contextId="org.python.pydev.ui.editor.scope"
            schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
            sequence="M3+M2+T C"/>
      <key
            commandId="org.python.pydev.refactoring.ui.actions.OverrideMethodsCommand"
            contextId="org.python.pydev.ui.editor.scope"
            schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
            sequence="M3+M2+T O"/>
      <!-- waiting for bug fixes
      <key
            commandId="org.python.pydev.refactoring.ui.actions.GenerateDocstringCommand"
            contextId="org.python.pydev.ui.editor.scope"
            schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
            sequence="M3+M2+T D"/>
      -->
      <key
            commandId="org.python.pydev.refactoring.ui.actions.ExtractMethodCommand"
            contextId="org.python.pydev.ui.editor.scope"
            schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
            sequence="M3+M2+T E"/>
      <!-- waiting for bug fixes
      <key
            commandId="org.python.pydev.refactoring.ui.actions.ExtractLocalCommand"
            contextId="org.python.pydev.ui.editor.scope"
            schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
            sequence="M3+M2+T O"/>
      -->
      <key
            sequence="Shift+Alt+M"
            contextId="org.python.pydev.ui.editor.scope"
            commandId="org.python.pydev.refactoring.ui.actions.ExtractMethodCommand"
            schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"/>
   </extension>
</plugin>
