@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;
@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/common/ui/CommonUIPlugin.java File path: /emf-2.4.1/src/org/eclipse/emf/importer/rose/RoseImporterPlugin.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
@Override
1
@Override
2
  public ResourceLocator getPluginResourceLocator()
2
  public ResourceLocator getPluginResourceLocator()
3
  {
3
  {
4
    return plugin;
4
    return plugin;
5
  }
5
  }
6
  /**
6
  /**
7
   * Returns the singleton instance of the Eclipse plugin.
7
   * Returns the singleton instance of the Eclipse plugin.
8
   * @return the singleton instance.
8
   * @return the singleton instance.
9
   */
9
   */
10
  public static Implementation getPlugin()
10
  public static Implementation getPlugin()
11
  {
11
  {
12
    return plugin;
12
    return plugin;
13
  }
13
  }
14
  /**
14
  /**
15
   * The actual implementation of the Eclipse <b>Plugin</b>.
15
   * The actual implementation of the Eclipse <b>Plugin</b>.
16
   */
16
   */
17
  public static class Implementation extends EclipseUIPlugin 
17
  public static class Implementation extends EclipsePlugin
18
  {
18
  {
19
    /**
19
    /**
20
     * Creates an instance.
20
     * Creates an instance.
21
     */
21
     */
22
    public Implementation()
22
    public Implementation()
23
    {
23
    {
24
      super();
24
      super();
25
      // Remember the static instance.
25
      // Remember the static instance.
26
      //
26
      //
27
      plugin = this;
27
      plugin = this;
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