|
|
Re: Saving dirty parts in all perspectives [message #1032763 is a reply to message #1032757] |
Wed, 03 April 2013 12:06 |
Eclipse User |
|
|
|
Ok the issue is that getDirtyParts does a find on the model with the flags OUTSIDE_PERSPECTIVE | IN_ACTIVE_PERSPECTIVE | IN_SHARED_AREA; which means that it does not save the parts in the other perspectives (IN_ANY_PERSPECTIVE flag, check out these flags on the EModelService). What you can do is override the ISaveHandler and do a find MParts with the IN_ANY_PERSPECTIVE flag and then do a EPartService#savePart on the result, or just move the "common" parts in the shared area.
The idea is that anything common to perspectives goes in the shared area, that's why the current behavior is this way.
|
|
|
Powered by
FUDForum. Page generated in 0.03378 seconds