| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 7 | 2 | 3 | 0.987 | class_body_declaration |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 7 | 460 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/BuildPathDialogAccess.java |
| 2 | 7 | 481 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/BuildPathDialogAccess.java |
| ||||
/**
* Shows the UI to select new class folders.
* The dialog returns the selected classpath entry paths or <code>null</code> if the dialog has
* been canceled. The dialog does not apply any changes.
*
* @param shell The parent shell for the dialog.
* @param initialSelection The path of the element to initially select or <code>null</code>.
* @param usedEntries An array of paths that are already on the classpath and therefore should not be
* selected again.
* @return Returns the configured classpath container entry path or <code>null</code> if the dialog has
* been canceled by the user.
*/
public static IPath[] chooseClassFolderEntries(Shell shell, IPath initialSelection, IPath[] usedEntries) {
if (usedEntries == null) {
throw new IllegalArgumentException();
}
String title = NewWizardMessages.BuildPathDialogAccess_ExistingClassFolderDialog_new_title;
String message = NewWizardMessages.BuildPathDialogAccess_ExistingClassFolderDialog_new_description;
return internalChooseFolderEntry(shell, initialSelection, usedEntries, title, message);
}
|
| ||||
/**
* Shows the UI to select new source folders.
* The dialog returns the selected classpath entry paths or <code>null</code> if the dialog has
* been canceled The dialog does not apply any changes.
*
* @param shell The parent shell for the dialog.
* @param initialSelection The path of the element to initially select or <code>null</code>
* @param usedEntries An array of paths that are already on the classpath and therefore should not be
* selected again.
* @return Returns the configured classpath container entry path or <code>null</code> if the dialog has
* been canceled by the user.
*/
public static IPath[] chooseSourceFolderEntries(Shell shell, IPath initialSelection, IPath[] usedEntries) {
if (usedEntries == null) {
throw new IllegalArgumentException();
}
String title = NewWizardMessages.BuildPathDialogAccess_ExistingSourceFolderDialog_new_title;
String message = NewWizardMessages.BuildPathDialogAccess_ExistingSourceFolderDialog_new_description;
return internalChooseFolderEntry(shell, initialSelection, usedEntries, title, message);
}
|
| |||
/**
* Shows the UI to select new class folders.
* The dialog returns the selected classpath entry paths or <code>null</code> if the dialog has
* been canceled. The dialog does not apply any changes.
*
* @param shell The parent shell for the dialog.
* @param initialSelection The path of the element to initially select or <code>null</code>.
* @param usedEntries An array of paths that are already on the classpath and therefore should not be
* selected again.
* @return Returns the configured classpath container entry path or <code>null</code> if the dialog has
* been canceled by the user.
*/
/**
* Shows the UI to select new source folders.
* The dialog returns the selected classpath entry paths or <code>null</code> if the dialog has
* been canceled The dialog does not apply any changes.
*
* @param shell The parent shell for the dialog.
* @param initialSelection The path of the element to initially select or <code>null</code>
* @param usedEntries An array of paths that are already on the classpath and therefore should not be
* selected again.
* @return Returns the configured classpath container entry path or <code>null</code> if the dialog has
* been canceled by the user.
*/
public static IPath[] [[#variable54389640]](Shell shell, IPath initialSelection, IPath[] usedEntries) {
if (usedEntries == null) {
throw new IllegalArgumentException();
}
String title = NewWizardMessages. [[#variable54389600]];
String message = NewWizardMessages. [[#variable543895c0]];
return internalChooseFolderEntry(shell, initialSelection, usedEntries, title, message);
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#54389640]] | chooseClassFolderEntries |
| 1 | 2 | [[#54389640]] | chooseSourceFolderEntries |
| 2 | 1 | [[#54389600]] | BuildPathDialogAccess_ExistingClassFolderDialog_new_title |
| 2 | 2 | [[#54389600]] | BuildPathDialogAccess_ExistingSourceFolderDialog_new_title |
| 3 | 1 | [[#543895c0]] | BuildPathDialogAccess_ExistingClassFolderDialog_new_description |
| 3 | 2 | [[#543895c0]] | BuildPathDialogAccess_ExistingSourceFolderDialog_new_description |