name="Refaktor"
id="no.uio.ifi.refaktor.commands.category">
</category>
- <command
- name="Test Refactoring"
- categoryId="no.uio.ifi.refaktor.commands.category"
- id="no.uio.ifi.refaktor.commands.testRefactoring">
- </command>
- <command
- categoryId="no.uio.ifi.refaktor.commands.category"
- id="no.uio.ifi.refaktor.commands.saferRefactoring"
- name="Safer Refactoring">
- </command>
- <command
- id="no.uio.ifi.refaktor.commands.textSelectionInformation"
- name="Text Selection Information">
- </command>
- <command
- id="no.uio.ifi.refaktor.commands.testPropertyExtractor"
- name="Test Property Extractor">
- </command>
<command
id="no.uio.ifi.refaktor.commands.extractAndMoveMethod"
- name="Extract and move method">
- </command>
- <command
- id="no.uio.ifi.refaktor.commands.treeSelectionInfo"
- name="Tree Selection Info">
- </command>
- <command
- id="no.uio.ifi.refaktor.commands.searchBasedExtractAndMoveMethodAnalysis"
- name="Search Based Extract And Move Method Analysis">
- </command>
- <command
- id="no.uio.ifi.refaktor.commands.typeWideSearchBasedExtractAndMoveMethodAnalysis"
- name="Type Wide Search Based Extract And Move Method Analysis">
- </command>
- <command
- id="no.uio.ifi.refaktor.commands.compilationUnitWideSearchBasedExtractAndMoveMethodAnalysis"
- name="Compilation Unit Wide Search Based Extract And Move Method Analysis">
- </command>
- <command
- id="no.uio.ifi.refaktor.commands.packageWideSearchBasedExtractAndMoveMethodAnalysis"
- name="Package Wide Search Based Extract And Move Method Analysis">
- </command>
- <command
- id="no.uio.ifi.refaktor.commands.projectWideSearchBasedExtractAndMoveMethodAnalysis"
- name="Project Wide Search Based Extract And Move Method Analysis">
- </command>
- <command
- id="no.uio.ifi.refaktor.commands.packageFragmentRootWideSearchBasedExtractAndMoveMethodAnalysis"
- name="Package Fragment Root Wide Search Based Extract And Move Method Analysis">
+ name="1 Extract and move method">
</command>
<command
id="no.uio.ifi.refaktor.commands.projectWideSearchBasedExtractAndMoveMethodChanger"
- name="Project Wide Search Based Extract And Move Method Change">
+ name="2 Execute Search Based Extract And Move Method">
</command>
<command
id="no.uio.ifi.refaktor.commands.searchBasedExtractAndMoveMethodChanger"
- name="Search Based Extract And Move Method Change">
+ name="3 Execute Search Based Extract And Move Method">
</command>
<command
id="no.uio.ifi.refaktor.commands.compilationUnitWideSearchBasedExtractAndMoveMethodChanger"
- name="Compilation Unit Wide Search Based Extract And Move Method Change">
+ name="4 Compilation Unit Wide Search Based Extract And Move Method Change">
+ </command>
+ <command
+ id="no.uio.ifi.refaktor.commands.packageWideSearchBasedExtractAndMoveMethodChanger"
+ name="Search Based Extract And Move Method Change">
+ </command>
+ <command
+ id="no.uio.ifi.refaktor.commands.searchBasedExtractLocalVariableWithAssertsChanger"
+ name="5 Extract Local Variable">
</command>
+ <command
+ id="no.uio.ifi.refaktor.extractLocalVariableWithAsserts"
+ name="6 Extract Local Variable">
+ </command>
</extension>
<extension
point="org.eclipse.ui.handlers">
class="no.uio.ifi.refaktor.handlers.TestRefactoringHandler">
</handler>
<handler
- class="no.uio.ifi.refaktor.handlers.SaferRefactoringHandler"
- commandId="no.uio.ifi.refaktor.commands.saferRefactoring">
- </handler>
- <handler
- class="no.uio.ifi.refaktor.handlers.TextSelectionInformationHandler"
- commandId="no.uio.ifi.refaktor.commands.textSelectionInformation">
- <enabledWhen>
- <with
- variable="selection">
- <instanceof
- value="org.eclipse.jface.text.TextSelection">
- </instanceof>
- </with>
- </enabledWhen>
- </handler>
- <handler
- class="no.uio.ifi.refaktor.handlers.TestPropertyExtractorHandler"
- commandId="no.uio.ifi.refaktor.commands.testPropertyExtractor">
- </handler>
- <handler
+ commandId="no.uio.ifi.refaktor.extractLocalVariableWithAsserts"
+ class="no.uio.ifi.refaktor.handlers.entrypoints.ExtractLocalVariableWithAssertsHandler">
+ <enabledWhen>
+ <with
+ variable="selection">
+ <instanceof
+ value="org.eclipse.jface.text.TextSelection">
+ </instanceof>
+ </with>
+ </enabledWhen>
+ </handler>
+ <!--handler
class="no.uio.ifi.refaktor.handlers.ExtractAndMoveMethodHandler"
commandId="no.uio.ifi.refaktor.commands.extractAndMoveMethod">
- </handler>
- <handler
+ </handler-->
+ <!--handler
class="no.uio.ifi.refaktor.handlers.TreeSelectionInfoHandler"
commandId="no.uio.ifi.refaktor.commands.treeSelectionInfo">
- </handler>
- <handler
+ </handler-->
+ <!--handler
class="no.uio.ifi.refaktor.handlers.SearchBasedExtractAndMoveMethodAnalysisHandler"
commandId="no.uio.ifi.refaktor.commands.searchBasedExtractAndMoveMethodAnalysis">
- </handler>
- <handler
+ </handler-->
+ <!--handler
class="no.uio.ifi.refaktor.handlers.TypeWideSearchBasedExtractAndMoveMethodAnalysisHandler"
commandId="no.uio.ifi.refaktor.commands.typeWideSearchBasedExtractAndMoveMethodAnalysis">
- </handler>
- <handler
+ </handler-->
+ <!--handler
class="no.uio.ifi.refaktor.handlers.CompilationUnitWideSearchBasedExtractAndMoveMethodAnalysisHandler"
commandId="no.uio.ifi.refaktor.commands.compilationUnitWideSearchBasedExtractAndMoveMethodAnalysis">
- </handler>
- <handler
+ </handler-->
+ <!--handler
class="no.uio.ifi.refaktor.handlers.PackageWideSearchBasedExtractAndMoveMethodAnalysisHandler"
commandId="no.uio.ifi.refaktor.commands.packageWideSearchBasedExtractAndMoveMethodAnalysis">
- </handler>
- <handler
+ </handler-->
+ <!--handler
class="no.uio.ifi.refaktor.handlers.ProjectWideSearchBasedExtractAndMoveMethodAnalysisHandler"
commandId="no.uio.ifi.refaktor.commands.projectWideSearchBasedExtractAndMoveMethodAnalysis">
- </handler>
- <handler
+ </handler-->
+ <!--handler
class="no.uio.ifi.refaktor.handlers.PackageFragmentRootWideSearchBasedExtractAndMoveMethodAnalysisHandler"
commandId="no.uio.ifi.refaktor.commands.packageFragmentRootWideSearchBasedExtractAndMoveMethodAnalysis">
- </handler>
+ </handler-->
<handler
- class="no.uio.ifi.refaktor.handlers.ProjectWideSearchBasedExtractAndMoveMethodChangerHandler"
+ class="no.uio.ifi.refaktor.handlers.entrypoints.SearchBasedExtractAndMoveMethodChangerHandler"
commandId="no.uio.ifi.refaktor.commands.projectWideSearchBasedExtractAndMoveMethodChanger">
</handler>
<handler
- class="no.uio.ifi.refaktor.handlers.SearchBasedExtractAndMoveMethodChangerHandler"
+ class="no.uio.ifi.refaktor.handlers.entrypoints.SearchBasedExtractAndMoveMethodChangerHandler"
commandId="no.uio.ifi.refaktor.commands.searchBasedExtractAndMoveMethodChanger">
</handler>
- <handler
+ <!--handler
class="no.uio.ifi.refaktor.handlers.CompilationUnitWideSearchBasedExtractAndMoveMethodChangerHandler"
commandId="no.uio.ifi.refaktor.commands.compilationUnitWideSearchBasedExtractAndMoveMethodChanger">
+ </handler-->
+ <!--handler
+ class="no.uio.ifi.refaktor.handlers.PackageWideSearchBasedExtractAndMoveMethodChangerHandler"
+ commandId="no.uio.ifi.refaktor.commands.packageWideSearchBasedExtractAndMoveMethodChanger">
+ </handler-->
+ <handler
+ class="no.uio.ifi.refaktor.handlers.entrypoints.SearchBasedExtractLocalVariableWithAssertsHandler"
+ commandId="no.uio.ifi.refaktor.commands.searchBasedExtractLocalVariableWithAssertsChanger">
+ </handler>
+ <handler
+ class="no.uio.ifi.refaktor.handlers.entrypoints.SearchBasedExtractLocalVariableWithoutAssertsHandler"
+ commandId="no.uio.ifi.refaktor.commands.searchBasedExtractLocalVariableWithoutAssertsChanger">
</handler>
</extension>
<extension
point="org.eclipse.ui.menus">
- <menuContribution
+ <!--menuContribution
locationURI="menu:org.eclipse.ui.main.menu?after=additions">
<menu
label="Refaktor"
mnemonic="S"
id="no.uio.ifi.refaktor.menus.testRefactoring">
</command>
- <command
- commandId="no.uio.ifi.refaktor.commands.saferRefactoring"
- id="no.uio.ifi.refaktor.menus.saferRefactoring"
- mnemonic="S">
- </command>
</menu>
- </menuContribution>
+ </menuContribution-->
<menuContribution
allPopups="true"
locationURI="popup:org.eclipse.ui.popup.any?after=additions">
<menu
id="no.uio.ifi.refaktor.menus.refaktorSelectionPopup"
- label="IFI Refaktor Selection"
+ label="Safer Refactor Selection"
mnemonic="M">
<command
commandId="no.uio.ifi.refaktor.commands.textSelectionInformation"
label="Extract and Move Method"
style="push">
</command>
+ <command
+ commandId="no.uio.ifi.refaktor.extractLocalVariableWithAsserts"
+ label="Extract Local Variable"
+ style="push">
+ </command>
</menu>
<menu
id="no.uio.ifi.refaktor.menus.refaktorTreeSelectionPopup"
- label="IFI Refaktor Tree Selection"
+ label="Safer Refactor Element"
mnemonic="M">
<visibleWhen
checkEnabled="false">
style="push">
</command>
<command
- commandId="no.uio.ifi.refaktor.commands.searchBasedExtractAndMoveMethodAnalysis"
- label="Search Based Extract And Move Method Analysis"
+ commandId="no.uio.ifi.refaktor.commands.projectWideSearchBasedExtractAndMoveMethodChanger"
+ label="Extract And Move Method"
style="push">
<visibleWhen
checkEnabled="false">
<test
forcePluginActivation="true"
property="no.uio.ifi.refaktor.propertyTesters.treeSelectionPropertyTester.elementType"
- value="org.eclipse.jdt.core.IMethod">
+ value="org.eclipse.core.resources.IProject">
</test>
</with>
</visibleWhen>
</command>
<command
- commandId="no.uio.ifi.refaktor.commands.typeWideSearchBasedExtractAndMoveMethodAnalysis"
- label="Type Wide Search Based Extract And Move Method Analysis"
+ commandId="no.uio.ifi.refaktor.commands.searchBasedExtractAndMoveMethodChanger"
+ label="Extract And Move Method"
style="push">
<visibleWhen
checkEnabled="false">
<test
forcePluginActivation="true"
property="no.uio.ifi.refaktor.propertyTesters.treeSelectionPropertyTester.elementType"
- value="org.eclipse.jdt.core.IType">
+ value="org.eclipse.jdt.core.IMethod">
</test>
</with>
</visibleWhen>
</command>
<command
- commandId="no.uio.ifi.refaktor.commands.compilationUnitWideSearchBasedExtractAndMoveMethodAnalysis"
- label="Compilation Unit Wide Search Based Extract And Move Method Analysis"
+ commandId="no.uio.ifi.refaktor.commands.compilationUnitWideSearchBasedExtractAndMoveMethodChanger"
+ label="Compilation Unit Wide Search Based Extract And Move Method Changer"
style="push">
<visibleWhen
checkEnabled="false">
</with>
</visibleWhen>
</command>
- <command
- commandId="no.uio.ifi.refaktor.commands.packageWideSearchBasedExtractAndMoveMethodAnalysis"
- label="Package Wide Search Based Extract And Move Method Analysis"
- style="push">
- <visibleWhen
- checkEnabled="false">
- <with
- variable="selection">
- <test
- forcePluginActivation="true"
- property="no.uio.ifi.refaktor.propertyTesters.treeSelectionPropertyTester.elementType"
- value="org.eclipse.jdt.core.IPackageFragment">
- </test>
- </with>
- </visibleWhen>
- </command>
- <command
- commandId="no.uio.ifi.refaktor.commands.projectWideSearchBasedExtractAndMoveMethodAnalysis"
- label="Project Wide Search Based Extract And Move Method Analysis"
- style="push">
- <visibleWhen
- checkEnabled="false">
- <with
- variable="selection">
- <test
- forcePluginActivation="true"
- property="no.uio.ifi.refaktor.propertyTesters.treeSelectionPropertyTester.elementType"
- value="org.eclipse.jdt.core.IJavaProject">
- </test>
- </with>
- </visibleWhen>
- </command>
- <command
- commandId="no.uio.ifi.refaktor.commands.packageFragmentRootWideSearchBasedExtractAndMoveMethodAnalysis"
- label="Package Fragment Root Wide Search Based Extract And Move Method Analysis"
- style="push">
- <visibleWhen
- checkEnabled="false">
- <with
- variable="selection">
- <test
- forcePluginActivation="true"
- property="no.uio.ifi.refaktor.propertyTesters.treeSelectionPropertyTester.elementType"
- value="org.eclipse.jdt.core.IPackageFragmentRoot">
- </test>
- </with>
- </visibleWhen>
- </command>
<command
commandId="no.uio.ifi.refaktor.commands.projectWideSearchBasedExtractAndMoveMethodChanger"
- label="Project Wide Search Based Extract And Move Method Changer"
+ label="Search Based Extract And Move Method"
style="push">
<visibleWhen
checkEnabled="false">
</visibleWhen>
</command>
<command
- commandId="no.uio.ifi.refaktor.commands.searchBasedExtractAndMoveMethodChanger"
- label="Search Based Extract And Move Method Change"
+ commandId="no.uio.ifi.refaktor.commands.packageWideSearchBasedExtractAndMoveMethodChanger"
+ label="Package Wide Search Based Extract And Move Method Changer"
style="push">
<visibleWhen
checkEnabled="false">
<test
forcePluginActivation="true"
property="no.uio.ifi.refaktor.propertyTesters.treeSelectionPropertyTester.elementType"
- value="org.eclipse.jdt.core.IMethod">
+ value="org.eclipse.jdt.core.IPackageFragment">
</test>
</with>
</visibleWhen>
</command>
<command
- commandId="no.uio.ifi.refaktor.commands.compilationUnitWideSearchBasedExtractAndMoveMethodChanger"
- label="Compilation Unit Wide Search Based Extract And Move Method Changer"
- style="push">
- <visibleWhen
- checkEnabled="false">
- <with
- variable="selection">
- <test
- forcePluginActivation="true"
- property="no.uio.ifi.refaktor.propertyTesters.treeSelectionPropertyTester.elementType"
- value="org.eclipse.jdt.core.ICompilationUnit">
- </test>
- </with>
- </visibleWhen>
+ commandId="no.uio.ifi.refaktor.commands.searchBasedExtractLocalVariableWithAssertsChanger"
+ label="Extract Local Variable">
+ style="push">
</command>
</menu>
</menuContribution>
objectClass="org.eclipse.jdt.core.IMethod">
<menu
id="no.uio.ifi.refaktor.menu1"
- label="IFI Refaktor"
+ label="Safer Refactor"
path="additions">
<separator
name="group1">
name="group2">
</separator>
</menu>
- <action
- class="no.uio.ifi.refaktor.popup.actions.SaferAction"
- enablesFor="1"
- id="no.uio.ifi.refaktor.saferAction"
- label="Safer Refactoring"
- menubarPath="no.uio.ifi.refaktor.menu1/group1">
- </action>
- <action
- class="no.uio.ifi.refaktor.popup.actions.CyclomaticComplexityAction"
- enablesFor="1"
- id="no.uio.ifi.refaktor.cyclomaticComplexityAction"
- label="Compute Cyclomatic Complexity"
- menubarPath="no.uio.ifi.refaktor.menu1/group2">
- </action>
</objectContribution>
</extension>
- <extension
+ <!--extension
point="org.eclipse.ui.views">
<category
id="no.uio.ifi.refaktor.views"
id="no.uio.ifi.refaktor.views.PrefixView"
name="Prefix View">
</view>
- </extension>
- <extension
+ </extension-->
+ <!--extension
point="org.eclipse.ui.perspectiveExtensions">
<perspectiveExtension
targetID="org.eclipse.jdt.ui.JavaPerspective">
visible="true">
</view>
</perspectiveExtension>
- </extension>
+ </extension-->
<extension
point="org.eclipse.core.expressions.propertyTesters">
<propertyTester
type="org.eclipse.jface.viewers.ITreeSelection">
</propertyTester>
</extension>
+ <extension
+ point="org.eclipse.ui.bindings">
+ <key
+ commandId="no.uio.ifi.refaktor.commands.textSelectionInformation"
+ contextId="org.eclipse.ui.contexts.window"
+ schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
+ sequence="M1+R M1+S">
+ </key>
+ </extension>
</plugin>