IMailFolderCommandReference result = ((MailFrameMediator) getFrameMediator())
.getTableSelection();
result.setDestinationFolder(destFolder);
MoveMessageCommand c = new MoveMessageCommand(result);
CommandProcessor.getInstance().addOp(c);
IMailFolderCommandReference result = ((MailFrameMediator) getFrameMediator())
.getTableSelection();
result.setDestinationFolder(destFolder);
MoveMessageCommand c = new MoveMessageCommand(result);
CommandProcessor.getInstance().addOp(c);
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/table/action/DeleteMessageAction.java
|
|
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/table/action/MoveMessageAction.java
|
Method name: void actionPerformed(ActionEvent)
|
|
Method name: void actionPerformed(ActionEvent)
|
Number of AST nodes: 4
|
|
Number of AST nodes: 4
|
|
1 | IMailFolderCommandReference result = ((MailFrameMediator) getFrameMediator())↵ | | 1 | IMailFolderCommandReference result = ((MailFrameMediator) getFrameMediator())↵
|
2 | .getTableSelection();↵ | | 2 | .getTableSelection();↵
|
3 | result.setDestinationFolder(destFolder);↵ | | 3 | result.setDestinationFolder(destFolder);↵
|
|
4 | MoveMessageCommand c = new MoveMessageCommand(result);↵ | | 4 | MoveMessageCommand c = new MoveMessageCommand(result);↵
|
|
5 | CommandProcessor.getInstance().addOp(c); | | 5 | CommandProcessor.getInstance().addOp(c);
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 10 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 4 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
10 | IMailFolderCommandReference result = ((MailFrameMediator)getFrameMediator()).getTableSelection(); | | 4 | IMailFolderCommandReference result = ((MailFrameMediator)getFrameMediator()).getTableSelection(); |
11 | result.setDestinationFolder(destFolder); | | 5 | result.setDestinationFolder(destFolder); |
12 | MoveMessageCommand c = new MoveMessageCommand(result); | | 6 | MoveMessageCommand c = new MoveMessageCommand(result); |
13 | CommandProcessor.getInstance().addOp(c); | | 7 | CommandProcessor.getInstance().addOp(c); |
Precondition Violations (0)
Row |
Violation |