Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
21 | 2 | 3 | 0.972 | class_body_declarations[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 21 | 111 | E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/edit/ui/provider/AdapterFactoryContentProvider.java |
2 | 21 | 220 | E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/edit/ui/provider/AdapterFactoryLabelProvider.java |
| |||||
/** * This sets the wrapped factory. * If the adapter factory is an {@link IChangeNotifier}, * a listener is added to it, * so it's important to call {@link #dispose()}. */ public void setAdapterFactory(AdapterFactory adapterFactory) { if (this.adapterFactory instanceof IChangeNotifier) { ((IChangeNotifier) this.adapterFactory).removeListener(this ); } if (adapterFactory instanceof IChangeNotifier) { ((IChangeNotifier) adapterFactory).addListener(this ); } this.adapterFactory = adapterFactory; } /** * This returns the wrapped factory. */ public AdapterFactory getAdapterFactory() { return adapterFactory; } |
| |||||
/** * Set the wrapped AdapterFactory. * If the adapter factory is an {@link IChangeNotifier}, * a listener is added to it, * so it's important to call {@link #dispose()}. */ public void setAdapterFactory(AdapterFactory adapterFactory) { if (this.adapterFactory instanceof IChangeNotifier) { ((IChangeNotifier) this.adapterFactory).removeListener(this ); } if (adapterFactory instanceof IChangeNotifier) { ((IChangeNotifier) adapterFactory).addListener(this ); } this.adapterFactory = adapterFactory; } /** * Return the default font. */ public Font getDefaultFont() { return defaultFont; } |
| |||
/** * This sets the wrapped factory. * If the adapter factory is an {@link IChangeNotifier}, * a listener is added to it, * so it's important to call {@link #dispose()}. */ /** * Set the wrapped AdapterFactory. * If the adapter factory is an {@link IChangeNotifier}, * a listener is added to it, * so it's important to call {@link #dispose()}. */ public void setAdapterFactory(AdapterFactory adapterFactory) { if (this.adapterFactory instanceof IChangeNotifier) { ((IChangeNotifier) this.adapterFactory).removeListener(this ); } if (adapterFactory instanceof IChangeNotifier) { ((IChangeNotifier) adapterFactory).addListener(this ); } this.adapterFactory = adapterFactory; } /** * This returns the wrapped factory. */ /** * Return the default font. */ public [[#variable1731f500]] [[#variable1731f4a0]]() { return [[#variable1731f440]]; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#1731f500]] | AdapterFactory |
1 | 2 | [[#1731f500]] | Font |
2 | 1 | [[#1731f4a0]] | getAdapterFactory |
2 | 2 | [[#1731f4a0]] | getDefaultFont |
3 | 1 | [[#1731f440]] | adapterFactory |
3 | 2 | [[#1731f440]] | defaultFont |