Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
6 | 2 | 5 | 0.951 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 7 | 441 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/ProjectsWorkbookPage.java |
2 | 6 | 412 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/SourceContainerWorkbookPage.java |
| ||||
private void projectPageSelectionChanged(DialogField field) { List selElements = fProjectsList.getSelectedElements(); fProjectsList.enableButton(IDX_EDIT, canEdit(selElements)); fProjectsList.enableButton(IDX_REMOVE, canRemove(selElements)); boolean noAttributes = containsOnlyTopLevelEntries(selElements); fProjectsList.enableButton(IDX_ADDPROJECT, noAttributes); } |
| ||||
protected void sourcePageSelectionChanged(DialogField field) { List selected = fFoldersList.getSelectedElements(); fFoldersList.enableButton(IDX_EDIT, canEdit(selected)); fFoldersList.enableButton(IDX_REMOVE, canRemove(selected)); boolean noAttributes = containsOnlyTopLevelEntries(selected); fFoldersList.enableButton(IDX_ADD, noAttributes); } |
| |||
[[#variable54dccb40]]void [[#variable54dccae0]](DialogField field) { List [[#variableb8ea2ee0]]= [[#variable5470eec0]].getSelectedElements(); [[#variable5470eec0]].enableButton(IDX_EDIT, canEdit( [[#variableb8ea2ee0]])); [[#variable5470eec0]].enableButton(IDX_REMOVE, canRemove( [[#variableb8ea2ee0]])); boolean noAttributes = containsOnlyTopLevelEntries( [[#variableb8ea2ee0]]); [[#variable5470eec0]].enableButton( [[#variable54dccb80]], noAttributes); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#54dccb40]] | protected |
1 | 2 | [[#54dccb40]] | private |
2 | 1 | [[#54dccae0]] | sourcePageSelectionChanged |
2 | 2 | [[#54dccae0]] | projectPageSelectionChanged |
3 | 1 | [[#b8ea2ee0]] | selected |
3 | 2 | [[#b8ea2ee0]] | selElements |
4 | 1 | [[#5470eec0]] | fFoldersList |
4 | 2 | [[#5470eec0]] | fProjectsList |
5 | 1 | [[#54dccb80]] | IDX_ADD |
5 | 2 | [[#54dccb80]] | IDX_ADDPROJECT |