[EMF Forms] TreeMasterDetail view priority issue [message #1828827] |
Fri, 19 June 2020 08:15  |
Eclipse User |
|
|
|
Hi,
I'm trying to run "makeithappen_e3.product" as an application with a TreeMasterDetail. I have three views set up:
1. UserGroup_Detail.view (just contains a tree master detail).
2. UserGroup.view (just contains "Control users").
3. User.view (unchanged from example).
The problem is that the view defaults to "UserGroup.view" so does not display the tree master detail. I have set up the detail filter in "plugin.xml" as described in the example.
I have tried debugging to check which view is being selected by "ECPSWTViewRenderer.INSTANCE.render(Composite, EObject)" and it seems that the "UserGroup_Detail" gets assigned a priority of 1.0 and "UserGroup" gets 2.0.
I saw in a post (https://www.eclipse.org/forums/index.php?t=msg&th=1085262&goto=1758575&#msg_1758575 ) that it is possible to set the view directly using "ECPSWTViewRenderer.INSTANCE.render(Composite, EObject, VView)". When I tried this I got the error "SWTException: Widget is disposed". The code that causes this can be seen commented out in the provided View.java file.
I have included the *.view, View.java, plugin.xml and error log files in the attached zip file.
I'm quite new to emf and emf forms so maybe I've missed something obvious. Any help would be greatly appreciated!
Thanks,
Hal
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04408 seconds