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: | UnsupportedOperationException: XXX #172324: do not know how to attach @org.netbeans.spi.options.OptionsPanelController.ContainerRegistration(id = "AWS", categoryName = "#OptionsCategory_Name_AWS", ico | ||
---|---|---|---|
Product: | apisupport | Reporter: | Exceptions Reporter <exceptions_reporter> |
Component: | Project | Assignee: | Jesse Glick <jglick> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | dbeer, ecerulm, pfabier, Rokko |
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 164149 |
Bug Depends on: | 157760 | ||
Bug Blocks: | |||
Attachments: | stacktrace |
Description
Exceptions Reporter
2010-01-15 06:32:50 UTC
Created attachment 93316 [details]
stacktrace
For now you have to create a package-info.java and manually add that annotation. Awaiting the API to fix this. (In reply to comment #2) > For now you have to create a package-info.java and manually add that > annotation. Awaiting the API to fix this. Do you mean like @org.netbeans.spi.options.OptionsPanelController.ContainerRegistration(..); in package-info.java under the package where I wish to add the options panel (In reply to comment #3) > Do you mean like > @org.netbeans.spi.options.OptionsPanelController.ContainerRegistration(..); in > package-info.java > > under the package where I wish to add the options panel Exactly. I hope to get this fixed soon one way or the other. I did not expect a lot of people to be using container-only registrations (there are only a handful in the whole NB source base), otherwise I would have gotten to this sooner. If I add the following to package-info.java @org.netbeans.spi.options.OptionsPanelController.ContainerRegistration(id = "AWS", categoryName = "#OptionsCategory_Name_AWS", iconBase ="awsadministrator/awscredentials/preferences-desktop1.png", keywords ="#OptionsCategory_Keywords_AWS", keywordsCategory = "AWS"); I get the following error. "class, interface or enum expected" I only have a packaged declared there. I am trying to add and a new section to the options panel which will be like the miscalleanous panel where I can add more panels if needed. is this the best way to do it. (In reply to comment #5) > If I add the following to package-info.java > @ContainerRegistration(...); > > I get the following error. "class, interface or enum expected" > > I only have a packaged declared there. I'm not sure what the semicolon is there for. Your file should look like @CR(...) package whatever.package; import ....; > I am trying to add a new section to the options panel which will be like > the miscellaneous panel where I can add more panels if needed. > > is this the best way to do it. Yes. (In reply to comment #6) > (In reply to comment #5) > > If I add the following to package-info.java > > @ContainerRegistration(...); > > > > I get the following error. "class, interface or enum expected" > > > > I only have a packaged declared there. > > I'm not sure what the semicolon is there for. Your file should look like > > @CR(...) > package whatever.package; > import ....; Thanks that was my error. > > > I am trying to add a new section to the options panel which will be like > > the miscellaneous panel where I can add more panels if needed. > > > > is this the best way to do it. > > Yes. Great. This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=164149 Writing out package-info.java manually for now: core-main #73f4d6b234a5 Integrated into 'main-golden', will be available in build *201003110200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/73f4d6b234a5 User: Jesse Glick <jglick@netbeans.org> Log: #179543: quick fix to create package-info.java. Integrated into 'main-golden', will be available in build *201009290000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/28bf1d99d434 User: Jesse Glick <jglick@netbeans.org> Log: #179543 revisited: use proper API from #157760 to create/modify package-info.java. |