Changes between Version 18 and Version 19 of EmacsInterface


Ignore:
Timestamp:
Sep 17, 2014, 4:14:28 PM (10 years ago)
Author:
manualwiki
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • EmacsInterface

    v18 v19  
    202202=== Duplicated code analysis === 
    203203 
    204 In the Duplicated code analysis sub menu you can search for duplicated code with default  
    205 parameters (Search duplicated codes...) or in advanced mode (Advanced search) where it 
    206 is possible to modify the default values. See wiki:DuplicateCodeAnalysis for further  
    207 information. In Advanced search mode you can specify the name of a duplicated code  
    208 analysis run with specific options. This name can be used to load older results (saved in 
    209 dets). 
    210  
    211 With "Show duplicates" you can load saved analysis result. You just have to type in the 
    212 name of the result which was either specified by you or generated by RefactorErl. Generated 
    213 names start with the string "Temp...". The Emacs interface always shows the name of a result 
    214 in a buffer titled "Duplicated code information" which is shown after clicking the Analise 
    215 button (advanced mode) or starting an analysis from "Search duplicated codes..." or loading 
    216 up some older results with "Show duplicates". 
     204After starting the Emacs with refactorerl-mode on, the duplicate code analysis is available under the Refactor / Duplicated code analysis menu. (You can learn more about this topic and about the usage on CloneIdentifiErl page, whilst the services provided by this interface are detailed below.) 
     205 
     206To fine-tune the algorithm select the advanced search option. At first, an algorithm should be chosen. 
     207 
     208[[Image(emacs_alg_choose.png)]] 
     209 
     210After the algorithm has been chosen the parameters of the algorithm can be set (it is not necessary to set every parameter). The analysis can be started by clicking on the Run button. 
     211 
     212[[Image(emacs_alg_param.png)]] 
     213 
     214After the analysis have finished, a clone group belonging to the result can be selected.  
     215 
     216[[Image(emacs_results.png)]] 
     217 
     218In this case the first two instances belonging to this group will be shown in separate two columns. The mechanism is similar to the behaviour of diff applications.  You can switch between instances from this group by using dropdown lists that are placed above the columns. 
     219 
     220[[Image(1result.png)]] 
     221 
     222==== Load previously saved result ====  
     223 
     224After the show duplicates menu item has been chosen, a previously saved result can browsed by entering the name of the previously saved duplicated code result. 
     225 
     226==== Search duplicate code by selection ====  
     227 
     228It is possible to make a selection in the source code and start the duplicate code analysis by choosing the search in selected area in the Duplicated code analysis menu. This will start the {{{matrix}}} algorithm which will search for duplicates of the selection. 
     229 
    217230 
    218231=== Refactorings ===