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);
|