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 JavaImporterPlugin extends EMFPlugin { /** * The singleton instance of the plugin. */ public static final JavaImporterPlugin INSTANCE = new JavaImporterPlugin(); /** * The one instance of this class. */ private static Implementation plugin; /** * Creates the singleton instance. */ private JavaImporterPlugin() { 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;
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/importer/java/JavaImporterPlugin.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 JavaImporterPlugin extends EMFPlugin
2
{
2
{
3
  /**
3
  /**
4
   * The singleton instance of the plugin.
4
   * The singleton instance of the plugin.
5
   */
5
   */
6
  public static final EcoreImporterPlugin INSTANCE = new EcoreImporterPlugin();
6
  public static final JavaImporterPlugin INSTANCE = new JavaImporterPlugin();
7
  /**
7
  /**
8
   * The one instance of this class.
8
   * The one instance of this class.
9
   */
9
   */
10
  private static Implementation plugin;
10
  private static Implementation plugin;
11
  /**
11
  /**
12
   * Creates the singleton instance.
12
   * Creates the singleton instance.
13
   */
13
   */
14
  private EcoreImporterPlugin()
14
  private JavaImporterPlugin()
15
  {
15
  {
16
    super(new ResourceLocator [] { ImporterPlugin.INSTANCE });
16
    super(new ResourceLocator [] { ImporterPlugin.INSTANCE });
17
  }
17
  }
18
  /*
18
  /*
19
   * Javadoc copied from base class.
19
   * Javadoc copied from base class.
20
   */
20
   */
21
  @Override
21
  @Override
22
  public ResourceLocator getPluginResourceLocator()
22
  public ResourceLocator getPluginResourceLocator()
23
  {
23
  {
24
    return plugin;
24
    return plugin;
25
  }
25
  }
26
  /**
26
  /**
27
   * Returns the singleton instance of the Eclipse plugin.
27
   * Returns the singleton instance of the Eclipse plugin.
28
   * @return the singleton instance.
28
   * @return the singleton instance.
29
   */
29
   */
30
  public static Implementation getPlugin()
30
  public static Implementation getPlugin()
31
  {
31
  {
32
    return plugin;
32
    return plugin;
33
  }
33
  }
34
  /**
34
  /**
35
   * The actual implementation of the Eclipse <b>Plugin</b>.
35
   * The actual implementation of the Eclipse <b>Plugin</b>.
36
   */
36
   */
37
  public static class Implementation extends EclipsePlugin
37
  public static class Implementation extends EclipsePlugin
38
  {
38
  {
39
    /**
39
    /**
40
     * Creates an instance.
40
     * Creates an instance.
41
     */
41
     */
42
    public Implementation()
42
    public Implementation()
43
    {
43
    {
44
      super();
44
      super();
45
      // Remember the static instance.
45
      // Remember the static instance.
46
      //
46
      //
47
      plugin = this;
47
      plugin = this;
48
    
48
    
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