Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » CSS Styling of individual PartStacks(CSS Styling)
CSS Styling of individual PartStacks [message #1022169] Thu, 21 March 2013 12:02 Go to next message
Roman Flückiger is currently offline Roman FlückigerFriend
Messages: 6
Registered: March 2013
Junior Member
Is there a way to set the css styling of an individual PartStack (e.g. by Id)?

I can set the styling of all PartStacks, but not a specific instance, even though it has a unique elementId in the model fragment.

Even if I set the css class name programatically with:

stylingEngine.setClassname((CTabFolder) partStack.getWidget()), "myPartStackStyle");


After losing the focus on the part stack the style is lost. It seams like eclipse is clearing or re-setting the classname to the default one.

Re: CSS Styling of individual PartStacks [message #1022705 is a reply to message #1022169] Fri, 22 March 2013 11:40 Go to previous messageGo to next message
Eclipse UserFriend
The E4 SWT model renderers sets the class and id for each rendered item, and will do so for many different changes: see SWTPartRenderer#setCSSInfo(). The CSS id is set to the model element's elementId. The CSS classes is derived from the model element's type as well as any tags on the model element.

So instead of trying to explicitly set the class, just add a tag to the part stack.

Brian.
Re: CSS Styling of individual PartStacks [message #1022835 is a reply to message #1022705] Fri, 22 March 2013 16:01 Go to previous message
Roman Flückiger is currently offline Roman FlückigerFriend
Messages: 6
Registered: March 2013
Junior Member
It works. Smile

Thanks very much!
Previous Topic:Eclipse 4 and native code
Next Topic:Eclipse juno stability problems
Goto Forum:
  


Current Time: Wed Apr 24 21:25:06 GMT 2024

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

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

Back to the top