public final class CommonUIPlugin extends EMFPlugin { /** * The singleton instance of the plugin. */ public static final CommonUIPlugin INSTANCE = new CommonUIPlugin(); /** * The one instance of this class. */ private static Implementation plugin; /** * Creates the singleton instance. */ private CommonUIPlugin() { super(new ResourceLocator[] {}); } /* * Javadoc copied from base class. */ @Override public ResourceLocator getPluginResourceLocator() { return plugin; } /** * Returns the singleton instance of the Eclipse plugin. * @return the singleton instance. */ public static Implementation getPlugin() { return plugin; } /** * The actual implementation of the Eclipse <b>Plugin</b>. */ public static class Implementation extends EclipseUIPlugin { /** * Creates an instance. */ public Implementation() { super(); // Remember the static instance. // plugin = this;
public final class DataBindingPlugin extends EMFPlugin { /** * Keep track of the singleton. */ public static final DataBindingPlugin INSTANCE = new DataBindingPlugin(); /** * Keep track of the singleton. */ private static Implementation plugin; /** * Create the instance. */ public DataBindingPlugin() { super(new ResourceLocator [] {}); } /** * Returns the singleton instance of the Eclipse plugin. * @return the singleton instance. */ @Override public ResourceLocator getPluginResourceLocator() { return plugin; } /** * Returns the singleton instance of the Eclipse plugin. * @return the singleton instance. */ public static Implementation getPlugin() { return plugin; } /** * The actual implementation of the Eclipse <b>Plugin</b>. */ public static class Implementation extends EclipsePlugin { /** * Creates an instance. */ public Implementation() { super(); // Remember the static instance. // plugin = this;
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/common/ui/CommonUIPlugin.java File path: /emf-2.4.1/src/org/eclipse/emf/databinding/DataBindingPlugin.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public final class CommonUIPlugin extends EMFPlugin 
1
public final class DataBindingPlugin extends EMFPlugin
2
{
2
{
3
  /**
3
  /**
4
   * The singleton instance of the plugin.
4
   * Keep track of the singleton.
5
   */
5
   */
6
  public static final CommonUIPlugin INSTANCE = new CommonUIPlugin();
6
  public static final DataBindingPlugin INSTANCE = new DataBindingPlugin();
7
  /**
7
  /**
8
   * The one instance of this class.
8
   * Keep track of the singleton.
9
   */
9
   */
10
  private static Implementation plugin;
10
  private static Implementation plugin;
11
  /**
11
  /**
12
   * Creates the singleton instance.
12
   * Create the instance.
13
   */
13
   */
14
  private CommonUIPlugin()
14
  public DataBindingPlugin()
15
  {
15
  {
16
    super(new ResourceLocator[] {});
16
    super(new ResourceLocator [] {});
17
  }
17
  }
18
  /*
18
  /**
19
   * Javadoc copied from base class
19
   * Returns the singleton instance of the Eclipse plugin.
20
.
20
   * @return the singleton instance.
21
   */
21
   */
22
  @Override
22
  @Override
23
  public ResourceLocator getPluginResourceLocator()
23
  public ResourceLocator getPluginResourceLocator()
24
  {
24
  {
25
    return plugin;
25
    return plugin;
26
  }
26
  }
27
  /**
27
  /**
28
   * Returns the singleton instance of the Eclipse plugin.
28
   * Returns the singleton instance of the Eclipse plugin.
29
   * @return the singleton instance.
29
   * @return the singleton instance.
30
   */
30
   */
31
  public static Implementation getPlugin()
31
  public static Implementation getPlugin()
32
  {
32
  {
33
    return plugin;
33
    return plugin;
34
  }
34
  }
35
  /**
35
  /**
36
   * The actual implementation of the Eclipse <b>Plugin</b>.
36
   * The actual implementation of the Eclipse <b>Plugin</b>.
37
   */
37
   */
38
  public static class Implementation extends EclipseUIPlugin 
38
  public static class Implementation extends EclipsePlugin
39
  {
39
  {
40
    /**
40
    /**
41
     * Creates an instance.
41
     * Creates an instance.
42
     */
42
     */
43
    public Implementation()
43
    public Implementation()
44
    {
44
    {
45
      super();
45
      super();
46
      // Remember the static instance.
46
      // Remember the static instance.
47
      //
47
      //
48
      plugin = this;
48
      plugin = this;
49
    
49
    
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