Author:halw

Date:2011-03-22T19:05:27.000000Z


git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@853 abb3cda0-5349-4a8f-a601-0c33ac3a8c38
This commit is contained in:
halw
2011-03-22 19:15:16 +00:00
parent 0cea302a9c
commit a2f41ce30c
2 changed files with 4 additions and 6 deletions

View File

@@ -3,7 +3,7 @@
[[Property:uuid|08099f7b-aaf4-b629-17f6-b637c4efd63a]] [[Property:uuid|08099f7b-aaf4-b629-17f6-b637c4efd63a]]
Refactoring actions include renaming classes and features, and relocating features to an ancestor class. Refactoring actions start with a compilation and also end with a compilation. Refactoring has a separate undo functionality which allows you to undo a refactoring action as long as no changes have been made to the classes that have been refactored. Refactoring actions include renaming classes and features, and relocating features to an ancestor class. Refactoring actions start with a compilation and also end with a compilation. Refactoring has a separate undo functionality which allows you to undo a refactoring action as long as no changes have been made to the classes that have been refactored.
The [[Main toolbars|Refactoring toolbar]] contains button-holes for both the "rename" and "pull up" refactoring actions. So, if the Refactoring toolbar is visible, you can "pick" a feature, for example, and drop it onto one of the refactoring button-holes. If the Refactoring toolbar is not visible, you can [[Main toolbars|make it visible]] or you can access refactoring actions through the context menu associated with a class or feature name (right-click to see the context menu, or shift-right-click if you are in "pick-and-drop" mode). The [[Main toolbars|Refactoring toolbar]] contains holes for both the "rename" ([[Image:refactor-rename-icon]]) and "pull up" ([[Image:refactor-feature-up-icon]]) refactoring actions. So, if the Refactoring toolbar is visible, you can "pick" a feature, for example, and drop it onto one of the refactoring holes. If the Refactoring toolbar is not visible, you can [[Main toolbars|make it visible]] or you can access refactoring actions through the context menu associated with a class or feature name (right-click to see the context menu, or shift-right-click if you are in "pick-and-drop by default" mode).

View File

@@ -2,17 +2,15 @@
[[Property:link_title|Rename Class]] [[Property:link_title|Rename Class]]
[[Property:weight|3]] [[Property:weight|3]]
[[Property:uuid|e70f2760-389a-4c54-ed10-b731dc70e952]] [[Property:uuid|e70f2760-389a-4c54-ed10-b731dc70e952]]
# Start pick-and-drop on the class bubble of which you want to change the name. # Start the '''Rename''' refactoring action by either:
# Drop it in the '''Rename Feature/Class''' hole. [[Image:refactor-rename-icon]] ## Selecting '''Refactoring->Rename''' from the context menu associated with the class you want to rename.
## Picking the class and drop it into the Rename hole ([[Image:refactor-rename-icon]]) on the [[Main toolbars|refactoring toolbar]].
# After a compilation the '''Refactoring: Class Rename''' dialog appears. You can enter a new name. # After a compilation the '''Refactoring: Class Rename''' dialog appears. You can enter a new name.
# You can choose between these options: # You can choose between these options:
#* '''Compiled Classes''': only to the refactoring in compiled classes. #* '''Compiled Classes''': only to the refactoring in compiled classes.
#* '''All Classes''': do the refactoring in all classes, even in uncompiled classes. #* '''All Classes''': do the refactoring in all classes, even in uncompiled classes.
#* '''Rename File''': rename the file of the class to correspond with the class name, if another file with this name already exists the file will not be renamed and a warning will be given. #* '''Rename File''': rename the file of the class to correspond with the class name, if another file with this name already exists the file will not be renamed and a warning will be given.
#* '''Replace Name in Comments''': replace usage of the class name in comments that follow the '''{CLASSNAME}''' syntax. #* '''Replace Name in Comments''': replace usage of the class name in comments that follow the '''{CLASSNAME}''' syntax.
#* '''Replace Name in Strings''': replace usage of the class name in strings that follow the '''{CLASSNAME}''' syntax. #* '''Replace Name in Strings''': replace usage of the class name in strings that follow the '''{CLASSNAME}''' syntax.
# Click '''OK'''. # Click '''OK'''.