Community
Participate
Working Groups
The SWT CSS Mapping page lists several dynamic pseudo-classes for Controls, like :hover or :checked, but notes that these are not actually dynamic. Looking into the code, I found WidgetElement#dynamicEnabled is always set to false, with no apparent way to enable it. If there's no underlying reason as to why this is disabled by default, this should default to true, and perhaps controlled via a system property.
Commit 60970648088f75cec537963fe30fa8cf969037ab enabled dynamic pseudo-class support if the org.eclipse.e4.ui.css.dynamic=true. Defaults to false.
I've been doing some testing with enabling dynamic pseudo-classes in the IDE — it's unfortunately a bit of a memory and CPU hog. Although not noticeable on smaller apps, e.g., the contacts demo, running the IDE quickly results in OOMs and sluggish performance. With the current approach, every Control will have at least a focus listener! Committed some necessary tweaks in commit e591734ff0e92d3532aec6e3faf13de0f756e5d3 to avoid SWT errors when elements have been disposed.
When dynamic is enabled, ComboBoxes are unusable because they immediately collapse when the mouse leaves the expand button (at least with 4.3).
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug. If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.