From cbed04ccba35b8a91a45d20d1740f9c648cf705f Mon Sep 17 00:00:00 2001 From: Lars Vogel Date: Tue, 28 Jul 2026 12:52:24 +0200 Subject: [PATCH 1/2] Remove the deprecated getViewCSS() compatibility bridge The bridge was added when computeStyle(Element, String) replaced the W3C cascade accessor, so that the PDE CSS spy kept working while it still called getViewCSS().getComputedStyle(...). The spy no longer calls it, so its last known caller is gone. The org.eclipse.e4.ui.css.core.engine package is not exported to any PDE bundle, so nothing in the SDK referenced the method at compile time; the spy reached it reflectively. --- .../e4/ui/css/core/engine/CSSEngine.java | 21 ------------------- 1 file changed, 21 deletions(-) diff --git a/bundles/org.eclipse.e4.ui.css.core/src/org/eclipse/e4/ui/css/core/engine/CSSEngine.java b/bundles/org.eclipse.e4.ui.css.core/src/org/eclipse/e4/ui/css/core/engine/CSSEngine.java index 3a8fab1f753..b34fa1a7a7f 100644 --- a/bundles/org.eclipse.e4.ui.css.core/src/org/eclipse/e4/ui/css/core/engine/CSSEngine.java +++ b/bundles/org.eclipse.e4.ui.css.core/src/org/eclipse/e4/ui/css/core/engine/CSSEngine.java @@ -27,8 +27,6 @@ import org.w3c.dom.Element; import org.w3c.dom.css.CSSStyleDeclaration; import org.w3c.dom.css.CSSValue; -import org.w3c.dom.css.ViewCSS; -import org.w3c.dom.views.DocumentView; /** * CSS Engine interface used to parse style sheet and apply styles to something @@ -191,25 +189,6 @@ public interface CSSEngine { */ CSSStyleDeclaration computeStyle(Element element, String pseudoElt); - /** - * Binary-compatibility bridge for callers compiled against the removed - * W3C cascade accessor; use {@link #computeStyle(Element, String)}. - */ - @Deprecated(forRemoval = true, since = "2026-06") - default ViewCSS getViewCSS() { - return new ViewCSS() { - @Override - public DocumentView getDocument() { - return null; - } - - @Override - public CSSStyleDeclaration getComputedStyle(Element elt, String pseudoElt) { - return computeStyle(elt, pseudoElt); - } - }; - } - /*--------------- w3c Element -----------------*/ /** From 6b8d083daf70e28411aaacc025edac6d67a82792 Mon Sep 17 00:00:00 2001 From: Eclipse Platform Bot Date: Sun, 30 Aug 2026 10:34:45 +0000 Subject: [PATCH 2/2] Version bump(s) for 4.42 stream --- bundles/org.eclipse.e4.ui.css.core/META-INF/MANIFEST.MF | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/org.eclipse.e4.ui.css.core/META-INF/MANIFEST.MF b/bundles/org.eclipse.e4.ui.css.core/META-INF/MANIFEST.MF index 0c6904305ba..de155acfca2 100644 --- a/bundles/org.eclipse.e4.ui.css.core/META-INF/MANIFEST.MF +++ b/bundles/org.eclipse.e4.ui.css.core/META-INF/MANIFEST.MF @@ -4,7 +4,7 @@ Bundle-SymbolicName: org.eclipse.e4.ui.css.core;singleton:=true Bundle-Name: %pluginName Bundle-Vendor: %providerName Bundle-Localization: plugin -Bundle-Version: 0.14.800.qualifier +Bundle-Version: 0.14.900.qualifier Export-Package: org.eclipse.e4.ui.css.core.css2;x-friends:="org.eclipse.e4.ui.css.swt.theme,org.eclipse.e4.ui.css.swt,org.eclipse.e4.ui.css.jface", org.eclipse.e4.ui.css.core.dom;x-friends:="org.eclipse.e4.ui.css.swt,org.eclipse.ui.views.properties.tabbed,org.eclipse.ui.forms", org.eclipse.e4.ui.css.core.dom.properties;