CloneSet939


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
6830.956statement_sequence[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1589
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/actions/RenameJavaElementAction.java
2561
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/actions/RenameResourceAction.java
3649
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/AddTaskAction.java
45116
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/callhierarchy/OpenCallHierarchyAction.java
56145
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/newsourcepage/AddArchiveToBuildpathAction.java
6536
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/workingsets/OpenPropertiesWorkingSetAction.java
76109
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/ChangeTypeAction.java
85110
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/ConvertAnonymousToNestedAction.java
Clone Instance
1
Line Count
5
Source Line
89
Source File
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/actions/RenameJavaElementAction.java

                if (selection.size() != 1)
                        return null;
                Object first = selection.getFirstElement();
                if ( ! (first instanceof IJavaElement))
                        return null;


Clone Instance
2
Line Count
5
Source Line
61
Source File
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/actions/RenameResourceAction.java

                if (selection.size() != 1)
                        return null;
                Object first = selection.getFirstElement();
                if ( ! (first instanceof IResource))
                        return null;


Clone Instance
3
Line Count
6
Source Line
49
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/AddTaskAction.java

                if (selection.size() != 1)
                        return null;

                Object element = selection.getFirstElement();
                if ( !(element instanceof IAdaptable))
                        return null;


Clone Instance
4
Line Count
5
Source Line
116
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/callhierarchy/OpenCallHierarchyAction.java

        if (selection.size() != 1)
            return false;
        Object input = selection.getFirstElement();
        if ( !(input instanceof IJavaElement))
            return false;


Clone Instance
5
Line Count
6
Source Line
145
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/newsourcepage/AddArchiveToBuildpathAction.java

                if (selection.size() != 1)
                        return false;

                Object first = selection.getFirstElement();
                if ( !(first instanceof IJavaProject))
                        return false;


Clone Instance
6
Line Count
5
Source Line
36
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/workingsets/OpenPropertiesWorkingSetAction.java

                if (selection.size() != 1)
                        return null;
                Object element = selection.getFirstElement();
                if ( !(element instanceof IWorkingSet))
                        return null;


Clone Instance
7
Line Count
6
Source Line
109
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/ChangeTypeAction.java

                if (selection.size() != 1)
                        return null;

                Object element = selection.getFirstElement();
                if ( !(element instanceof IMember))
                        return null;


Clone Instance
8
Line Count
5
Source Line
110
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/ConvertAnonymousToNestedAction.java

                if (selection.size() != 1)
                        return null;
                Object element = selection.getFirstElement();
                if ( !(element instanceof IType))
                        return null;


Clone AbstractionParameter Count: 3Parameter Bindings

if (selection.size() != 1)
  return [[#variable95b22a40]];
Object  [[#variable95b23640]]= selection.getFirstElement();
if ( !( [[#variable95b23640]]instanceof [[#variable938648a0]]))
  return [[#variable95b22a40]];
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#95b22a40]]
null 
12[[#95b22a40]]
false 
13[[#95b22a40]]
false 
14[[#95b22a40]]
null 
15[[#95b22a40]]
null 
16[[#95b22a40]]
null 
17[[#95b22a40]]
null 
18[[#95b22a40]]
null 
21[[#95b23640]]
element 
22[[#95b23640]]
input 
23[[#95b23640]]
first 
24[[#95b23640]]
element 
25[[#95b23640]]
element 
26[[#95b23640]]
element 
27[[#95b23640]]
first 
28[[#95b23640]]
first 
31[[#938648a0]]
IAdaptable 
32[[#938648a0]]
IJavaElement 
33[[#938648a0]]
IJavaProject 
34[[#938648a0]]
IWorkingSet 
35[[#938648a0]]
IMember 
36[[#938648a0]]
IType 
37[[#938648a0]]
IJavaElement 
38[[#938648a0]]
IResource