开发者

How can I remember editors when Perspective change

开发者 https://www.devze.com 2023-01-18 17:36 出处:网络
I have two Perspectives and two editor part each. When preperspective changed to postperspective, the editor opend is closed . then changed again to preperspective , no editor can be recovered.

I have two Perspectives and two editor part each.

When preperspective changed to postperspective , the editor opend is closed . then changed again to preperspective , no editor can be recovered.

How can I rememver the Editor Opend , even when changing perspective occured. and 开发者_如何学编程can I recover it again?


This behavior actually contradicts to the Eclipse UI metaphor where editors are shared between perspectives.

So you have to implement your own persistent storage for perpective:editors map. Also look at http://help.eclipse.org/help33/topic/org.eclipse.platform.doc.isv/reference/api/org/eclipse/debug/ui/sourcelookup/CommonSourceNotFoundEditorInput.html#getPersistable()

0

精彩评论

暂无评论...
验证码 换一张
取 消