Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ptp-dev] Questions about widgets in JAXB plugin

Dave,

The two features you requested have been added and CVS HEAD updated.

Demonstrative examples:  attached is the "tabbed-example" xml from org.eclipse.ptp.rm.jaxb.tests/data and the screenshot.  If you upload this into your workspace you can also verify (by clicking the "View Configuration") that the values for the translated boolean and the radio button group are correct.

A couple of notes.

1.  The <button-group> can take either radio buttons or checkboxes.  The behavior of the group is always to permit no more than one of these to be selected at a time.  The difference between them is that you can uncheck all of them with a checkbox (radio buttons are "sticky").  Thus there should probably always be a default value when you use radios.

2.  I have discovered a couple of interesting facts in this process:
    a.  SWT does not seem to allow you to divide a Button over more than one Grid column
    b.  Likewise, I was unable to find a way of dividing a subcomponent with a non-grid layout (like row layout) over more than one column of a GridData parent.
    In both of these cases I have resorted to occupying the empty column with a blank Label (see configuration).


Al


----- Albert L. Rossi <arossi@xxxxxxxxxxxxx> wrote:
> 
> ----- Dave Wootton <dwootton@xxxxxxxxxx> wrote:
> > Al
> > 1) Yes, I agree the boolean should map to an arbitrary string pair. 
> > Specifying it as an element for the widget type is fine.
> > 2) For radio buttons, are you saying in point 5 that the type of the value 
> > saved in saveValueTo is determined by the type of  saveValueType? If so, 
> > then I think what you describe is ok.
> > Dave
> 
> Dave, 

Attachment: tabbed-example.xml
Description: XML document

Attachment: screenshot.png
Description: PNG image


Back to the top