XWT Section css [message #633760] |
Tue, 19 October 2010 06:01  |
Eclipse User |
|
|
|
Hello,
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] by Moderator
|
|
|
|
|
Re: XWT Section css [message #634254 is a reply to message #633974] |
Wed, 20 October 2010 19:59  |
Eclipse User |
|
|
|
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
e4/org.eclipse.e4.xwt/examples/org.eclipse.e4.demo.contacts
To support eclipse forms, you need to replace the call XWT.load() in the
class XWTAbstractPart by XWTForms.load().
Best regards
Yves YANG
"Valoueee" <val.dupin@free.fr> wrote in message
news:i9m2jt$dfb$1@news.eclipse.org...
> 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.setContext(context);
> part.setContributionURI("platform:/plugin/ui.editor.myeditor/ui.editor.MyEditorView
> ");
> part.setCloseable(true);
> 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
> editor.
|
|
|
Powered by
FUDForum. Page generated in 0.04698 seconds