This menu provides code-rewriting and formatting functions.
Code menu
- Rename Local Variable
- Change the name of a local variable (i.e. a temporary or argument).
The source of the selected method is rweritten as required and an implicit accept is performed (i.e. the changed code
is installed).
- Rename Instance Variable
- Change the name of an instance variable.
All methods which refer to the renamed variable are rewritten as required and
implicit accepts are performed (i.e. the changes are installed).
This will also change methods in all subclasses, which refer to the variable in question.
- Rename Class Variable
- Change the name of a class variable.
All methods which refer to the renamed variable are rewritten as required and
implicit accepts are performed (i.e. the changes are installed).
This will also change methods in all subclasses, which refer to the variable in question.
- Make Abstract
- Make a Variable Abstract.
All direct references to the selected variable are changed into message sends to corresponding
getter-/setter- methods, and getter-/setter-methods are added (if not already present).
This will also change methods in all subclasses, which refer to the variable in question.
- Make Instance Variable
- Change a local to an instance variable
Changes the selected local variable into an instance variable.
A check is performed, if a local by that name does not exist in other methods.
- Convert to ValueHolder
- Change an instance variable to a valueHolder.
All direct references to the variable are rewritten into #value/#value: message sends,
and a valueHolder creation method is added (if not already present).
This will also change methods in all subclasses, which refer to the variable in question.
- Inline Selected Message
- The message which is selected in the codeView is inlined.
This only works if there is exactly one possible method to be inlined.
- Extract Selected Message to Temporary
- The message which is selected in the codeView is assigned to a temporary within the method.
- Add Parameter to Method...
- Adds an additional argument to the selected method.
This also asks for a new default value for the argument, and rewrites all methods which send
this message to send the new message with the default value for the additional parameter.
- Remove Parameter from Method
- Removes an argument from the selected method.
The argument must be selected in the codeView.
This function rewrites all methods which send
this message to send the new message without the removed parameter.
- Format the methods source
- PrettyPrints (indents and wrapes) the source code of the current method.
Notice, that prettyPrinting is a much debated upon issue - some parameters of the formatting can be
adjusted via the launchers settings->source_and_debugger-menu.
- SyntaxColoring
- Enable/disable syntax highlighting/coloring.
The parameters of the coloring style can be
adjusted via the launchers settings->source_and_debugger-menu.
- Immediate SyntaxColoring
- Enable/disable immediate syntax highlighting/coloring (with every keystroke).
If enabled, bad messages and unknown variables are immediately marked by either a red, bold selector
or an underwaved variable-name.
However, on very slow machines, the overhead of parsing might slow down the key-stroke processing
and make typing a nightmare. Disable this if you work on a slow machine.
Doc $Revision: 1.1 $ $Date: 2000/10/13 18:31:25 $