| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 10 | 2 | 1 | 0.985 | class_body_declaration |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 10 | 78 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/FolderSelectionDialog.java |
| 2 | 10 | 271 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/MultipleFolderSelectionDialog.java |
| ||||
private void updateNewFolderButtonState() {
IStructuredSelection selection = (IStructuredSelection) getTreeViewer().getSelection();
fSelectedContainer = null;
if (selection.size() == 1) {
Object first = selection.getFirstElement();
if (first instanceof IContainer) {
fSelectedContainer = (IContainer) first;
}
}
fNewFolderButton.setEnabled(fSelectedContainer != null);
}
|
| ||||
private void updateNewFolderButtonState() {
IStructuredSelection selection = (IStructuredSelection) fViewer.getSelection();
fSelectedContainer = null;
if (selection.size() == 1) {
Object first = selection.getFirstElement();
if (first instanceof IContainer) {
fSelectedContainer = (IContainer) first;
}
}
fNewFolderButton.setEnabled(fSelectedContainer != null);
}
|
| |||
private void updateNewFolderButtonState() {
IStructuredSelection selection = (IStructuredSelection) [[#variable62624ec0]].getSelection();
fSelectedContainer = null;
if (selection.size() == 1) {
Object first = selection.getFirstElement();
if (first instanceof IContainer) {
fSelectedContainer = (IContainer) first;
}
}
fNewFolderButton.setEnabled(fSelectedContainer != null);
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#62624ec0]] | fViewer |
| 1 | 2 | [[#62624ec0]] | getTreeViewer() |