|XWT Section css [message #633760]
||Tue, 19 October 2010 06:01
| Missing name Missing name
Registered: September 2009
I realised a XWT file in order to add view in an inputPart.
I used Section and Section Client (org.eclipse.ui.forms.widgets.Section) .
But Section are not rendered like in eclipse (blue gradiant).
Have you got an example of css for Section ?
What css does eclipse use for its widgets ?
[Updated on: Tue, 19 October 2010 06:02]
Report message to a moderator
|Re: XWT Section css [message #634254 is a reply to message #633974]
||Wed, 20 October 2010 19:59
| Yves YANG
Registered: July 2009
You can find a class XWTInputPart in the project |
org.eclipse.e4.xwt.ui.workbench, which helps the integration with e4.
Precisely, the XWT resource loading is in the class XWTAbstractPart. We have
also a demo of Contact in XWT in CVS
To support eclipse forms, you need to replace the call XWT.load() in the
class XWTAbstractPart by XWTForms.load().
"Valoueee" <email@example.com> wrote in message
> Thanks Yves for your reply.
> But, I open the XWT like this:
> MInputPart part = MBasicFactory.INSTANCE.createInputPart();
> IEclipseContext context = context_.createChild();
> context.set(MyData.class, (MyData)data_);
> context.set(MDirtyable.class, part);
> part.setLabel("C orbite");
> How can I use XWTForms to load XWT and put context for data-binding ?
> could you explain me ?
> I tried to use
> XWT.registerMetaclass(org.eclipse.ui.forms.widgets.Section.c lass) but
> Sections don't look like to eclipse default section like in a MANIFEST
Powered by FUDForum
. Page generated in 0.01815 seconds