-
Bug
-
Resolution: Fixed
-
P3
-
fx2.0.2, fx2.1
-
I'm using JRE 6.0_30-b12 (32bit) on Windows 7 (64bit). My RCP target platform is based on eclipse 3.6 (galileo).
I'm using JavaFX within an Eclipse RCP application. Any JavaFX popup (ChoiceBox, Tooltip, etc..) within an eclipse view causes a fatal exception to occur when clicking on the popup. The popups do appear, but clicking on them causes the fatal error.
I created a standalone JavaFX application to confirm that the Popups work fine in that environment. They do.
I also created a standalone SWT-based application (outside of an RCP) that embeds the FXCanvas within an SWT shell and the problem doesn't occur there either.
But when the Combo is contained in an FXCanvas within and RCP view, the fatal exception occurs.
Has anybody else seen this behavior?
I tried it with JavaFX 2.0.2, 2.1 b17, 2.1 b19 (all 32bit)
I'm using JRE 6.0_30-b12 (32bit) on Windows 7 (64bit).
My RCP target platform is based on eclipse 3.6 (galileo).
A simple example:
<code>
public class FXTestView extends ViewPart {
public void createPartControl(Composite parent) {
parent.setLayout(new FillLayout());
new MyCanvas(parent, SWT.None);
}
static class MyCanvas extends FXCanvas {
public MyCanvas(Composite parent, int style) {
super(parent, style);
configureScene();
}
private void configureScene() {
ChoiceBox combo = new ChoiceBox(FXCollections.observableArrayList("Choice 1", "Choice 2"));
VBox vbox = new VBox();
vbox.getChildren().add(combo);
Scene scene = new Scene(vbox);
setScene(scene);
}
}
}
</code>
I created a standalone JavaFX application to confirm that the Popups work fine in that environment. They do.
I also created a standalone SWT-based application (outside of an RCP) that embeds the FXCanvas within an SWT shell and the problem doesn't occur there either.
But when the Combo is contained in an FXCanvas within and RCP view, the fatal exception occurs.
Has anybody else seen this behavior?
I tried it with JavaFX 2.0.2, 2.1 b17, 2.1 b19 (all 32bit)
I'm using JRE 6.0_30-b12 (32bit) on Windows 7 (64bit).
My RCP target platform is based on eclipse 3.6 (galileo).
A simple example:
<code>
public class FXTestView extends ViewPart {
public void createPartControl(Composite parent) {
parent.setLayout(new FillLayout());
new MyCanvas(parent, SWT.None);
}
static class MyCanvas extends FXCanvas {
public MyCanvas(Composite parent, int style) {
super(parent, style);
configureScene();
}
private void configureScene() {
ChoiceBox combo = new ChoiceBox(FXCollections.observableArrayList("Choice 1", "Choice 2"));
VBox vbox = new VBox();
vbox.getChildren().add(combo);
Scene scene = new Scene(vbox);
setScene(scene);
}
}
}
</code>