use of org.csstudio.javafx.swt.JFX_SWT_Wrapper in project org.csstudio.display.builder by kasemir.
the class DataBrowserWidgetFigure method createSWTWidget.
@Override
protected Control createSWTWidget(final Composite parent, final int style) {
final JFX_SWT_Wrapper wrapper = new JFX_SWT_Wrapper(parent, () -> {
Parent root;
try {
plot = new ModelBasedPlot(editPart.getExecutionMode() == ExecutionMode.RUN_MODE);
root = plot.getPlot();
} catch (Exception ex) {
logger.log(Level.WARNING, "Cannot create Data Browser OPI Widget's plot", ex);
root = new Label("Cannot initialize Plot");
}
return new Scene(root);
});
return wrapper.getFXCanvas();
}
Aggregations