CloneSet1837


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
16220.990statement_sequence[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11639
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/EditDetailFormatterAction.java
21635
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/RemoveDetailFormatterAction.java
Clone Instance
1
Line Count
16
Source Line
39
Source File
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/EditDetailFormatterAction.java

                IJavaType type;
                try {
                        IJavaValue value;
                        if (element instanceof IJavaVariable) {
                                value = ((IJavaValue) ((IJavaVariable) element).getValue());
                        }
                        else   if (element instanceof JavaInspectExpression) {
                                value = ((IJavaValue) ((JavaInspectExpression) element).getValue());
                               }
                               else {
                                return;
                               }
                        type = value.getJavaType();
                } catch (DebugException e) {
                        return;
                  }
                JavaDetailFormattersManager fm = JavaDetailFormattersManager.getDefault();
                DetailFormatter formatter = fm.getAssociatedDetailFormatter(type);


Clone Instance
2
Line Count
16
Source Line
35
Source File
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/RemoveDetailFormatterAction.java

                IJavaType type;
                try {
                        IJavaValue value;
                        if (element instanceof IJavaVariable) {
                                value = ((IJavaValue) ((IJavaVariable) element).getValue());
                        }
                        else   if (element instanceof JavaInspectExpression) {
                                value = ((IJavaValue) ((JavaInspectExpression) element).getValue());
                               }
                               else {
                                return;
                               }
                        type = value.getJavaType();
                } catch (DebugException e) {
                        return;
                  }
                JavaDetailFormattersManager detailFormattersManager = JavaDetailFormattersManager.getDefault();
                DetailFormatter detailFormatter = detailFormattersManager.getAssociatedDetailFormatter(type);


Clone AbstractionParameter Count: 2Parameter Bindings

IJavaType type;
try {
  IJavaValue value;
  if (element instanceof IJavaVariable) {
    value = ((IJavaValue) ((IJavaVariable) element).getValue());
  }
  else
    if (element instanceof JavaInspectExpression) {
      value = ((IJavaValue) ((JavaInspectExpression) element).getValue());
    }
    else {
      return;
    }
  type = value.getJavaType();
}
catch (DebugException e) {
  return;
}
JavaDetailFormattersManager  [[#variable95438ac0]]= JavaDetailFormattersManager.getDefault();
DetailFormatter  [[#variable95438a80]]= [[#variable95438ac0]].getAssociatedDetailFormatter(type);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#95438ac0]]
detailFormattersManager 
12[[#95438ac0]]
fm 
21[[#95438a80]]
detailFormatter 
22[[#95438a80]]
formatter