diff --git a/org.fortiss.tooling.common.ui/trunk/src/org/fortiss/tooling/common/ui/javafx/.ratings b/org.fortiss.tooling.common.ui/trunk/src/org/fortiss/tooling/common/ui/javafx/.ratings index 1db85a85da8a6441115b0b6bf92e5443f0253b7b..4b8381da9aa5e4bd09b82f407155e1f5e2762e36 100644 --- a/org.fortiss.tooling.common.ui/trunk/src/org/fortiss/tooling/common/ui/javafx/.ratings +++ b/org.fortiss.tooling.common.ui/trunk/src/org/fortiss/tooling/common/ui/javafx/.ratings @@ -1 +1 @@ -AF3FXViewPart.java 8e1c1312fb7b21fb0b72a4b0978224b740a5e557 YELLOW +AF3FXViewPart.java f15b2cda89baeb75b5609bfb736828ad44824d21 YELLOW diff --git a/org.fortiss.tooling.common.ui/trunk/src/org/fortiss/tooling/common/ui/javafx/AF3FXViewPart.java b/org.fortiss.tooling.common.ui/trunk/src/org/fortiss/tooling/common/ui/javafx/AF3FXViewPart.java index eebfdce0afd268beb3e0b5ca3e02d6b69977c83f..b6a5e5efc2b7bb6f7a62eb478f697ec459a0cfb3 100644 --- a/org.fortiss.tooling.common.ui/trunk/src/org/fortiss/tooling/common/ui/javafx/AF3FXViewPart.java +++ b/org.fortiss.tooling.common.ui/trunk/src/org/fortiss/tooling/common/ui/javafx/AF3FXViewPart.java @@ -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; } }