|save/restore window layout [message #1234972]
||Thu, 23 January 2014 09:04
| Beat Schaller
Registered: July 2009
We are working on a pure Eclipse 4 business application. Different windows on different monitor should be saved as a defined layout.|
I have implemented a ResourceHandler that saves the configuration for each user/machine (no deltas) and restore this configuration when starting. Depending on the definition location of the TrimmedWindow it works - or not. The window defined in Application.e4xmi works fine. With the windows defined in the fragments.e4xmi of the plugins we have a problem:
java.lang.IllegalArgumentException: The selected element org.eclipse.e4.ui.model.application.ui.basic.impl.TrimmedWindowImpl@7da17da1...must be visible in the UI presentation
If I remove the selectedElement in the <application:Application ..> tag the window is restored. But the x, y, width and height are not correct. After debugging I saw that the ModelAssembler class overwrites this values. If I remove the ModelAssembler in our ResourceHandler just when restoring it works all fine.
Can I just ignore the ModelAssembler when restoring?
Thx for any help on this subject
Powered by FUDForum
. Page generated in 0.15226 seconds