Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
15 | 2 | 5 | 0.961 | statement_sequence[4] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 14 | 736 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/JavaPlugin.java |
2 | 15 | 789 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/JavaPlugin.java |
| ||||
boolean alreadyMigrated = store.getBoolean(TEMPLATES_MIGRATION_KEY); if (alreadyMigrated) fTemplateStore = new ContributionTemplateStore(getTemplateContextRegistry(), store, TEMPLATES_KEY); else { fTemplateStore = new CompatibilityTemplateStore(getTemplateContextRegistry(), store, TEMPLATES_KEY, getOldTemplateStoreInstance()); store.setValue(TEMPLATES_MIGRATION_KEY, true); } try { fTemplateStore.load(); } catch (IOException e) { log(e); } fTemplateStore.startListeningForPreferenceChanges(); |
| ||||
boolean alreadyMigrated = store.getBoolean(CODE_TEMPLATES_MIGRATION_KEY); if (alreadyMigrated) fCodeTemplateStore = new ContributionTemplateStore(getCodeTemplateContextRegistry(), store, CODE_TEMPLATES_KEY); else { fCodeTemplateStore = new CompatibilityTemplateStore(getCodeTemplateContextRegistry(), store, CODE_TEMPLATES_KEY, getOldCodeTemplateStoreInstance()); store.setValue(CODE_TEMPLATES_MIGRATION_KEY, true); } try { fCodeTemplateStore.load(); } catch (IOException e) { log(e); } fCodeTemplateStore.startListeningForPreferenceChanges(); |
| |||
boolean alreadyMigrated = store.getBoolean( [[#variable62be9300]]); if (alreadyMigrated) [[#variable62be81a0]]= new ContributionTemplateStore( [[#variable62be8140]](), store, [[#variable62be92c0]]); else { [[#variable62be81a0]]= new CompatibilityTemplateStore( [[#variable62be8140]](), store, [[#variable62be92c0]], [[#variable62be9220]]()); store.setValue( [[#variable62be9300]], true); } try { [[#variable62be81a0]].load(); } catch (IOException e) { log(e); } [[#variable62be81a0]].startListeningForPreferenceChanges(); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#62be9300]] | CODE_TEMPLATES_MIGRATION_KEY |
1 | 2 | [[#62be9300]] | TEMPLATES_MIGRATION_KEY |
2 | 1 | [[#62be81a0]] | fCodeTemplateStore |
2 | 2 | [[#62be81a0]] | fTemplateStore |
3 | 1 | [[#62be8140]] | getCodeTemplateContextRegistry |
3 | 2 | [[#62be8140]] | getTemplateContextRegistry |
4 | 1 | [[#62be92c0]] | CODE_TEMPLATES_KEY |
4 | 2 | [[#62be92c0]] | TEMPLATES_KEY |
5 | 1 | [[#62be9220]] | getOldCodeTemplateStoreInstance |
5 | 2 | [[#62be9220]] | getOldTemplateStoreInstance |