while (it2.hasNext()) {
ISearchCriteria c = it2.next();
String searchCriteriaTechnicalName = c
.getTechnicalName();
// execute search
doExecute(ref.getSearchTerm(), p,
searchCriteriaTechnicalName, ref
.isSearchInside(), ref.getStartIndex(),
ref.getResultCount());
}
if (dialog.success()) {
IMailFolder selectedFolder = (IMailFolder) dialog
.getSelectedFolder();
String path = selectedFolder.getTreePath();
templatesButton.setText(path);
// int uid = selectedFolder.getUid();
// item.setTemplates( new Integer(uid).toString() );
}
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/core/src/main/java/org/columba/core/search/SearchManager.java
|
|
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/account/SpecialFoldersPanel.java
|
Method name: void execute(IWorkerStatusController)
|
|
Method name: void actionPerformed(ActionEvent)
|
Number of AST nodes: 4
|
|
Number of AST nodes: 4
|
|
1 | while (it2.hasNext()) {↵ | | 1 | if (dialog.success()) {↵
|
2 | ISearchCriteria c = it2.next();↵ | | 2 | ↵
|
3 | String searchCriteriaTechnicalName = c↵ | | 3 | IMailFolder selectedFolder = (IMailFolder) dialog↵
|
4 | .getTechnicalName();↵ | | 4 | .get↵
|
5 | // execute search↵ | | |
|
6 | doEx↵ | | 5 | SelectedFolder();↵
|
7 | ecute(ref.getSearchTerm(), p,↵ | | 6 | String path = selecte↵
|
8 | searchCriteriaTechnicalName, ref↵ | | |
|
9 | .isSearchInside(), ref.getStartIndex↵ | | 7 | dFolder.getTreePath();↵
|
|
| | | 8 | templatesButton.setText(path);↵
|
|
10 | (),↵ | | 9 | // int uid = selectedFolder.getUid();↵
|
11 | ref.getResultCount());↵ | | 10 | // item.setTemplates( new Integer(uid).toString() );↵
|
12 | } | | 11 | }
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.3 |
Clones location | Clones are in different classes |
Number of node comparisons | 1 |