I am running Window Designer 6.0.0 with Eclipse 3.2.1.
My aim is to create a custom widget that is a panel with some heading text. I have done this by creating a Composite, adding a label, and adding a vertical panel. I have created a fairly normal looking constructor method for my composite, and an add method, a setHeaderText method, etc. All the things you'd expect.
Right, now I have added my widget to the main project, and in the Design view I see my widget in a nice WYSIWYG way. Now I click on Image to try to add an image to my new "panel"-type control, but it refuses because Designer obviously isn't picking up that my control is a panel that can have children. Incidently, the variable headerText shows up in the Properties list, which is very cool but I don't know what I did to make that work, it just worked. Can anyone tell me what I did right here?
Now back to the panel. So I found this tutorial on your site http://download.instantiations.com/DesignerDoc/integration/latest/docs/html/gwt/gwt_composites.html and it looks like that's just what I want to do, but notice in about step 2 or 3 the tutorial clicks on a widget and clicks "Expose Widget...", well my menu doens't give that option. Any idea why? And if not, can someone please tell me what Designer would do if I clicked that? The reason I ask is: can I go ahead an manually implement a certain method, or make public a certain class variable that will suddenly make my custom widget expose its panel to the WYSIWYG view?
Great product from Instantiations!
Thanks