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: | Global Preference Collection Override preference doesn't work | ||
---|---|---|---|
Product: | uml | Reporter: | bugbridge <bugbridge> |
Component: | General | Assignee: | Craig Conover <conover> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | CC: | hlu, sj-nb |
Priority: | P1 | ||
Version: | 5.x | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | 84855, 88124 | ||
Bug Blocks: | 78473, 78541 |
Description
bugbridge
2006-06-20 12:43:19 UTC
*** Issue 78684 has been marked as a duplicate of this issue. *** This issue will be address after roundtrip redesign efforts are completed. This issue should be addressed after Roundtrip Redesign is finished *** Issue 86840 has been marked as a duplicate of this issue. *** I am very close to a simple solution to generating Collections for attributes with multiplicity, but it is not very well tested. Only verified to work for simple multiplicity scenarios. Multi-dimension not supported. So I am not integrating at this time. Couple more days of work should and should be able to have this implemented. Integrated some progress, but the actionable code is disabled I have the global Collection Override and Use Generics preferences working for Generate Code. In other words, attributes, params and return types with multiplicity are having code generated using the specified Collection Override data type and with generics if the Use Generics pref is true. If the Collection Override pref is empty, then simple arrays are generated and Use Generics is obviously ignored. Reverse Engineer action is not parsing generics properly, though, but that is another issue separate from this one. The mods for this issue may not be checked in, however. This is because the complete and proper fix for this is an enhancement (issue 78473) that adds the Collection Override and Use Generics property at the attribute/parameter/return type level, rather than a global preference for all of the elements in the model project and every other model project. Completing the implementation for that issue is (should be) just around the corner. Added a dependency on issue 88124 (imports not being generated). The reason this is dependent is because there are no imports generated for all the collections that are used making this feature useless. Code generation now checks for the Collection Override Default global preference. If that pref contains a fully qualified Collection type (one that can be validated as a Collection implementor or subclass of such type) will be used in place of arrays for any attribute, parameter or return type that has multiplicity. Multiple levels of multiplicity are considered as well for multi-dimensional types. The Use Generics Default global preference will be used in conjunction with the Collection Override Default pref. When set to yes, generic types are generated for the Collection data types based on the actual type of the element. Most of the code involved in this has been overhauled, so rigorous testing is recommended with anything related to the code generation wrt the types of the elements. verified from "options" point of view,preference exists and works in some cases, another cases should be filed against code generation verified with 061112-2 |