Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
11 | 2 | 1 | 0.958 | method_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 11 | 312 | E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/common/command/StrictCompoundCommand.java |
2 | 11 | 331 | E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/common/command/StrictCompoundCommand.java |
| |||||
/** * Calls {@link Command#undo} for each command in the list. * In the case that {@link #isPessimistic} is false, only the last command will be undone * since the others will have been executed and not undo during {@link #prepare}. */ @Override public void undo() { if (isPessimistic) { super.undo(); } else if ( !commandList.isEmpty()) { Command command = commandList.get(commandList.size() - 1); command.undo(); } } |
| |||||
/** * Calls {@link Command#redo} for each command in the list. * In the case that {@link #isPessimistic} is false, only the last command will be redone * since the others will have been executed and not undo during {@link #prepare}. */ @Override public void redo() { if (isPessimistic) { super.redo(); } else if ( !commandList.isEmpty()) { Command command = commandList.get(commandList.size() - 1); command.redo(); } } |
| |||
/** * Calls {@link Command#redo} for each command in the list. * In the case that {@link #isPessimistic} is false, only the last command will be redone * since the others will have been executed and not undo during {@link #prepare}. */ /** * Calls {@link Command#undo} for each command in the list. * In the case that {@link #isPessimistic} is false, only the last command will be undone * since the others will have been executed and not undo during {@link #prepare}. */ @Override public void [[#variable17439100]]() { if (isPessimistic) { super. [[#variable17439100]](); } else if ( !commandList.isEmpty()) { Command command = commandList.get(commandList.size() - 1); command. [[#variable17439100]](); } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#17439100]] | undo |
1 | 2 | [[#17439100]] | redo |