CloneSet478


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
30201.000statement_sequence[12]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
13097
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/ExclusionInclusionDialog.java
23086
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/SetFilterWizardPage.java
Clone Instance
1
Line Count
30
Source Line
97
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/ExclusionInclusionDialog.java

                fCurrProject = entryToEdit.getJavaProject().getProject();
                IWorkspaceRoot root = fCurrProject.getWorkspace().getRoot();
                IResource res = root.findMember(entryToEdit.getPath());
                if (res instanceof IContainer) {
                        fCurrSourceFolder = (IContainer) res;
                }

                String excLabel = NewWizardMessages.ExclusionInclusionDialog_exclusion_pattern_label;
                ImageDescriptor excDescriptor = JavaPluginImages.DESC_OBJS_EXCLUSION_FILTER_ATTRIB;
                String[] excButtonLabels = new String[] {
                                 NewWizardMessages.ExclusionInclusionDialog_exclusion_pattern_add,
                                 NewWizardMessages.ExclusionInclusionDialog_exclusion_pattern_add_multiple,
                                 NewWizardMessages.ExclusionInclusionDialog_exclusion_pattern_edit,
                                 null,
                                 NewWizardMessages.ExclusionInclusionDialog_exclusion_pattern_remove
                                                        };


                String incLabel = NewWizardMessages.ExclusionInclusionDialog_inclusion_pattern_label;
                ImageDescriptor incDescriptor = JavaPluginImages.DESC_OBJS_INCLUSION_FILTER_ATTRIB;
                String[] incButtonLabels = new String[] {
                                 NewWizardMessages.ExclusionInclusionDialog_inclusion_pattern_add,
                                 NewWizardMessages.ExclusionInclusionDialog_inclusion_pattern_add_multiple,
                                 NewWizardMessages.ExclusionInclusionDialog_inclusion_pattern_edit,
                                 null,
                                 NewWizardMessages.ExclusionInclusionDialog_inclusion_pattern_remove
                                                        };

                fExclusionPatternList = createListContents(entryToEdit, CPListElement.EXCLUSION, excLabel, excDescriptor, excButtonLabels);
                fInclusionPatternList = createListContents(entryToEdit, CPListElement.INCLUSION, incLabel, incDescriptor, incButtonLabels);


Clone Instance
2
Line Count
30
Source Line
86
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/SetFilterWizardPage.java

                fCurrProject = entryToEdit.getJavaProject().getProject();
                IWorkspaceRoot root = fCurrProject.getWorkspace().getRoot();
                IResource res = root.findMember(entryToEdit.getPath());
                if (res instanceof IContainer) {
                        fCurrSourceFolder = (IContainer) res;
                }

                String excLabel = NewWizardMessages.ExclusionInclusionDialog_exclusion_pattern_label;
                ImageDescriptor excDescriptor = JavaPluginImages.DESC_OBJS_EXCLUSION_FILTER_ATTRIB;
                String[] excButtonLabels = new String[] {
                                 NewWizardMessages.ExclusionInclusionDialog_exclusion_pattern_add,
                                 NewWizardMessages.ExclusionInclusionDialog_exclusion_pattern_add_multiple,
                                 NewWizardMessages.ExclusionInclusionDialog_exclusion_pattern_edit,
                                 null,
                                 NewWizardMessages.ExclusionInclusionDialog_exclusion_pattern_remove
                                                        };


                String incLabel = NewWizardMessages.ExclusionInclusionDialog_inclusion_pattern_label;
                ImageDescriptor incDescriptor = JavaPluginImages.DESC_OBJS_INCLUSION_FILTER_ATTRIB;
                String[] incButtonLabels = new String[] {
                                 NewWizardMessages.ExclusionInclusionDialog_inclusion_pattern_add,
                                 NewWizardMessages.ExclusionInclusionDialog_inclusion_pattern_add_multiple,
                                 NewWizardMessages.ExclusionInclusionDialog_inclusion_pattern_edit,
                                 null,
                                 NewWizardMessages.ExclusionInclusionDialog_inclusion_pattern_remove
                                                        };

                fExclusionPatternList = createListContents(entryToEdit, CPListElement.EXCLUSION, excLabel, excDescriptor, excButtonLabels);
                fInclusionPatternList = createListContents(entryToEdit, CPListElement.INCLUSION, incLabel, incDescriptor, incButtonLabels);


Clone AbstractionParameter Count: 0Parameter Bindings

fCurrProject = entryToEdit.getJavaProject().getProject();
IWorkspaceRoot root = fCurrProject.getWorkspace().getRoot();
IResource res = root.findMember(entryToEdit.getPath());
if (res instanceof IContainer) {
  fCurrSourceFolder = (IContainer) res;
}
String excLabel = NewWizardMessages.ExclusionInclusionDialog_exclusion_pattern_label;
ImageDescriptor excDescriptor = JavaPluginImages.DESC_OBJS_EXCLUSION_FILTER_ATTRIB;
String[] excButtonLabels = new String[] {
                                          NewWizardMessages.ExclusionInclusionDialog_exclusion_pattern_add,
                                          NewWizardMessages.ExclusionInclusionDialog_exclusion_pattern_add_multiple,
                                          NewWizardMessages.ExclusionInclusionDialog_exclusion_pattern_edit,
                                          null,
                                          NewWizardMessages.ExclusionInclusionDialog_exclusion_pattern_remove
                                        };
String incLabel = NewWizardMessages.ExclusionInclusionDialog_inclusion_pattern_label;
ImageDescriptor incDescriptor = JavaPluginImages.DESC_OBJS_INCLUSION_FILTER_ATTRIB;
String[] incButtonLabels = new String[] {
                                          NewWizardMessages.ExclusionInclusionDialog_inclusion_pattern_add,
                                          NewWizardMessages.ExclusionInclusionDialog_inclusion_pattern_add_multiple,
                                          NewWizardMessages.ExclusionInclusionDialog_inclusion_pattern_edit,
                                          null,
                                          NewWizardMessages.ExclusionInclusionDialog_inclusion_pattern_remove
                                        };
fExclusionPatternList = createListContents(entryToEdit, CPListElement.EXCLUSION, excLabel, excDescriptor, excButtonLabels);
fInclusionPatternList = createListContents(entryToEdit, CPListElement.INCLUSION, incLabel, incDescriptor, incButtonLabels);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None