Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Problem on Css styling the composite
Problem on Css styling the composite [message #759805] Wed, 30 November 2011 02:25
Jin  is currently offline Jin
Messages: 1
Registered: November 2011
Junior Member
Hi
I'm new to E4 and met a problem on it's feature.
I've heard of that E4 could use the components class name as the selector.
So i've written a child class named DateFilterComposite which is extended to Composite, and tried to add css to style this components. However it not woks.

public class DateFilterComposite extends Composite
{
    ...
    public DateFilterComposite(Composite parent, int style, boolean showSearchRun)
    {
        super(parent, style);
        ...
        Label test1 = new Label(this, SWT.NONE);
        ...
        Combo = new Combo(this, SWT.READ_ONLY);
        ...
    ...
}


DateFilterComposite {
    background-color: red;
}


Also tried
.DateFilterComposite {   background-color: red; }
, but not work either.

Could anyone help me out if style the created child composite via css is possible?
If possible, what the correct syntax would be.
If not, any other ways could set a style to the component - DateFilterComposite.

[Updated on: Wed, 30 November 2011 04:46]

Report message to a moderator

Previous Topic:use of org.eclipse.core.resources in e4
Next Topic:Running e4 as IDE causes curious errors
Goto Forum:
  


Current Time: Thu Jul 24 04:41:54 EDT 2014

Powered by FUDForum. Page generated in 0.01831 seconds