CloneSet1988


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
15250.961statement_sequence[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
114736
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/JavaPlugin.java
215789
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/JavaPlugin.java
Clone Instance
1
Line Count
14
Source Line
736
Source File
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();


Clone Instance
2
Line Count
15
Source Line
789
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/JavaPlugin.java

                        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();


Clone AbstractionParameter Count: 5Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#62be9300]]
CODE_TEMPLATES_MIGRATION_KEY 
12[[#62be9300]]
TEMPLATES_MIGRATION_KEY 
21[[#62be81a0]]
fCodeTemplateStore 
22[[#62be81a0]]
fTemplateStore 
31[[#62be8140]]
getCodeTemplateContextRegistry 
32[[#62be8140]]
getTemplateContextRegistry 
41[[#62be92c0]]
CODE_TEMPLATES_KEY 
42[[#62be92c0]]
TEMPLATES_KEY 
51[[#62be9220]]
getOldCodeTemplateStoreInstance 
52[[#62be9220]]
getOldTemplateStoreInstance