| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 8 | 2 | 1 | 0.984 | statement_sequence[3] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 8 | 154 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaStructureCreator.java |
| 2 | 7 | 138 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/PropertiesStructureCreator.java |
| ||||
boolean isEditable = false;
if (input instanceof IEditableContent)
isEditable = ((IEditableContent) input).isEditable();
// we hook into the root node to intercept all node changes
JavaNode root = new JavaNode(doc, isEditable) {
void nodeChanged(JavaNode node) {
save(this, input);
}
};
|
| ||||
boolean isEditable = false;
if (input instanceof IEditableContent)
isEditable = ((IEditableContent) input).isEditable();
PropertyNode root = new PropertyNode(doc, isEditable) {
void nodeChanged(PropertyNode node) {
save(this, input);
}
};
|
| |||
boolean isEditable = false;
if (input instanceof IEditableContent)
isEditable = ((IEditableContent) input).isEditable();
[[#variablea35715c0]] root = new [[#variablea35715c0]](doc, isEditable) {
void nodeChanged( [[#variablea35715c0]] node) {
save(this, input);
}
};
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#a35715c0]] | // we hook into the root node to intercept all node changes JavaNode |
| 1 | 2 | [[#a35715c0]] | PropertyNode |