Lines 52-57
Link Here
|
52 |
import org.openide.util.TaskListener; |
52 |
import org.openide.util.TaskListener; |
53 |
//import org.openide.util.actions.SystemAction; |
53 |
//import org.openide.util.actions.SystemAction; |
54 |
import org.openide.util.RequestProcessor; |
54 |
import org.openide.util.RequestProcessor; |
|
|
55 |
import org.openide.util.Lookup; |
55 |
import org.openide.util.NbBundle; |
56 |
import org.openide.util.NbBundle; |
56 |
import org.openide.util.UserQuestionException; |
57 |
import org.openide.util.UserQuestionException; |
57 |
import org.openide.text.EnhancedChangeEvent; |
58 |
import org.openide.text.EnhancedChangeEvent; |
Lines 159-173
Link Here
|
159 |
/** Support for property change listeners*/ |
160 |
/** Support for property change listeners*/ |
160 |
private PropertyChangeSupport propertyChangeSupport; |
161 |
private PropertyChangeSupport propertyChangeSupport; |
161 |
|
162 |
|
|
|
163 |
/** context of this editor support */ |
164 |
private Lookup lookup; |
165 |
|
162 |
/** Creates new CloneableEditorSupport attached to given environment. |
166 |
/** Creates new CloneableEditorSupport attached to given environment. |
163 |
* |
167 |
* |
164 |
* @param env environment that is source of all actions around the |
168 |
* @param env environment that is source of all actions around the |
165 |
* data object |
169 |
* data object |
166 |
*/ |
170 |
*/ |
167 |
public CloneableEditorSupport(Env env) { |
171 |
public CloneableEditorSupport(Env env) { |
168 |
super (env); |
172 |
this (env, org.openide.util.Lookup.EMPTY); |
169 |
} |
173 |
} |
170 |
|
174 |
|
|
|
175 |
/** Creates new CloneableEditorSupport attached to given environment. |
176 |
* |
177 |
* @param env environment that is source of all actions around the |
178 |
* data object |
179 |
* @param l the context that will be passed to each Line produced |
180 |
* by this support's Line.Set. The line will return it from Line.getLookup |
181 |
* call |
182 |
*/ |
183 |
public CloneableEditorSupport(Env env, Lookup l) { |
184 |
super (env); |
185 |
this.lookup = l; |
186 |
} |
171 |
// |
187 |
// |
172 |
// abstract messages section |
188 |
// abstract messages section |
173 |
// |
189 |
// |
Lines 1100-1107
Link Here
|
1100 |
/** Getter for context associated with this |
1116 |
/** Getter for context associated with this |
1101 |
* data object. |
1117 |
* data object. |
1102 |
*/ |
1118 |
*/ |
1103 |
org.openide.util.Lookup getDataObjectHack () { |
1119 |
final org.openide.util.Lookup getLookup () { |
1104 |
return org.openide.util.Lookup.EMPTY; |
1120 |
return lookup; |
1105 |
} |
1121 |
} |
1106 |
|
1122 |
|
1107 |
|
1123 |
|