CloneSet3339


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10210.985class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11078
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/FolderSelectionDialog.java
210271
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/MultipleFolderSelectionDialog.java
Clone Instance
1
Line Count
10
Source Line
78
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/FolderSelectionDialog.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);
        }


Clone Instance
2
Line Count
10
Source Line
271
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/MultipleFolderSelectionDialog.java

        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);
        }


Clone AbstractionParameter Count: 1Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#62624ec0]]
fViewer 
12[[#62624ec0]]
getTreeViewer()