Creating refactoring scripts
-
Select Refactor > Create Script... from the refactoring menu to show the create refactoring script dialog.
-
The create refactoring script dialog displays the entire refactoring history of your workspace. Drill down to an individual refactoring and select
it to see more details about the performed refactoring in the details view below.
-
Refactoring scripts can either be copied to the clipboard or saved to a file in your local file system. Select Clipboard to copy the created
refactoring script to the clipboard, or File to store the script to a file. Click on Browse... to select the
location where to store the refactoring script.
-
Select all refactorings that you would like to save into a refactoring script. Select years, months, weeks or days to select all associated refactorings at once. Select
a project to save all refactorings associated with the project to a refactoring script.
-
In order to be able to better select refactorings from the refactoring history, there are two ways to group your refactorings:
-
Group by Project: Refactorings are grouped by project. Every refactoring is associated with the project that contains the element
which served as input to the recorded refactoring.
Note: There are certain instances of refactorings which cannot
be uniquely associated with a project. These refactorings are associated with the entire workspace.
-
Group by Date: Refactorings are grouped by date. The refactoring history dialog presents the refactorings as a history, last recently executed
refactorings first.
-
Click Create to create the refactoring script and close the dialog.
Refactoring support
Applying a refactoring script
Browsing the refactoring history
Refactoring actions
Refactoring dialogs
Java preferences