Skip to content
Snippets Groups Projects
Commit db0adc6f authored by Hernan Ponce de Leon's avatar Hernan Ponce de Leon
Browse files

Merge branch '3721' into 'master'

The product fix for Linux

See merge request !52
parents 23182ded 231cc3b9
No related branches found
No related tags found
1 merge request!52The product fix for Linux
AF3FXViewPart.java 1af5c5fba174c2f81ebdde4e90552a8501f1d86e GREEN
AF3FXViewPart.java 865b996b5eb092bb30c161d026163a0f8fc66c41 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