CloneSet753


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
25230.989executable_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
125144
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/CPListLabelProvider.java
225169
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/CPListLabelProvider.java
Clone Instance
1
Line Count
25
Source Line
144
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/CPListLabelProvider.java

                                                                {
                        String arg = null;
                        IPath[] patterns = (IPath[]) attrib.getValue();
                        if (patterns != null && patterns.length > 0) {
                                int patternsCount = 0;
                                StringBuffer buf = new StringBuffer();
                                for (int i = 0; i < patterns.length; i++) {
                                        String pattern = patterns[i].toString();
                                        if (pattern.length() > 0) {
                                                if (patternsCount > 0) {
                                                        buf.append(NewWizardMessages.CPListLabelProvider_exclusion_filter_separator);
                                                }
                                                buf.append(pattern);
                                                patternsCount++;
                                        }
                                }
                                if (patternsCount > 0) {
                                        arg = buf.toString();
                                }
                                else   {
                                        arg = notAvailable;
                                }
                        }
                        else   {
                                arg = notAvailable;
                        }
                        return Messages.format(NewWizardMessages.CPListLabelProvider_exclusion_filter_label, new String[] {
                                                                                                                            arg
                                                                                                                          } );
                                                                }


Clone Instance
2
Line Count
25
Source Line
169
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/CPListLabelProvider.java

                                                                {
                        String arg = null;
                        IPath[] patterns = (IPath[]) attrib.getValue();
                        if (patterns != null && patterns.length > 0) {
                                int patternsCount = 0;
                                StringBuffer buf = new StringBuffer();
                                for (int i = 0; i < patterns.length; i++) {
                                        String pattern = patterns[i].toString();
                                        if (pattern.length() > 0) {
                                                if (patternsCount > 0) {
                                                        buf.append(NewWizardMessages.CPListLabelProvider_inclusion_filter_separator);
                                                }
                                                buf.append(pattern);
                                                patternsCount++;
                                        }
                                }
                                if (patternsCount > 0) {
                                        arg = buf.toString();
                                }
                                else   {
                                        arg = notAvailable;
                                }
                        }
                        else   {
                                arg = NewWizardMessages.CPListLabelProvider_all;
                        }
                        return Messages.format(NewWizardMessages.CPListLabelProvider_inclusion_filter_label, new String[] {
                                                                                                                            arg
                                                                                                                          } );
                                                                }


Clone AbstractionParameter Count: 3Parameter Bindings

{
  String arg = null;
  IPath[] patterns = (IPath[]) attrib.getValue();
  if (patterns != null && patterns.length > 0) {
    int patternsCount = 0;
    StringBuffer buf = new StringBuffer();
    for (int i = 0; i < patterns.length; i++) {
      String pattern = patterns[i].toString();
      if (pattern.length() > 0) {
        if (patternsCount > 0) {
          buf.append(NewWizardMessages. [[#variablebbcd1460]]);
        }
        buf.append(pattern);
        patternsCount++;
      }
    }
    if (patternsCount > 0) {
      arg = buf.toString();
    }
    else {
      arg = notAvailable;
    }
  }
  else {
    arg = [[#variableb26c8240]];
  }
  return Messages.format(NewWizardMessages. [[#variableb269adc0]], new String[] {
                                                                                  arg
                                                                                } );
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#bbcd1460]]
CPListLabelProvider_exclusion_filter_separator 
12[[#bbcd1460]]
CPListLabelProvider_inclusion_filter_separator 
21[[#b26c8240]]
notAvailable 
22[[#b26c8240]]
NewWizardMessages.CPListLabelProvider_all 
31[[#b269adc0]]
CPListLabelProvider_exclusion_filter_label 
32[[#b269adc0]]
CPListLabelProvider_inclusion_filter_label