Skip to main content



      Home
Home » Eclipse Projects » Eclipse 4 » CSS Styling of individual PartStacks(CSS Styling)
CSS Styling of individual PartStacks [message #1022169] Thu, 21 March 2013 08:02 Go to next message
Eclipse UserFriend
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 07: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 12:01 Go to previous message
Eclipse UserFriend
It works. Smile

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


Current Time: Fri Jul 25 00:28:25 EDT 2025

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

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

Back to the top