CloneSet2921


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
4320.958executable_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1477
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/StatusBarUpdater.java
24378
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/JavaElementLabels.java
34306
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/JavaElementSorter.java
Clone Instance
1
Line Count
4
Source Line
77
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/StatusBarUpdater.java

                                       if (elem instanceof IAdaptable) {
                                        IWorkbenchAdapter wbadapter = (IWorkbenchAdapter) ((IAdaptable) elem).getAdapter(IWorkbenchAdapter.class );
                                        if (wbadapter != null) {
                                                return wbadapter.getLabel(elem);
                                        }
                                       }


Clone Instance
2
Line Count
4
Source Line
378
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/JavaElementLabels.java

                       if (obj instanceof IAdaptable) {
                        IWorkbenchAdapter wbadapter = (IWorkbenchAdapter) ((IAdaptable) obj).getAdapter(IWorkbenchAdapter.class );
                        if (wbadapter != null) {
                                return wbadapter.getLabel(obj);
                        }
                       }


Clone Instance
3
Line Count
4
Source Line
306
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/JavaElementSorter.java

                // try to use the workbench adapter for non - java resources or if not available, use the viewers label provider

                if (element instanceof IAdaptable) {
                        IWorkbenchAdapter adapter = (IWorkbenchAdapter) ((IAdaptable) element).getAdapter(IWorkbenchAdapter.class );
                        if (adapter != null) {
                                return adapter.getLabel(element);
                        }
                }


Clone AbstractionParameter Count: 2Parameter Bindings

// try to use the workbench adapter for non - java resources or if not available, use the viewers label provider
if ( [[#variableb1af7640]]instanceof IAdaptable) {
  IWorkbenchAdapter  [[#variableb1af75e0]]= (IWorkbenchAdapter) ((IAdaptable)  [[#variableb1af7640]]).getAdapter(IWorkbenchAdapter.class );
  if ( [[#variableb1af75e0]]!= null) {
    return [[#variableb1af75e0]].getLabel( [[#variableb1af7640]]);
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b1af7640]]
elem 
12[[#b1af7640]]
obj 
13[[#b1af7640]]
element 
21[[#b1af75e0]]
wbadapter 
22[[#b1af75e0]]
wbadapter 
23[[#b1af75e0]]
adapter