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