CloneSet2757


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
7230.987class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
17460
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/BuildPathDialogAccess.java
27481
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/BuildPathDialogAccess.java
Clone Instance
1
Line Count
7
Source Line
460
Source File
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);
        }


Clone Instance
2
Line Count
7
Source Line
481
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/BuildPathDialogAccess.java

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


Clone AbstractionParameter Count: 3Parameter Bindings

/**
         * 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#54389640]]
chooseClassFolderEntries 
12[[#54389640]]
chooseSourceFolderEntries 
21[[#54389600]]
BuildPathDialogAccess_ExistingClassFolderDialog_new_title 
22[[#54389600]]
BuildPathDialogAccess_ExistingSourceFolderDialog_new_title 
31[[#543895c0]]
BuildPathDialogAccess_ExistingClassFolderDialog_new_description 
32[[#543895c0]]
BuildPathDialogAccess_ExistingSourceFolderDialog_new_description