CloneSet1177


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
12210.997statement_sequence[5]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11269
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/selectionactions/StructureSelectNextAction.java
21269
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/selectionactions/StructureSelectPreviousAction.java
Clone Instance
1
Line Count
12
Source Line
69
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/selectionactions/StructureSelectNextAction.java

                if (oldSourceRange.getLength() == 0 && selAnalyzer.getLastCoveringNode() != null) {
                        ASTNode previousNode = NextNodeAnalyzer.perform(oldSourceRange.getOffset(), selAnalyzer.getLastCoveringNode());
                        if (previousNode != null)
                                return getSelectedNodeSourceRange(sr, previousNode);
                }
                ASTNode first = selAnalyzer.getFirstSelectedNode();
                if (first == null)
                        return getLastCoveringNodeRange(oldSourceRange, sr, selAnalyzer);

                ASTNode parent = first.getParent();
                if (parent == null)
                        return getLastCoveringNodeRange(oldSourceRange, sr, selAnalyzer);


Clone Instance
2
Line Count
12
Source Line
69
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/selectionactions/StructureSelectPreviousAction.java

                if (oldSourceRange.getLength() == 0 && selAnalyzer.getLastCoveringNode() != null) {
                        ASTNode previousNode = PreviousNodeAnalyzer.perform(oldSourceRange.getOffset(), selAnalyzer.getLastCoveringNode());
                        if (previousNode != null)
                                return getSelectedNodeSourceRange(sr, previousNode);
                }
                ASTNode first = selAnalyzer.getFirstSelectedNode();
                if (first == null)
                        return getLastCoveringNodeRange(oldSourceRange, sr, selAnalyzer);

                ASTNode parent = first.getParent();
                if (parent == null)
                        return getLastCoveringNodeRange(oldSourceRange, sr, selAnalyzer);


Clone AbstractionParameter Count: 1Parameter Bindings

if (oldSourceRange.getLength() == 0 && selAnalyzer.getLastCoveringNode() != null) {
  ASTNode previousNode = [[#variableba811760]].perform(oldSourceRange.getOffset(), selAnalyzer.getLastCoveringNode());
  if (previousNode != null)
    return getSelectedNodeSourceRange(sr, previousNode);
}
ASTNode first = selAnalyzer.getFirstSelectedNode();
if (first == null)
  return getLastCoveringNodeRange(oldSourceRange, sr, selAnalyzer);
ASTNode parent = first.getParent();
if (parent == null)
  return getLastCoveringNodeRange(oldSourceRange, sr, selAnalyzer);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#ba811760]]
NextNodeAnalyzer 
12[[#ba811760]]
PreviousNodeAnalyzer