Refactoring Support

The goal of refactoring support in InfoSphere® BigInsights™ Text Analytics tools is to make system-wide code changes without affecting the behavior of the program.

The Text Analytics tools perform rename refactoring of the following AQL resources:
The following table is an overview of all offered refactoring support:
Table 1. Refactoring support in Text Analytics
Action Description Availability Package Explorer View Shortcut Key Project Explorer View Shortcut Key
AQL Element Rename Renames the selected element and updates all of the references within the workspace. AQL Editor, Extraction plan UI Alt + Shift + R Alt + Shift + R
AQL File Rename Renames AQL files and updates all of the references within the workspace. Project Explorer, Package Explorer Alt + Shift + R F2
AQL Module Rename Renames AQL modules and updates all of the references within the workspace. Project Explorer, Package Explorer Alt + Shift + R F2
AQL Source and Build output directories Renames AQL source and build output folders (such as src and bin folders in the default directory structure) and updates all of the valid references.
Note: You can rename the parent directories of source and build output directories, such as textAnalytics in the default directory structure. However, the system does not update the references in the Text Analytics properties file. Instead, it adds an error marker on the project root folder.
Project Explorer, Package Explorer Alt + Shift + R F2
AQL Project Rename Renames AQL projects and updates all of the references within the workspace including the launch configurations for the project.
CAUTION:
For proper refactoring, do not clear the check box next to the .textAnalytics file in the Preview pane.
Project Explorer, Package Explorer Alt + Shift + R F2

You can preview the refactoring results before you run the refactoring action to see potential problems and a list of the changes that the refactoring performs. If you do not preview a refactoring operation, the change is made in its entirety, and any problems that result are shown. If a problem is detected that does not allow the refactoring to continue, the operation stops and displays a list of the problems.

In addition to keyboard shortcuts, refactoring commands are available from the menus of the AQL editor and the Package Explorer.

The following restrictions apply to refactoring support: