protected Display display; protected HashMap<Collection<?>, Color> table = new HashMap<Collection<?>, Color>(10); public ExtendedColorRegistry() { display = Display.getCurrent(); hookDisplayDispose(display); } public ExtendedColorRegistry(Display display) { this.display = display; hookDisplayDispose(display);
protected Display display; protected HashMap<Collection<?>, Font> table = new HashMap<Collection<?>, Font>(10); public ExtendedFontRegistry() { display = Display.getCurrent(); hookDisplayDispose(display); } public ExtendedFontRegistry(Display display) { this.display = display; hookDisplayDispose(display);
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/edit/ui/provider/ExtendedColorRegistry.java File path: /emf-2.4.1/src/org/eclipse/emf/edit/ui/provider/ExtendedFontRegistry.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
protected Display display;
1
protected Display display;
2
  protected HashMap<Collection<?>, Color> table = new HashMap<Collection<?>, Color>(10);
2
  protected HashMap<Collection<?>, Font> table = new HashMap<Collection<?>, Font>(10);
3
  public ExtendedColorRegistry()
3
  public ExtendedFontRegistry()
4
  {
4
  {
5
    display = Display.getCurrent();
5
    display = Display.getCurrent();
6
    hookDisplayDispose(display);
6
    hookDisplayDispose(display);
7
  }
7
  }
8
  public ExtendedColorRegistry(Display display)
8
  public ExtendedFontRegistry(Display display)
9
  {
9
  {
10
    this.display = display;
10
    this.display = display;
11
    hookDisplayDispose(display);
11
    hookDisplayDispose(display);
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0