Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Applying CSS on every Activate event
Applying CSS on every Activate event [message #1385333] Thu, 05 June 2014 17:02 Go to next message
Paweł Doleciński is currently offline Paweł DolecińskiFriend
Messages: 44
Registered: January 2014

I am working with the recent version of Eclipse Luna.
I did a small application based on New Project wizard then I added one additional part with Scrolled Composite inside and 500 text fields. While switching beetwen tabs I see a huge lag.
It does not happen in a pure SWT application.

After small investigation with profiler I found out that StackRenderer calls SWTPartRenderer#styleElement method on each UIEvents.UILifeCycle.ACTIVATE event.
This leads to calling setCSSInfo(), then IStylingEngine#setClassnameAndId() method and this one call IThemeEngine#applyStyles(widget, true) and this is not what I would expect from the method name.

So in case of such amount of widgets, it's getting slow.

Is it a bug or should I implement my own IStyleEnginge?
Any thoughts?

Re: Applying CSS on every Activate event [message #1385595 is a reply to message #1385333] Mon, 09 June 2014 19:10 Go to previous message
Eric Moffatt is currently offline Eric MoffattFriend
Messages: 118
Registered: July 2009
Senior Member

It's not really a defect but we could likely do better on allowing you to prevent deep recursions while processing the CSS. We need to restyle since many attributes are different for the 'active' part (and its stack).
Previous Topic:Rest perspective in E4
Next Topic:How restart RCP application with -clearPersistedState.
Goto Forum:

Current Time: Wed Jun 23 10:16:25 GMT 2021

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

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

Back to the top