Skip to content

Commit 287d23a

Browse files
Christopher-HermannBeckerWdf
authored andcommitted
Remove dependency to org.eclipse.core.runtime
1 parent 0a09610 commit 287d23a

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

bundles/org.eclipse.jface/META-INF/MANIFEST.MF

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ Export-Package: org.eclipse.jface,
3737
Require-Bundle: org.eclipse.swt;bundle-version="[3.111.0,4.0.0)";visibility:=reexport,
3838
org.eclipse.core.commands;bundle-version="[3.4.0,4.0.0)";visibility:=reexport,
3939
org.eclipse.equinox.common;bundle-version="[3.18.0,4.0.0)",
40-
org.eclipse.equinox.bidi;bundle-version="[0.10.0,2.0.0)";resolution:=optional,
41-
org.eclipse.core.runtime;bundle-version="[3.31.0,4.0.0)"
40+
org.eclipse.equinox.bidi;bundle-version="[0.10.0,2.0.0)";resolution:=optional
4241
Bundle-RequiredExecutionEnvironment: JavaSE-17
4342
Import-Package: javax.xml.parsers,
4443
org.osgi.framework;version="[1.8.0,2.0.0)",

bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/FocusCellOwnerDrawHighlighter.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
package org.eclipse.jface.viewers;
1818

1919
import org.eclipse.core.runtime.Assert;
20-
import org.eclipse.core.runtime.Platform;
2120
import org.eclipse.swt.SWT;
2221
import org.eclipse.swt.graphics.Color;
2322
import org.eclipse.swt.graphics.GC;
@@ -107,7 +106,7 @@ private void markFocusedCell(Event event, ViewerCell cell) {
107106

108107
private void removeSelectionInformation(Event event, ViewerCell cell) {
109108
GC gc = event.gc;
110-
if (Platform.WS_GTK.equals(Platform.getWS())) {
109+
if ("gtk".equals(SWT.getPlatform())) { //$NON-NLS-1$
111110
// On GTK, the line is highlighted even though the SELECTED flag is removed. To
112111
// fix this issue, the background must be overwridden
113112
gc.setBackground(cell.getViewerRow().getBackground(cell.getColumnIndex()));

0 commit comments

Comments
 (0)