Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
30 | 2 | 4 | 0.951 | class_body_declarations[4] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 30 | 233 | plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/PullUpMemberPage.java |
2 | 30 | 109 | plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/PushDownWizard.java |
| ||||
private final ILabelProvider fLabelProvider = new JavaElementLabelProvider(JavaElementLabelProvider.SHOW_DEFAULT| JavaElementLabelProvider.SHOW_SMALL_ICONS); public void dispose() { super.dispose(); fLabelProvider.dispose(); } public Image getColumnImage( final Object element, final int columnIndex) { final MemberActionInfo info = (MemberActionInfo) element; switch (columnIndex) { case MEMBER_COLUMN: return fLabelProvider.getImage(info.getMember()); case ACTION_COLUMN: return null; default: Assert.isTrue(false); return null; } } public String getColumnText( final Object element, final int columnIndex) { final MemberActionInfo info = (MemberActionInfo) element; switch (columnIndex) { case MEMBER_COLUMN: return fLabelProvider.getText(info.getMember()); case ACTION_COLUMN: return info.getActionLabel(); default: Assert.isTrue(false); return null; } } |
| ||||
private final ILabelProvider fLabelProvider = new JavaElementLabelProvider(JavaElementLabelProvider.SHOW_DEFAULT| JavaElementLabelProvider.SHOW_SMALL_ICONS); public void dispose() { fLabelProvider.dispose(); super.dispose(); } public Image getColumnImage( final Object element, final int index) { final MemberActionInfo info = (MemberActionInfo) element; switch (index) { case MEMBER_COLUMN: return fLabelProvider.getImage(info.getMember()); case ACTION_COLUMN: return null; default: Assert.isTrue(false); return null; } } public String getColumnText( final Object element, final int index) { final MemberActionInfo info = (MemberActionInfo) element; switch (index) { case MEMBER_COLUMN: return fLabelProvider.getText(info.getMember()); case ACTION_COLUMN: return getActionLabel(info.getAction()); default: Assert.isTrue(false); return null; } } |
| |||
private final ILabelProvider fLabelProvider = new JavaElementLabelProvider(JavaElementLabelProvider.SHOW_DEFAULT|JavaElementLabelProvider.SHOW_SMALL_ICONS); public void dispose() { [[#variable525dac80]].dispose(); [[#variable538ead80]].dispose(); } public Image getColumnImage( final Object element, final int [[#variable64096b60]]) { final MemberActionInfo info = (MemberActionInfo) element; switch ( [[#variable64096b60]]) { case MEMBER_COLUMN: return fLabelProvider.getImage(info.getMember()); case ACTION_COLUMN: return null; default: Assert.isTrue(false); return null; } } public String getColumnText( final Object element, final int [[#variable64096b60]]) { final MemberActionInfo info = (MemberActionInfo) element; switch ( [[#variable64096b60]]) { case MEMBER_COLUMN: return fLabelProvider.getText(info.getMember()); case ACTION_COLUMN: return [[#variable538eae80]]; default: Assert.isTrue(false); return null; } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#525dac80]] | super |
1 | 2 | [[#525dac80]] | fLabelProvider |
2 | 1 | [[#538ead80]] | fLabelProvider |
2 | 2 | [[#538ead80]] | super |
3 | 1 | [[#64096b60]] | columnIndex |
3 | 2 | [[#64096b60]] | index |
4 | 1 | [[#538eae80]] | info.getActionLabel() |
4 | 2 | [[#538eae80]] | getActionLabel(info.getAction()) |