public final class EcoreImporterPlugin extends EMFPlugin { /** * The singleton instance of the plugin. */ public static final EcoreImporterPlugin INSTANCE = new EcoreImporterPlugin(); /** * The one instance of this class. */ private static Implementation plugin; /** * Creates the singleton instance. */ private EcoreImporterPlugin() { super(new ResourceLocator [] { ImporterPlugin.INSTANCE }); } /* * 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;
public final class Ecore2XMLUIPlugin extends EMFPlugin { /** * Keep track of the singleton. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static final Ecore2XMLUIPlugin INSTANCE = new Ecore2XMLUIPlugin(); /** * 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 Ecore2XMLUIPlugin() { super (new ResourceLocator [] { EcoreEditPlugin.INSTANCE, }); } /** * 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/importer/ecore/EcoreImporterPlugin.java File path: /emf-2.4.1/src/org/eclipse/emf/mapping/ecore2xml/ui/Ecore2XMLUIPlugin.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public final class EcoreImporterPlugin extends EMFPlugin
1
public final class Ecore2XMLUIPlugin 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 EcoreImporterPlugin INSTANCE = new EcoreImporterPlugin();
9
  public static final Ecore2XMLUIPlugin INSTANCE = new Ecore2XMLUIPlugin();
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 instance.
19
   * <!-- begin-user-doc -->
20
   * <!-- end-user-doc -->
21
   * @generated
13
   */
22
   */
14
  private EcoreImporterPlugin()
23
  public Ecore2XMLUIPlugin()
15
  {
24
  {
16
    super
25
    super
17
(new ResourceLocator [] { Importer
26
      (new ResourceLocator [] 
27
      {
18
Plugin.INSTANCE
28
        EcoreEditPlugin.INSTANCE,
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 EclipsePlugin
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