Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
25 | 2 | 3 | 0.989 | executable_statement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 25 | 144 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/CPListLabelProvider.java |
2 | 25 | 169 | 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 } ); } |
| ||||
{ 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 } ); } |
| |||
{ 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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#bbcd1460]] | CPListLabelProvider_exclusion_filter_separator |
1 | 2 | [[#bbcd1460]] | CPListLabelProvider_inclusion_filter_separator |
2 | 1 | [[#b26c8240]] | notAvailable |
2 | 2 | [[#b26c8240]] | NewWizardMessages.CPListLabelProvider_all |
3 | 1 | [[#b269adc0]] | CPListLabelProvider_exclusion_filter_label |
3 | 2 | [[#b269adc0]] | CPListLabelProvider_inclusion_filter_label |