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 219434 - Attribute index in @Keywords is wrong and cannot reliably work
Summary: Attribute index in @Keywords is wrong and cannot reliably work
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Options&Settings (show other bugs)
Version: 7.3
Hardware: All All
: P2 normal (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-03 09:54 UTC by Tomas Mysik
Modified: 2012-10-09 02:04 UTC (History)
0 users

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 Tomas Mysik 2012-10-03 09:54:57 UTC
Attribute index with the index of the subpanel can be easily broken if one:
(a) installs any plugin which adds panel among other panels, or
(b) uninstalls plugin which has an options panel.

I guess that some other unique identifier should be used, perhaps:
(a) any custom identifier; or
(b) position of the panel itself in the SFS.
Both options should be ideally checked for duplicites of course, if possible.

This issue should be definitely fixed for NB 7.3 before this API is publicly available.

Thanks.
Comment 1 Tomas Mysik 2012-10-03 10:17:10 UTC
Another use case - if one changes position attribute of the panel registration he _needs_ to change index attribute as well.
Comment 2 Theofanis Oikonomou 2012-10-03 15:54:54 UTC
1) removed the index attribute as it was indeed error prone.
2) made the tabTitle attribute mandatory in all category panels with tabs (Editor, Fonts & Colors, Java, PHP, C/C++ and Miscellaneous)
3) updated all the affected panels

tried activating/deactivating various php frameworks and it seems that now it is stable.

Fixed: http://hg.netbeans.org/core-main/rev/521b24e00aa3
Comment 3 Quality Engineering 2012-10-07 02:01:56 UTC
Integrated into 'main-golden', will be available in build *201210070002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/521b24e00aa3
User: Theofanis Oikonomou <theofanis@netbeans.org>
Log: Issue #219434 - Attribute index in @Keywords is wrong and cannot reliably work
Comment 4 Quality Engineering 2012-10-09 02:04:53 UTC
Integrated into 'main-golden', will be available in build *201210090002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/3447cb909e76
User: Tomas Hurka <thurka@netbeans.org>
Log: bugfix #219362, keywords for profiler options (fixed again after fix of issue #219434)