Skip to content

Commit

Permalink
Remove dependency to org.eclipse.core.runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher-Hermann authored and BeckerWdf committed Mar 8, 2024
1 parent 0a09610 commit 287d23a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions bundles/org.eclipse.jface/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ Export-Package: org.eclipse.jface,
Require-Bundle: org.eclipse.swt;bundle-version="[3.111.0,4.0.0)";visibility:=reexport,
org.eclipse.core.commands;bundle-version="[3.4.0,4.0.0)";visibility:=reexport,
org.eclipse.equinox.common;bundle-version="[3.18.0,4.0.0)",
org.eclipse.equinox.bidi;bundle-version="[0.10.0,2.0.0)";resolution:=optional,
org.eclipse.core.runtime;bundle-version="[3.31.0,4.0.0)"
org.eclipse.equinox.bidi;bundle-version="[0.10.0,2.0.0)";resolution:=optional
Bundle-RequiredExecutionEnvironment: JavaSE-17
Import-Package: javax.xml.parsers,
org.osgi.framework;version="[1.8.0,2.0.0)",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
package org.eclipse.jface.viewers;

import org.eclipse.core.runtime.Assert;
import org.eclipse.core.runtime.Platform;
import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.graphics.GC;
Expand Down Expand Up @@ -107,7 +106,7 @@ private void markFocusedCell(Event event, ViewerCell cell) {

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

0 comments on commit 287d23a

Please sign in to comment.