Skip to content
Snippets Groups Projects
Commit 16a66562 authored by Alexander Diewald's avatar Alexander Diewald
Browse files

JFX: SWT_GTK3=0 is no longer required

* This also fixes a "hidden" crash: The error message is sometimes not
  visible.

Issue-Ref: 3721
Issue-Url: https://af3-developer.fortiss.org/issues/3721


Signed-off-by: default avatarAlexander Diewald <diewald@fortiss.org>
parent 23182ded
No related branches found
No related tags found
1 merge request!52The product fix for Linux
AF3FXViewPart.java 1af5c5fba174c2f81ebdde4e90552a8501f1d86e GREEN
......@@ -22,8 +22,6 @@ import java.util.ResourceBundle;
import org.apache.commons.lang3.SystemUtils;
import org.eclipse.fx.ui.workbench3.FXViewPart;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.part.ViewPart;
import javafx.application.Platform;
......@@ -102,21 +100,6 @@ public abstract class AF3FXViewPart extends FXViewPart implements Initializable
this.cssLocation = cssLocation;
}
/** {@inheritDoc} */
@Override
public void createPartControl(Composite parent) {
if("gtk".equals(System.getProperty("osgi.ws"))) {
if(!"0".equals(System.getenv("SWT_GTK3"))) {
org.eclipse.swt.widgets.Label errorLabel =
new org.eclipse.swt.widgets.Label(parent, SWT.BOLD);
errorLabel.setText("Cannot show JavaFX view without setting SWT_GTK3 to '0'.\n" +
"Please relaunch Eclipse using a terminal and 'SWT_GTK3=0 ./eclipse' command.");
return;
}
}
super.createPartControl(parent);
}
/** {@inheritDoc} */
@Override
protected Scene createFxScene() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment