Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
12 | 2 | 0 | 1.000 | statement_sequence[8] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 12 | 128 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/template/java/JavaContext.java |
2 | 12 | 191 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/template/java/JavaDocContext.java |
| ||||
TemplateBuffer buffer = translator.translate(template); getContextType().resolve(buffer, this ); IPreferenceStore prefs = JavaPlugin.getDefault().getPreferenceStore(); boolean useCodeFormatter = prefs.getBoolean(PreferenceConstants.TEMPLATES_USE_CODEFORMATTER); IJavaProject project = getCompilationUnit() != null ? getCompilationUnit().getJavaProject(): null; JavaFormatter formatter = new JavaFormatter(TextUtilities.getDefaultLineDelimiter(getDocument()), getIndentation(), useCodeFormatter, project); formatter.format(buffer, this ); return buffer; |
| ||||
TemplateBuffer buffer = translator.translate(template); getContextType().resolve(buffer, this ); IPreferenceStore prefs = JavaPlugin.getDefault().getPreferenceStore(); boolean useCodeFormatter = prefs.getBoolean(PreferenceConstants.TEMPLATES_USE_CODEFORMATTER); IJavaProject project = getCompilationUnit() != null ? getCompilationUnit().getJavaProject(): null; JavaFormatter formatter = new JavaFormatter(TextUtilities.getDefaultLineDelimiter(getDocument()), getIndentation(), useCodeFormatter, project); formatter.format(buffer, this ); return buffer; |
| |||
TemplateBuffer buffer = translator.translate(template); getContextType().resolve(buffer, this ); IPreferenceStore prefs = JavaPlugin.getDefault().getPreferenceStore(); boolean useCodeFormatter = prefs.getBoolean(PreferenceConstants.TEMPLATES_USE_CODEFORMATTER); IJavaProject project = getCompilationUnit() != null ? getCompilationUnit().getJavaProject(): null; JavaFormatter formatter = new JavaFormatter(TextUtilities.getDefaultLineDelimiter(getDocument()), getIndentation(), useCodeFormatter, project); formatter.format(buffer, this ); return buffer; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
None |