Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 362532 - [CSS] Re-enable dynamic CSS pseudo-classes
Summary: [CSS] Re-enable dynamic CSS pseudo-classes
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.2   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-31 17:15 EDT by Brian de Alwis CLA
Modified: 2020-08-07 18:55 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brian de Alwis CLA 2011-10-31 17:15:51 EDT
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.
Comment 1 Brian de Alwis CLA 2012-03-12 22:41:47 EDT
Commit 60970648088f75cec537963fe30fa8cf969037ab enabled dynamic pseudo-class support if the org.eclipse.e4.ui.css.dynamic=true.  Defaults to false.
Comment 2 Brian de Alwis CLA 2012-03-24 07:18:57 EDT
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.
Comment 3 Matthias F CLA 2013-07-10 05:47:49 EDT
When dynamic is enabled, ComboBoxes are unusable because they immediately collapse when the mouse leaves the expand button (at least with 4.3).
Comment 4 Eclipse Genie CLA 2020-08-07 18:55:16 EDT
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.