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.
Summary: | nodes within Options... Templates need unique help IDs | ||
---|---|---|---|
Product: | platform | Reporter: | Patrick Keegan <pkeegan> |
Component: | -- Other -- | Assignee: | Jiri Rechtacek <jrechtacek> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | ||
Priority: | P3 | ||
Version: | 3.x | ||
Hardware: | PC | ||
OS: | Windows ME/2000 | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | 40146 | ||
Bug Blocks: | |||
Attachments: |
a hot fix
a better fix where helpID attribute in layer is used |
Description
Patrick Keegan
2002-05-15 16:59:27 UTC
Created attachment 6530 [details]
a hot fix
There is a hot fix. Templates are recognized by display name in OptionPanel, tree new ids are created: 1. for all subnodes of Templates category 2. one for Filesystems in Templates folder 3. one for Services in Templates folder Better way might be ask for helpId from layer where the templates are declared. Created attachment 6531 [details]
a better fix where helpID attribute in layer is used
fixed, add three helpIds: - for all subnodes of Templates category = "org.netbeans.core.actions.OptionsAction$TemplatesSubnode" - for Filesystems node in Templates folder"org.netbeans.core.actions.OptionsAction$TemplatesSubnodeServices" - for Services node in Templates folder "org.netbeans.core.actions.OptionsAction$TemplatesSubnodeFilesystems" Oops, it looks like this issue isn't completely fixed. The folders have correct IDs, but the instances within the folders take the ID of the data object, which is wrong. The template nodes should have IDs related to the IDs that their containing folders do. E.g., the templates within any folder that has the ID "org.netbeans.core.actions.OptionsAction$TemplatesSubnode" should have that ID, or something more specific like "org.netbeans.core.actions.OptionsAction$TemplatesSubnodeInstance" fixed, now are the help ids set: Node: Options | Source Creation and Management | Templates <-> help id: org.netbeans.core.actions.OptionsAction$Templates Options | Source Creation and Management | Templates | Other <-> org.netbeans.core.actions.OptionsAction$TemplatesSubnode Options | Source Creation and Management | Templates | Other | children <-> org.netbeans.core.actions.OptionsAction$TemplatesSubnode Options | Source Creation and Management | Templates | Services <-> org.netbeans.core.actions.OptionsAction$TemplatesSubnodeServices Options | Source Creation and Management | Templates | Services | children <-> org.netbeans.core.actions.OptionsAction$TemplatesSubnodeServices Still is valid if any helpId is declared in layer then will be preffred. Hope it helps. verified in build 200402171900. Thanks, Jirka. |