| [GEF4] FXViewer don't work into FX SplitPane. [message #1713236] |
Mon, 02 November 2015 11:34  |
Eclipse User |
|
|
|
Trying the new change in FXViewer in GEF4 3.10.1 I had a problem, when I create a FX E4 Application projects I try this:
@PostConstruct
public void postConstruct(BorderPane parent) {
Injector injector = Guice.createInjector(new Module[] { createModule() });
this.domain = ((FXDomain) injector.getInstance(FXDomain.class));
this.viewer = ((FXViewer) this.domain.getAdapter(IViewer.class));
SplitPane splitPane = new SplitPane();
splitPane.orientationProperty().setValue(Orientation.HORIZONTAL);
splitPane.setDividerPositions(0.5f);
splitPane.getItems().addAll(viewer.getScrollPane(), new Text("Testing..."));
parent.setCenter(splitPane);
AbstractZestExample graphExample = new CustomNodeExample();
graph = graphExample.createGraph();
Platform.runLater(() -> {
this.domain.activate();
((ContentModel) viewer.getAdapter(ContentModel.class)).setContents(Collections.singletonList(graph));
});
}
The graph show well but the mouse events don't work, not selection, not drag and drog. I change the SplitPane for a HBox and all is OK, also I change the SplitPane for a ScrollPane and all is OK. In my project I need the SplitPane, please any solution, my English is too bad.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03766 seconds