Lines 12-17
Link Here
|
12 |
package org.eclipse.ui.part; |
12 |
package org.eclipse.ui.part; |
13 |
|
13 |
|
14 |
import org.eclipse.jface.viewers.ISelection; |
14 |
import org.eclipse.jface.viewers.ISelection; |
|
|
15 |
import org.eclipse.ui.IWorkbenchPart; |
15 |
|
16 |
|
16 |
/** |
17 |
/** |
17 |
* Carries the context for the Show In action. |
18 |
* Carries the context for the Show In action. |
Lines 29-34
Link Here
|
29 |
|
30 |
|
30 |
private ISelection selection; |
31 |
private ISelection selection; |
31 |
|
32 |
|
|
|
33 |
private IWorkbenchPart part; |
34 |
|
32 |
/** |
35 |
/** |
33 |
* Constructs a new <code>ShowInContext</code> with the given input and |
36 |
* Constructs a new <code>ShowInContext</code> with the given input and |
34 |
* selection. |
37 |
* selection. |
Lines 42-47
Link Here
|
42 |
} |
45 |
} |
43 |
|
46 |
|
44 |
/** |
47 |
/** |
|
|
48 |
* @param input the input or <code>null</code> |
49 |
* @param selection the selection or <code>null</code> |
50 |
* @param part the part of <code>null</code> |
51 |
*/ |
52 |
public ShowInContext(Object input, ISelection selection, |
53 |
IWorkbenchPart part) { |
54 |
this(input, selection); |
55 |
setPart(part); |
56 |
} |
57 |
|
58 |
/** |
45 |
* Returns the input, or <code>null</code> to indicate no input |
59 |
* Returns the input, or <code>null</code> to indicate no input |
46 |
* |
60 |
* |
47 |
* @return the input or <code>null</code>. |
61 |
* @return the input or <code>null</code>. |
Lines 77-80
Link Here
|
77 |
this.selection = selection; |
91 |
this.selection = selection; |
78 |
} |
92 |
} |
79 |
|
93 |
|
|
|
94 |
/** |
95 |
* @return Returns the part, or <code>null</code> to indicate no part has been set. |
96 |
*/ |
97 |
public IWorkbenchPart getPart() { |
98 |
return part; |
99 |
} |
100 |
|
101 |
/** |
102 |
* @param part The part to set, or <code>null</code> to indicate no part. |
103 |
*/ |
104 |
public void setPart(IWorkbenchPart part) { |
105 |
this.part = part; |
106 |
} |
107 |
|
80 |
} |
108 |
} |