Hi Adrian,
> 1) Is there any interest by the PGroup developers in expanding the code
> to allow users to add a Control, e.g. a composite, to the collapsed
> state?
> I imagine this could be handled by having a
> setControl(Control c)
> method much like the setText(..) and setImage(..). This might be
> a little complicated in that the Control which is added might
> need to take away the space of the text label and image icon.
>
> Alternatively, I may want to chop up the PGroup icon to make my own
> (although this would require learning yet more details of eclipse for
> which I have little time). If I take this route...
Yes I've thought about a similar enhancement when using the PGroup in one
of my custom Eclipse skins. I was originally invisioning something that
would put a control in the right side. And I was gonna name the method
setTopRight to keep it similar to CTabFolder. The hardest part would
likely be trying to match the background of the header and the background
of the control. The two primary PGroup strategies have gradient
backgrounds. It would require some image manipulation and usage of
setBackgroundImage.
> 2) Is PGroup constructed merely on top of existing SWT code and
> therefore without any native code at all?
> I downloaded the source and don't see any native code so I
> presume this must be true.
Yes. PGroup (as are all Nebula widgets currently) is written in pure
Java/SWT. It is the same as the SWT custom widgets.
> 3) what does setLinePosition(..) do?
This property is only used with the SimpleGroupStrategy. That strategy is
the only one which shows a line. The other strategies just ignore the
property.
If you wanted to take a stab at implementing this feature please enter a
bug and submit a patch. I will work with you to get it working and
committed.
Regards,
-Chris
_______________________________________________
nebula-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/nebula-dev