[EMF Forms] Save as XMI removes context menu commands [message #1747251] |
Fri, 11 November 2016 04:32  |
Eclipse User |
|
|
|
Dear Community,
I have got an EMF Forms RAP application and I have added master-detail actions using the "org.eclipse.emf.ecp.view.treemasterdetail.ui.swt.masterDetailActions" extension point.
When I execute my save command all my context menu entries in the master details are not showing up any more, just the small loading item entry "...".
The save command can be called from the root object only and does the following:
final Resource resource = new XMIResourceImpl(URI.createURI("data.xmi")); //$NON-NLS-1$
resource.getContents().add(element);
try {
resource.save(Collections.EMPTY_MAP);
} catch (final IOException e) {
e.printStackTrace();
}
I tracked it down to the resource.getContents.add(element). If I comment this line out, the context menu stays after command execution properly. If I execute the command without modifications I need to refresh the browser to get the context menu back.
Do I need to "release" my root object from the resource or something else?
Best Regards
Peter Friedland
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06703 seconds