public final class ConverterPlugin extends EMFPlugin { /** * The singleton instance of the plugin. */ public static final ConverterPlugin INSTANCE = new ConverterPlugin(); /** * The one instance of this class. */ private static Implementation plugin; public static final String ID = "org.eclipse.emf.converter"; /** * Creates the singleton instance. */ private ConverterPlugin() { 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;
public final class ImporterPlugin extends EMFPlugin { /** * The singleton instance of the plugin. */ public static final ImporterPlugin INSTANCE = new ImporterPlugin(); /** * The one instance of this class. */ private static Implementation plugin; public static final String ID = "org.eclipse.emf.importer"; /** * Creates the singleton instance. */ private ImporterPlugin() { super (new ResourceLocator [] { ConverterPlugin.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/converter/ConverterPlugin.java File path: /emf-2.4.1/src/org/eclipse/emf/importer/ImporterPlugin.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public final class ConverterPlugin extends EMFPlugin
1
public final class ImporterPlugin 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 ConverterPlugin INSTANCE = new ConverterPlugin();
6
  public static final ImporterPlugin INSTANCE = new ImporterPlugin();
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
  public static final String ID = "org.eclipse.emf.converter";
12
  public static final String ID = "org.eclipse.emf.importer";
13
  /**
13
  /**
14
   * Creates the singleton instance.
14
   * Creates the singleton instance.
15
   */
15
   */
16
  private ConverterPlugin()
16
  private ImporterPlugin()
17
  {
17
  {
18
    super
18
    super
19
      (new ResourceLocator []
19
      (new ResourceLocator []
20
       {
20
       {
21
         
21
         ConverterPlugin.INSTANCE
22
       });
22
       });
23
  }
23
  }
24
  /*
24
  /*
25
   * Javadoc copied from base class.
25
   * Javadoc copied from base class.
26
   */
26
   */
27
  @Override
27
  @Override
28
  public ResourceLocator getPluginResourceLocator()
28
  public ResourceLocator getPluginResourceLocator()
29
  {
29
  {
30
    return plugin;
30
    return plugin;
31
  }
31
  }
32
  /**
32
  /**
33
   * Returns the singleton instance of the Eclipse plugin.
33
   * Returns the singleton instance of the Eclipse plugin.
34
   * @return the singleton instance.
34
   * @return the singleton instance.
35
   */
35
   */
36
  public static Implementation getPlugin()
36
  public static Implementation getPlugin()
37
  {
37
  {
38
    return plugin;
38
    return plugin;
39
  }
39
  }
40
  /**
40
  /**
41
   * The actual implementation of the Eclipse <b>Plugin</b>.
41
   * The actual implementation of the Eclipse <b>Plugin</b>.
42
   */
42
   */
43
  public static class Implementation extends EclipsePlugin
43
  public static class Implementation extends EclipsePlugin
44
  {
44
  {
45
    /**
45
    /**
46
     * Creates an instance.
46
     * Creates an instance.
47
     */
47
     */
48
    public Implementation()
48
    public Implementation()
49
    {
49
    {
50
      super();
50
      super();
51
      // Remember the static instance.
51
      // Remember the static instance.
52
      //
52
      //
53
      plugin = this;
53
      plugin = this;
54
    
54
    
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