protected Object descriptor; /** * This constructs an instance of an action that uses the workbench part's editing domain to create a child * specified by <code>descriptor</code> for the single object in the * <code>selection</code>. * @since 2.1.0 */ public CreateChildAction(IWorkbenchPart workbenchPart, ISelection selection, Object descriptor) { super(workbenchPart); this.descriptor = descriptor; configureAction(selection); } /** * This constructor is simply retained for binary compatibility. It just * calls the {@link #CreateChildAction(IWorkbenchPart, ISelection, Object) * new form}. */ public CreateChildAction(IEditorPart editorPart, ISelection selection, Object descriptor) { this((IWorkbenchPart)editorPart, selection, descriptor); } /** * This constructs an instance of an action that uses the given editing domain to create a child * specified by <code>descriptor</code> for the single object in the * <code>selection</code>. * @since 2.4.0 */ public CreateChildAction(EditingDomain editingDomain, ISelection selection, Object descriptor) { super(editingDomain); this.descriptor = descriptor; configureAction(selection);
protected Object descriptor; /** * This constructs an instance of an action that uses the workbench part's editing domain to create a sibling * specified by <code>descriptor</code>. * @since 2.1.0 */ public CreateSiblingAction(IWorkbenchPart workbenchPart, ISelection selection, Object descriptor) { super(workbenchPart); this.descriptor = descriptor; configureAction(selection); } /** * This constructor is simply retained for binary compatibility. It just * calls the {@link #CreateSiblingAction(IWorkbenchPart, ISelection, Object) * new form}. */ public CreateSiblingAction(IEditorPart editorPart, ISelection selection, Object descriptor) { this((IWorkbenchPart)editorPart, selection, descriptor); } /** * This constructs an instance of an action that uses the given editing domain to create a sibling * specified by <code>descriptor</code>. * @since 2.4.0 */ public CreateSiblingAction(EditingDomain editingDomain, ISelection selection, Object descriptor) { super(editingDomain); this.descriptor = descriptor; configureAction(selection);
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/edit/ui/action/CreateChildAction.java File path: /emf-2.4.1/src/org/eclipse/emf/edit/ui/action/CreateSiblingAction.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
protected Object descriptor;
1
protected Object descriptor;
2
  /**
2
  /**
3
   * This constructs an instance of an action that uses the workbench part's editing domain to create a child
3
   * This constructs an instance of an action that uses the workbench part's editing domain to create a sibling
4
   * specified by <code>descriptor</code> for the single object in the
4
   * specified by <code>descriptor</code>
5
   * <code>selection</code>.
5
.
6
   * @since 2.1.0
6
   * @since 2.1.0
7
   */
7
   */
8
  public CreateChildAction(IWorkbenchPart workbenchPart, ISelection selection, Object descriptor)
8
  public CreateSiblingAction(IWorkbenchPart workbenchPart, ISelection selection,  Object descriptor)
9
  {
9
  {
10
    super(workbenchPart);
10
    super(workbenchPart);
11
    this.descriptor = descriptor;
11
    this.descriptor = descriptor;
12
    configureAction(selection);
12
    configureAction(selection);
13
  }
13
  }
14
  /**
14
  /**
15
   * This constructor is simply retained for binary compatibility. It just
15
   * This constructor is simply retained for binary compatibility. It just
16
   * calls the {@link #CreateChildAction(IWorkbenchPart, ISelection, Object)
16
   * calls the {@link #CreateSiblingAction(IWorkbenchPart, ISelection, Object)
17
   * new form}.
17
   * new form}.
18
   */
18
   */
19
  public CreateChildAction(IEditorPart editorPart, ISelection selection, Object descriptor)
19
  public CreateSiblingAction(IEditorPart editorPart, ISelection selection,  Object descriptor)
20
  {
20
  {
21
    this((IWorkbenchPart)editorPart, selection, descriptor);
21
    this((IWorkbenchPart)editorPart, selection, descriptor);
22
  }
22
  }
23
  /**
23
  /**
24
   * This constructs an instance of an action that uses the given editing domain to create a child
24
   * This constructs an instance of an action that uses the given editing domain to create a sibling
25
   * specified by <code>descriptor</code> for the single object in the
25
   * specified by <code>descriptor</code>
26
   * <code>selection</code>.
26
.
27
   * @since 2.4.0
27
   * @since 2.4.0
28
   */
28
   */
29
  public CreateChildAction(EditingDomain editingDomain, ISelection selection, Object descriptor)
29
  public CreateSiblingAction(EditingDomain editingDomain, ISelection selection,  Object descriptor)
30
  {
30
  {
31
    super(editingDomain);
31
    super(editingDomain);
32
    this.descriptor = descriptor;
32
    this.descriptor = descriptor;
33
    configureAction(selection);
33
    configureAction(selection);
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