| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 6 | 2 | 4 | 0.964 | statement_sequence_member |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 6 | 3402 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/PreferenceConstants.java |
| 2 | 6 | 3410 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/PreferenceConstants.java |
| ||||
// CodeGenerationPreferencePage
// compatibility code
if (store.getBoolean(PreferenceConstants.CODEGEN_USE_GETTERSETTER_PREFIX)) {
String prefix = store.getString(PreferenceConstants.CODEGEN_GETTERSETTER_PREFIX);
if (prefix.length() > 0) {
JavaCore.getPlugin().getPluginPreferences().setValue(JavaCore.CODEASSIST_FIELD_PREFIXES, prefix);
store.setToDefault(PreferenceConstants.CODEGEN_USE_GETTERSETTER_PREFIX);
store.setToDefault(PreferenceConstants.CODEGEN_GETTERSETTER_PREFIX);
}
}
|
| ||||
if (store.getBoolean(PreferenceConstants.CODEGEN_USE_GETTERSETTER_SUFFIX)) {
String suffix = store.getString(PreferenceConstants.CODEGEN_GETTERSETTER_SUFFIX);
if (suffix.length() > 0) {
JavaCore.getPlugin().getPluginPreferences().setValue(JavaCore.CODEASSIST_FIELD_SUFFIXES, suffix);
store.setToDefault(PreferenceConstants.CODEGEN_USE_GETTERSETTER_SUFFIX);
store.setToDefault(PreferenceConstants.CODEGEN_GETTERSETTER_SUFFIX);
}
}
|
| |||
// CodeGenerationPreferencePage
// compatibility code
if (store.getBoolean(PreferenceConstants. [[#variablea45e5580]])) {
String [[#variablea45e5520]]= store.getString(PreferenceConstants. [[#variablea45e54c0]]);
if ( [[#variablea45e5520]].length() > 0) {
JavaCore.getPlugin().getPluginPreferences().setValue(JavaCore. [[#variablea45e5420]], [[#variablea45e5520]]);
store.setToDefault(PreferenceConstants. [[#variablea45e5580]]);
store.setToDefault(PreferenceConstants. [[#variablea45e54c0]]);
}
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#a45e5580]] | CODEGEN_USE_GETTERSETTER_PREFIX |
| 1 | 2 | [[#a45e5580]] | CODEGEN_USE_GETTERSETTER_SUFFIX |
| 2 | 1 | [[#a45e5520]] | prefix |
| 2 | 2 | [[#a45e5520]] | suffix |
| 3 | 1 | [[#a45e54c0]] | CODEGEN_GETTERSETTER_PREFIX |
| 3 | 2 | [[#a45e54c0]] | CODEGEN_GETTERSETTER_SUFFIX |
| 4 | 1 | [[#a45e5420]] | CODEASSIST_FIELD_PREFIXES |
| 4 | 2 | [[#a45e5420]] | CODEASSIST_FIELD_SUFFIXES |