Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Jubula » Jubula & GEF not working in e4 Parts
Jubula & GEF not working in e4 Parts [message #1771022] Mon, 21 August 2017 08:31 Go to next message
Max Hohenegger is currently offline Max HoheneggerFriend
Messages: 11
Registered: April 2012
Junior Member

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
Re: Jubula & GEF not working in e4 Parts [message #1771110 is a reply to message #1771022] Tue, 22 August 2017 06:21 Go to previous messageGo to next message
Marvin Mueller is currently offline Marvin MuellerFriend
Messages: 112
Registered: March 2012
Senior Member
Hello Max,

I am sorry to say it, but we are currently not supporting GEF in e4 with compat layer or pure e4 applications[1].

So its nice that you found a workaround you can use. If this workaround is working fine for your application it would be the best to have it in.
Also its a very nice catch that you found this out since we had no known workaround for this.

Thanks for your efforts!
best regards
Marvin

[1] http://eclip.se/414223
Re: Jubula & GEF not working in e4 Parts [message #1771135 is a reply to message #1771110] Tue, 22 August 2017 11:20 Go to previous message
Max Hohenegger is currently offline Max HoheneggerFriend
Messages: 11
Registered: April 2012
Junior Member

Thanks Marvin.
I commented on the Bug.
Previous Topic:Get test cases from local h2 db
Next Topic:Get list of test cases
Goto Forum:
  


Current Time: Wed Sep 19 01:49:43 GMT 2018

Powered by FUDForum. Page generated in 0.01793 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top