Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » XWT Section css
XWT Section css [message #633760] Tue, 19 October 2010 10:01 Go to next message
Missing name Missing name is currently offline Missing name Missing nameFriend
Messages: 57
Registered: September 2009
Member
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 10:02]

Report message to a moderator

Re: XWT Section css [message #633939 is a reply to message #633760] Tue, 19 October 2010 23:58 Go to previous messageGo to next message
Yves YANG is currently offline Yves YANGFriend
Messages: 688
Registered: July 2009
Senior Member
I think it should work if you use XWTForm to load all eclipse form support.

I have not tested the eclipse form with css. In general, I cannot see any
obstacle.

Best regards
Yves YANG
"Valoueee" <val.dupin@free.fr> wrote in message
news:i9jq4e$dpv$1@news.eclipse.org...
> 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 like ).
>
> Have you got an example of css for Section ?
> What css does eclipse use for its widgets ?
>
>
Re: XWT Section css [message #633974 is a reply to message #633939] Wed, 20 October 2010 06:39 Go to previous messageGo to next message
Missing name Missing name is currently offline Missing name Missing nameFriend
Messages: 57
Registered: September 2009
Member
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.
Re: XWT Section css [message #634254 is a reply to message #633974] Wed, 20 October 2010 23:59 Go to previous message
Yves YANG is currently offline Yves YANGFriend
Messages: 688
Registered: July 2009
Senior Member
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.
Previous Topic:WorkbenchLabelProvider
Next Topic:I18N / L10N of the workbench model
Goto Forum:
  


Current Time: Fri Apr 19 09:55:57 GMT 2024

Powered by FUDForum. Page generated in 0.02575 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top