Commit 29a4a9bb authored by Alexander Diewald's avatar Alexander Diewald
Browse files

Common.ui: JavaFX: Mark base class for non-removal.

refs 3241
parent e12ef616
AF3FXViewPart.java 8e1c1312fb7b21fb0b72a4b0978224b740a5e557 YELLOW
AF3FXViewPart.java f15b2cda89baeb75b5609bfb736828ad44824d21 YELLOW
......@@ -17,23 +17,26 @@ package org.fortiss.tooling.common.ui.javafx;
import java.io.IOException;
import org.eclipse.fx.ui.workbench3.FXViewPart;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;
import javafx.application.Platform;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.layout.BorderPane;
import org.eclipse.fx.ui.workbench3.FXViewPart;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;
/**
* Base class to create eclipse (SWT-based) views using JavaFX GUI elements. This class requires
* FXML file that defines the GUI elements of the view.
*
* @author diewald
*/
@Deprecated //ucd
public abstract class AF3FXViewPart extends FXViewPart {
/**
* This class will be used for the migration to JavaFX, which is work-in-progress. Hence, mark the
* class for non-removal.
*/
public abstract class AF3FXViewPart extends FXViewPart { // NO_UCD
/** Holds the relative path to the CSS file defining the Applications appearance. */
private final static String CSSLOCATION = "/application.css";
......@@ -101,9 +104,8 @@ public abstract class AF3FXViewPart extends FXViewPart {
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.");
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;
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment