Bug 414223 - GEF support is not available in e4 compat layer / e4.swt mode
Summary: GEF support is not available in e4 compat layer / e4.swt mode
Status: NEW
Alias: None
Product: Jubula (Archived)
Classification: Technology
Component: RC (show other bugs)
Version: 2.0   Edit
Hardware: All All
: P2 enhancement with 4 votes (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Oliver Goetz CLA
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2013-08-01 11:59 EDT by Raimar Bühmann CLA
Modified: 2017-08-22 05:46 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Raimar Bühmann CLA 2013-08-01 11:59:57 EDT
After adding the new RCP accessor to support e4 AUTs, the GEF 3 support is not available in e4 AUTs using the compat layer modus.

The reason for this is, that the new RCP accessor uses the pure e4 API to name parts in the AUT. This method is used also in AUTs, which are running in compat layer modus. Currently GEF is included in the e3.specific bundle and is not startet, if the AUT runs in the compat layer modus (Juno, Kepler, Luna, ...).

My local git stash contains an unfinished result to support GEF in compat layer modus. If there is time to do this, we should work further on this task.
Comment 1 Alexandra Schladebeck CLA 2013-08-08 04:27:47 EDT
Having discussed this internally, it's not a priority for the 7.2 release.
Comment 2 Markus Tiede CLA 2015-05-20 05:27:43 EDT
This might be relevant in the near upcoming future.
Comment 3 Max Hohenegger CLA 2017-08-22 05:46:59 EDT
From creating a workaround [1] for this issue, I learned a few things that might help somebody else to implement this in Jubula.

From what I understand, the e3 implementation:

a) registers a part listener
b) adapts an IWorkbenchPartReference to its GEF GraphicalViewer
c) adds a reference to this GraphicalViewer to the SWT data of the main composite of each part (using the key GefPartListener#TEST_GEF_VIEWER_DATA_KEY)

a) is already implemented in Jubula with the existing e4 processor, and c) is trivial.
To implement b) we would need to adapt from an MPart to the GraphicalViewer. I'm not sure how to do that. But if somebody knows where the e3 adapter is to be found: I can imagine that the corresponding e4 adapter would look quite similar.

[1] https://www.eclipse.org/forums/index.php/t/1088357/