public void actionPerformed(ActionEvent evt) {
if (focusOwner == null)
return;
if (focusOwner instanceof JTextComponent) {
Document doc = ((JTextComponent) focusOwner).getDocument();
if (doc instanceof UndoDocument) {
((UndoDocument) doc).redo();
public void actionPerformed(ActionEvent evt) {
if (focusOwner == null)
return;
if (focusOwner instanceof JTextComponent) {
Document doc = ((JTextComponent)focusOwner).getDocument();
if ( doc instanceof UndoDocument) {
((UndoDocument)doc).undo();
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/globalactions/RedoAction.java
|
|
File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/globalactions/UndoAction.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | public void actionPerformed(ActionEvent evt) {↵ | | 1 | public void actionPerformed(ActionEvent evt) {↵
|
2 | if (focusOwner == null)↵ | | 2 | if (focusOwner == null)↵
|
3 | return;↵ | | 3 | return;↵
|
|
4 | if (focusOwner instanceof JTextComponent) {↵ | | 4 | if (focusOwner instanceof JTextComponent) {↵
|
5 | Document doc = ((JTextComponent) focusOwner).getDocument();↵ | | 5 | Document doc = ((JTextComponent)focusOwner).getDocument();↵
|
| | | 6 | ↵
|
6 | if (doc instanceof UndoDocument) {↵ | | 7 | if ( doc instanceof UndoDocument) {↵
|
7 | ((UndoDocument) doc).redo();↵ | | 8 | ((UndoDocument)doc).undo();↵
|
8 | | | 9 |
|
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.0 |
Clones location | |
Number of node comparisons | 0 |