|
|
Re: Hooking into IWorkbenchPage.closeEditors [message #499517 is a reply to message #499505] |
Mon, 23 November 2009 07:44 |
Hayden Marchant Messages: 12 Registered: November 2009 |
Junior Member |
|
|
I did see the IPartListener, but I'm a little concerned that the user experience might be a little strange, since I'll be plugging in my logic a little late in the process.
For example, will I be able to invoke IWorkbenchPage.closeEditors from within the callback of partClosed(). How do I create a' 'request' to close the other editors, asynchronously, so that when the UI 'has time' it will close the other editors?
btw, I would have liked it to be collated together from the beginning, so that the prompt for save can be done in one action. Now, if my main page needs saving, I'll get that prompt, and only when it's saved, will it prompt for the other pages to be saved. A slight usability glitch that I'd like to avoid if possible.
Any suggestions with both issues?
|
|
|
Re: Hooking into IWorkbenchPage.closeEditors [message #603499 is a reply to message #499505] |
Mon, 23 November 2009 07:44 |
Hayden Marchant Messages: 12 Registered: November 2009 |
Junior Member |
|
|
I did see the IPartListener, but I'm a little concerned that the user experience might be a little strange, since I'll be plugging in my logic a little late in the process.
For example, will I be able to invoke IWorkbenchPage.closeEditors from within the callback of partClosed(). How do I create a' 'request' to close the other editors, asynchronously, so that when the UI 'has time' it will close the other editors?
btw, I would have liked it to be collated together from the beginning, so that the prompt for save can be done in one action. Now, if my main page needs saving, I'll get that prompt, and only when it's saved, will it prompt for the other pages to be saved. A slight usability glitch that I'd like to avoid if possible.
Any suggestions with both issues?
|
|
|
Powered by
FUDForum. Page generated in 0.04247 seconds