Lines 34-40
Link Here
|
34 |
* |
34 |
* |
35 |
* @author Jan Jacura |
35 |
* @author Jan Jacura |
36 |
*/ |
36 |
*/ |
37 |
public class AddBreakpointPanel extends javax.swing.JPanel { |
37 |
// <RAVE> |
|
|
38 |
// Make the class implement HelpCtx.Provider to be able to get Help for it |
39 |
// public class AddBreakpointPanel extends javax.swing.JPanel { |
40 |
// ==== |
41 |
public class AddBreakpointPanel extends javax.swing.JPanel implements HelpCtx.Provider { |
42 |
// </RAVE> |
38 |
|
43 |
|
39 |
public static final String PROP_TYPE = "type"; |
44 |
public static final String PROP_TYPE = "type"; |
40 |
|
45 |
|
Lines 225-231
Link Here
|
225 |
* Returns <CODE>HelpCtx</CODE> of the selected breakpoint type's customizer. |
230 |
* Returns <CODE>HelpCtx</CODE> of the selected breakpoint type's customizer. |
226 |
* It is used in {@link AddBreakpointAction.AddBreakpointDialogManager}. |
231 |
* It is used in {@link AddBreakpointAction.AddBreakpointDialogManager}. |
227 |
*/ |
232 |
*/ |
228 |
HelpCtx getHelpCtx() { |
233 |
// <RAVE> |
|
|
234 |
// Make getHelpCtx() method public to correctly implement HelpCtx.Provider |
235 |
// HelpCtx getHelpCtx() { |
236 |
// ==== |
237 |
public HelpCtx getHelpCtx() { |
238 |
// </RAVE> |
229 |
return helpCtx; |
239 |
return helpCtx; |
230 |
} |
240 |
} |
231 |
|
241 |
|
Lines 240-246
Link Here
|
240 |
//Set HelpCtx. This method must be called _before_ the customizer |
250 |
//Set HelpCtx. This method must be called _before_ the customizer |
241 |
//is added to some container, otherwise HelpCtx.findHelp(...) would |
251 |
//is added to some container, otherwise HelpCtx.findHelp(...) would |
242 |
//query also the customizer's parents. |
252 |
//query also the customizer's parents. |
243 |
helpCtx = HelpCtx.findHelp (customizer); |
253 |
// <RAVE> |
|
|
254 |
// The help IDs for the customizer panels have to be different from the |
255 |
// values returned by getHelpCtx() because they provide different help |
256 |
// in the 'Add Breakpoint' dialog and when invoked in the 'Breakpoints' view |
257 |
// helpCtx = HelpCtx.findHelp (customizer); |
258 |
// ==== |
259 |
String hid = (String) customizer.getClientProperty("HelpID_AddBreakpointPanel"); // NOI18N |
260 |
if (hid != null) { |
261 |
helpCtx = new HelpCtx(hid); |
262 |
} else { |
263 |
helpCtx = HelpCtx.findHelp (customizer); |
264 |
} |
265 |
// </RAVE> |
244 |
|
266 |
|
245 |
pEvent.add (customizer, "Center"); // NOI18N |
267 |
pEvent.add (customizer, "Center"); // NOI18N |
246 |
pEvent.getAccessibleContext ().setAccessibleDescription ( |
268 |
pEvent.getAccessibleContext ().setAccessibleDescription ( |