|How to close editor when Project is closed [message #309246]
||Fri, 20 October 2006 02:57
Originally posted by: systemix.gmail.com|
How can I do if I want to close editor when I close the project.
I made editor by MultiPageEditorPart. It included some EditorPart based
simple editor. (It is not text editor, It included tree display,
sashform, radio buttons, and so on.)
I tried using IResourceChangeListener and wrote editor close action when
PRE_CLOSE event fired.
I use IWorkbenchPage#closeEditor(IEditorPart editor, boolean save) to
close the editor. but It occurred exception when processing
WorkbenchPage#closeEditors. It have no trace log, just stop close
processing. It looks like close project processing is complete. but
editor and project is not closed. and I can't close editor by click
I can see closed project and editor when I restart myplugin.
Any help is appreciated. Thanks in advance.
Powered by FUDForum
. Page generated in 0.02228 seconds