Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » CSS not load XWT Dialog
CSS not load XWT Dialog [message #643868] Wed, 08 December 2010 14:30 Go to next message
Missing name Missing name is currently offline Missing name Missing nameFriend
Messages: 57
Registered: September 2009
Member
Hello,
I try to use a css file in a bundle, in a xwt file via css:id on a label.

My CSS file contains:

#LabelUnBold{
   font:10px;
   color: #280E8F;
}


I use it in my xwt file like this:

<Label name="myLabel" text="toto" css:id="LabelUnBold"/>


The CSS file is declared in the main application like an extension of org.eclipse.e4.ui.css.swt.theme.

My problem: The Css isn't loaded in my XWT dialog (in a bundle).

May I force the css load ?
It seems to be a problem of classloader because the css is loaded and used in my dialog if I first load a XWTSaveablePart.

Have you got an idea ?

Thanks in advance.


[Updated on: Wed, 08 December 2010 14:30]

Report message to a moderator

Re: CSS not load XWT Dialog [message #645204 is a reply to message #643868] Wed, 15 December 2010 21:51 Go to previous message
Yves YANG is currently offline Yves YANGFriend
Messages: 688
Registered: July 2009
Senior Member
Yes, you should take XWTAbstractPart as an example to load the XWT
resources.

best regards
Yves YANG
"Valoueee" <val.dupin@free.fr> wrote in message
news:ido4he$bqg$1@news.eclipse.org...
> Hello,
> I try to use a css file in a bundle, in a xwt file via css:id on a label.
>
> My CSS file contains:
>
> #LabelUnBold{
> font:10px;
> color: #280E8F
> }
>
> I use it in my xwt file like this:
>
> <Label name="myLabel" text="toto" css:id="LabelUnBold"/>
>
> The CSS file is declared in the main application like an extension of
> org.eclipse.e4.ui.css.swt.theme.
>
> My problem: The Css isn't loaded in my XWT dialog (in a bundle).
>
> May I force the css load ?
> It seems to be a problem of classloader because the css is loaded and used
> in my dialog if I first load a XWTSaveablePart.
>
> Have you got an idea ?
>
> Thanks in advance.
>
>
>
Previous Topic:Retrieving the DataBindindContext in the XWT Code-behind class
Next Topic:[TM] Running demo?
Goto Forum:
  


Current Time: Fri Apr 19 18:22:02 GMT 2024

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

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

Back to the top