CloneSet670


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
16310.982statement_sequence[6]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
116140
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/AddSourceFolderWizardPage.java
216154
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/newsourcepage/LinkFolderDialog.java
316224
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/JavaProjectWizardFirstPage.java
Clone Instance
1
Line Count
16
Source Line
140
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/AddSourceFolderWizardPage.java

                        final DirectoryDialog dialog = new DirectoryDialog(getShell());
                        dialog.setMessage(NewWizardMessages.JavaProjectWizardFirstPage_directory_message);
                        String directoryName = fLinkLocation.getText().trim();
                        if (directoryName.length() == 0) {
                                String prevLocation = JavaPlugin.getDefault().getDialogSettings().get(DIALOGSTORE_LAST_EXTERNAL_LOC);
                                if (prevLocation != null) {
                                        directoryName = prevLocation;
                                }
                        }

                        if (directoryName.length() > 0) {
                                final File path = new File(directoryName);
                                if (path.exists())
                                        dialog.setFilterPath(directoryName);
                        }
                        final String selectedDirectory = dialog.open();


Clone Instance
2
Line Count
16
Source Line
154
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/newsourcepage/LinkFolderDialog.java

            final DirectoryDialog dialog = new DirectoryDialog(getShell());
            dialog.setMessage(NewWizardMessages.JavaProjectWizardFirstPage_directory_message);
            String directoryName = getLinkTarget().trim();
            if (directoryName.length() == 0) {
                String prevLocation = JavaPlugin.getDefault().getDialogSettings().get(DIALOGSTORE_LAST_EXTERNAL_LOC);
                if (prevLocation != null) {
                    directoryName = prevLocation;
                }
            }

            if (directoryName.length() > 0) {
                final File path = new File(directoryName);
                if (path.exists())
                    dialog.setFilterPath(directoryName);
            }
            final String selectedDirectory = dialog.open();


Clone Instance
3
Line Count
16
Source Line
224
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/JavaProjectWizardFirstPage.java

                        final DirectoryDialog dialog = new DirectoryDialog(getShell());
                        dialog.setMessage(NewWizardMessages.JavaProjectWizardFirstPage_directory_message);
                        String directoryName = fLocation.getText().trim();
                        if (directoryName.length() == 0) {
                                String prevLocation = JavaPlugin.getDefault().getDialogSettings().get(DIALOGSTORE_LAST_EXTERNAL_LOC);
                                if (prevLocation != null) {
                                        directoryName = prevLocation;
                                }
                        }

                        if (directoryName.length() > 0) {
                                final File path = new File(directoryName);
                                if (path.exists())
                                        dialog.setFilterPath(directoryName);
                        }
                        final String selectedDirectory = dialog.open();


Clone AbstractionParameter Count: 1Parameter Bindings

final DirectoryDialog dialog = new DirectoryDialog(getShell());
dialog.setMessage(NewWizardMessages.JavaProjectWizardFirstPage_directory_message);
String directoryName = [[#variable6212f7c0]].trim();
if (directoryName.length() == 0) {
  String prevLocation = JavaPlugin.getDefault().getDialogSettings().get(DIALOGSTORE_LAST_EXTERNAL_LOC);
  if (prevLocation != null) {
    directoryName = prevLocation;
  }
}
if (directoryName.length() > 0) {
  final File path = new File(directoryName);
  if (path.exists())
    dialog.setFilterPath(directoryName);
}
final String selectedDirectory = dialog.open();
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#6212f7c0]]
fLinkLocation.getText() 
12[[#6212f7c0]]
fLocation.getText() 
13[[#6212f7c0]]
getLinkTarget()