CloneSet507


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
21230.972class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
121111
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/edit/ui/provider/AdapterFactoryContentProvider.java
221220
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/edit/ui/provider/AdapterFactoryLabelProvider.java
Next
Last
Clone Instance
1
Line Count
21
Source Line
111
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/edit/ui/provider/AdapterFactoryContentProvider.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;
}


First
Previous
Clone Instance
2
Line Count
21
Source Line
220
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/edit/ui/provider/AdapterFactoryLabelProvider.java

/**
 * 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;
}


Clone AbstractionParameter Count: 3Parameter Bindings

/**
   * 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1731f500]]
AdapterFactory 
12[[#1731f500]]
Font 
21[[#1731f4a0]]
getAdapterFactory 
22[[#1731f4a0]]
getDefaultFont 
31[[#1731f440]]
adapterFactory 
32[[#1731f440]]
defaultFont