How to restore edit location of recently closed editor? [message #636972] |
Wed, 03 November 2010 11:44  |
Eclipse User |
|
|
|
I have an editor input which is of type IURIEditorInput which I use to open different types of packaged editors (java,python,xml,text,etc) or system editor. I need the ability to save and restore the edit position of the files opened in these editors and am having a bit of trouble figuring out how to. I am thinking that IMarker is the way to go by getting a marker before they are closed, store it in my editor input, then after they are opened, use IDE.gotoMarker(part,marker) to restore my state. The problem I'm having is creating the marker before they editors are actually closed. Any ideas how to do this? I want to restore the editor as if it was never actually closed.
Thanks,
Max
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04799 seconds