| Summary: | Support for mappings/data binding with java enumerations | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Thomas <coding335> | ||||
| Component: | WindowBuilder | Assignee: | Andrey Sablin <sablin.andrey> | ||||
| Status: | CLOSED WORKSFORME | QA Contact: | |||||
| Severity: | enhancement | ||||||
| Priority: | P3 | CC: | clayberg, coding335, zoran.pjevic | ||||
| Version: | unspecified | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Thomas
Created attachment 209736 [details]
Simplistic test case to reproduce the problem. And screenshot showing the error.
Just a JFrame with a JCombox, where the items are set from an enum type:
JComboBox comboBox = new JComboBox(TT.values());
This works fine with JDK 1.6, but with JDK 1.7 WB fails opening the Design view, with error:
"Invalid source. No construcor binding.
new JComboBox(TT.values()) is not valid source for component creation, it references no existring constructor."
Problem on Windows XP, Eclipse Indigo SR1, latest WB (1.2.0.r37x20110927xxxx).
As said, the WB Design has no problem with the same line when working with JDK 1.6, but with JDK 1.7 WB fails.
Please see the attached screenshot and the simplistic java class to reproduce the problem.
One more observation: The Design view shows the error, but not the "Create Report" button, which is the reason why I manually attached the screenshot and the test class for reproducing the problem here. Support for this was added back in November 2011. Please make sure that you are using the latest WB build (1.2.0.r37x20111229 or newer). Now I'm puzzled: I use following update site: WindowsBuilderPro - http://dl.google.com/eclipse/inst/d2wbpro/latest/3.7 When searching for new updates Eclipse tells me there are no updates available. Following is the exact list of the WindowsBuilder components currently installed: WindowBuilder Core: 1.2.0.r37x201109270310 WindowBuilder Core UI: 1.2.0.r37x201109270333 WindowBuilder CSS Support: 1.2.0.r37x201109270317 WindowBuilder GroupLayout Support: 1.2.0.r37x201109270343 WindowBuilder XML Core: 1.2.0.r37x201109270326 So how do get the latest version of WB if the UpdateSite doesn't provide it? You aren't using the right update site to get the latest build. Use the integration update sites... http://eclipse.org/windowbuilder/download.php Thanks for clarification. With the updated version the problem vanished. The only thing that still is wrong is that the page "Installing WindowBuilder Pro" mentions only the wrong update site. See: http://code.google.com/javadevtools/download-wbpro.html -> Eclipse 3.7 (Indigo) http://dl.google.com/eclipse/inst/d2wbpro/latest/3.7 But my problem is solved. There is nothing "wrong" about those update sites. In fact, those are the correct ones to list for that page as they show the update sites for the latest release. For the latest build, you want the updates sites shown here... http://code.google.com/javadevtools/download-wbpro-beta.html |