Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
16 | 2 | 2 | 0.990 | statement_sequence[4] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 16 | 39 | plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/EditDetailFormatterAction.java |
2 | 16 | 35 | 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 fm = JavaDetailFormattersManager.getDefault(); DetailFormatter formatter = fm.getAssociatedDetailFormatter(type); |
| ||||
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); |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#95438ac0]] | detailFormattersManager |
1 | 2 | [[#95438ac0]] | fm |
2 | 1 | [[#95438a80]] | detailFormatter |
2 | 2 | [[#95438a80]] | formatter |