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 EcoreEditorPlugin extends EMFPlugin { /** * Keep track of the singleton. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static final EcoreEditorPlugin INSTANCE = new EcoreEditorPlugin(); /** * Keep track of the singleton. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private static Implementation plugin; /** * Create the instance. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EcoreEditorPlugin() { super (new ResourceLocator [] { }); } /** * Returns the singleton instance of the Eclipse plugin. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the singleton instance. * @generated */ @Override public ResourceLocator getPluginResourceLocator() { return plugin; } /** * Returns the singleton instance of the Eclipse plugin. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the singleton instance. * @generated */ public static Implementation getPlugin() { return plugin; } /** * The actual implementation of the Eclipse <b>Plugin</b>. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static class Implementation extends EclipseUIPlugin { /** * Creates an instance. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ 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/ecore/presentation/EcoreEditorPlugin.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 EcoreEditorPlugin extends EMFPlugin
2
{
2
{
3
  /**
3
  /**
4
   * The singleton instance of the plugin.
4
   * Keep track of the singleton.
5
   * <!-- begin-user-doc -->
6
   * <!-- end-user-doc -->
7
   * @generated
5
   */
8
   */
6
  public static final CommonUIPlugin INSTANCE = new CommonUIPlugin();
9
  public static final EcoreEditorPlugin INSTANCE = new EcoreEditorPlugin();
7
  /**
10
  /**
8
   * The one instance of this class.
11
   * Keep track of the singleton.
12
   * <!-- begin-user-doc -->
13
   * <!-- end-user-doc -->
14
   * @generated
9
   */
15
   */
10
  private static Implementation plugin;
16
  private static Implementation plugin;
11
  /**
17
  /**
12
   * Creates the singleton instance.
18
   * Create the 
13
   */
14
  private CommonUI
19
instance.
20
   * <!-- begin-user-doc -->
21
   * <!-- end-user-doc -->
22
   * @generated
23
   */
15
Plugin()
24
  public EcoreEditorPlugin()
16
  {
25
  {
17
    super
26
    super
18
(new ResourceLocator[] {
27
      (new ResourceLocator [] 
28
      {
19
});
29
      });
20
  }
30
  }
21
  /*
31
  /**
22
   * Javadoc copied from base class.
32
   * Returns the singleton instance of the Eclipse plugin.
33
   * <!-- begin-user-doc -->
34
   * <!-- end-user-doc -->
35
   * @return the singleton instance.
36
   * @generated
23
   */
37
   */
24
  @Override
38
  @Override
25
  public ResourceLocator getPluginResourceLocator()
39
  public ResourceLocator getPluginResourceLocator()
26
  {
40
  {
27
    return plugin;
41
    return plugin;
28
  }
42
  }
29
  /**
43
  /**
30
   * Returns the singleton instance of the Eclipse plugin.
44
   * Returns the singleton instance of the Eclipse plugin.
45
   * <!-- begin-user-doc -->
46
   * <!-- end-user-doc -->
31
   * @return the singleton instance.
47
   * @return the singleton instance.
48
   * @generated
32
   */
49
   */
33
  public static Implementation getPlugin()
50
  public static Implementation getPlugin()
34
  {
51
  {
35
    return plugin;
52
    return plugin;
36
  }
53
  }
37
  /**
54
  /**
38
   * The actual implementation of the Eclipse <b>Plugin</b>.
55
   * The actual implementation of the Eclipse <b>Plugin</b>.
56
   * <!-- begin-user-doc -->
57
   * <!-- end-user-doc -->
58
   * @generated
39
   */
59
   */
40
  public static class Implementation extends EclipseUIPlugin 
60
  public static class Implementation extends EclipseUIPlugin
41
  {
61
  {
42
    /**
62
    /**
43
     * Creates an instance.
63
     * Creates an instance.
64
     * <!-- begin-user-doc -->
65
     * <!-- end-user-doc -->
66
     * @generated
44
     */
67
     */
45
    public Implementation()
68
    public Implementation()
46
    {
69
    {
47
      super();
70
      super();
71
  
48
      // Remember the static instance.
72
      // Remember the static instance.
49
      //
73
      //
50
      plugin = this;
74
      plugin = this;
51
    
75
    
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