This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 23395 - Script dialog box should have unique help ID
Summary: Script dialog box should have unique help ID
Status: CLOSED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: David Konecny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-13 11:12 UTC by John Jullion-ceccarelli
Modified: 2003-06-30 14:46 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Jullion-ceccarelli 2002-05-13 11:12:06 UTC
Tools | Options | Indirect Ant Compilation | Script: 
dialog box has org.openide.explorer.ExplorerPanel help ID, 
should have a unique ID depending on where it's called 
from.

Related to http://www.netbeans.org/issues/show_bug.cgi?
id=23394
Comment 1 Jesse Glick 2002-05-13 16:16:03 UTC
AntProjectCookieEditor needs to use HelpCtx.setHelpID in
getCustomEditor, I guess.
Comment 2 David Konecny 2002-05-20 14:15:55 UTC
The new HelpID is 
"org.apache.tools.ant.module.loader.AntProjectCookieEditor".

Jesse, I had to extend the ExplorerPanel to fix this problem. Your 
suggestion cannot be used because TopComponent sets "HelpIDMethod" 
property and HelpCtx.findHelp() uses first "HelpIDMethod" and if it is 
not set it uses then helpId set by HelpCtx.setHelpIDString(). Is this 
OK? I think it should be enough to set a property to change helpId for 
a TopComponent.

Fixed in file:
src/org/apache/tools/ant/module/loader/AntProjectCookieEditor.java
new revision: 1.3; previous revision: 1.2
Comment 3 Jesse Glick 2002-05-20 16:36:27 UTC
You are right about the getHelpCtx method.

I guess TopComponent.getHelpCtx and ExplorerPanel.getHelpCtx could
check for a helpID client property before anything else. Feel free to
open an RFE if you like.
Comment 4 John Jullion-ceccarelli 2002-05-22 14:12:23 UTC
verified and hooked up to help - thanks.
Comment 5 Quality Engineering 2003-06-30 14:46:57 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.