Skip to main content

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 07:25
Jin  is currently offline Jin Friend
Messages: 1
Registered: November 2011
Junior Member
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 09: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: Mon Jun 18 22:48:17 GMT 2018

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

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

Back to the top