Jubula & GEF not working in e4 Parts [message #1771022] |
Mon, 21 August 2017 08:31 |
|
Hi,
I did not get Jubula to work with GEF 3.9 on a Kepler-based RCP.
When instead of the RCP, I used a Kepler Java IDE with the GEF example Logic Editor, everything worked.
After some debugging through the Jubula code I came up with a workaround:
@PostConstruct
public void postConstruct(Composite parent) {
GraphicalViewer viewer = new ScrollingGraphicalViewer();
parent.setData("TEST_GEF_VIEWER", viewer); // workaround using key from GefPartListener#TEST_GEF_VIEWER_DATA_KEY
viewer.createControl(parent);
// ...
}
After putting the above commented line into my RCP application, everything just works fine.
I would of course much prefer not to leave this workaround in the code.
My understanding is that with e3 parts, Jubula has no problem with "injecting" the required SWT data into the part (using the GefPartListener). The e4 counterpart of this mechanism does not seem to exist though, or I have not found it.
Hence my question is: Is there something wrong with my setup, or is this a known issue?
Since the Jubula documentation claims that Jubula supports Eclipse e4 as well as GEF [3.0,4.0), and both have been around for quite some time, it would surprise me if I am the first to discover this.
I have the following plug-ins added to the RCP application, and verified that they are started:
org.eclipse.jubula.rc.rcp.common_5.0.0.201705050842.jar
org.eclipse.jubula.rc.rcp.e3.specific_5.0.0.201705050842.jar
org.eclipse.jubula.rc.rcp.e3_5.0.0.201705050842.jar
org.eclipse.jubula.rc.rcp.e4.swt_5.0.0.201705050842.jar
org.eclipse.jubula.rc.rcp.e4_5.0.0.201705050842.jar
org.eclipse.jubula.rc.rcp.swt_5.0.0.201705050842.jar
org.eclipse.jubula.rc.rcp_5.0.0.201705050842.jar
See also: [1] https://www.eclipse.org/forums/index.php/t/366357/
Thanks in advance
Max
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03458 seconds