Project: Eclipse_Platform_UI
Bug 365018 [CSS] Add missing support to CSS engine
Reported: 2011-11-28 23:40:25 | Status: verified fixed

The CSS Spy requires the CSS Engine to provide the ability to: * parse selectors (to complement the existing support for parsing rules, properties, values, etc.) * return the list of applicable selectors for an element (rather than walk the public propertyHandlerMap property on AbstractCSSEngine) The CSS WidgetElement implementation is missing: * the ability to use "class" as an attribute, required to be able to query against the CSS class string (e.g., "CTabFolder[class='MPartStack']"

Files changed in fix:
bundles/org.eclipse.e4.ui.css.core/src/org/eclipse/e4/ui/css/core/engine/CSSEngine.java bundles/org.eclipse.e4.ui.css.core/src/org/eclipse/e4/ui/css/core/impl/dom/parsers/AbstractCSSParser.java bundles/org.eclipse.e4.ui.css.core/src/org/eclipse/e4/ui/css/core/impl/engine/AbstractCSSEngine.java bundles/org.eclipse.e4.ui.css.swt/src/org/eclipse/e4/ui/css/swt/dom/WidgetElement.java tests/org.eclipse.e4.ui.tests.css.core/src/org/eclipse/e4/ui/tests/css/core/CSSEngineTest.java tests/org.eclipse.e4.ui.tests.css.core/src/org/eclipse/e4/ui/tests/css/core/CssCoreTestSuite.java tests/org.eclipse.e4.ui.tests.css.core/src/org/eclipse/e4/ui/tests/css/core/EngineProviderTest.java tests/org.eclipse.e4.ui.tests.css.core/src/org/eclipse/e4/ui/tests/css/core/parser/SelectorTest.java