Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How to close editor when Project is closed
How to close editor when Project is closed [message #309246] Fri, 20 October 2006 02:57
Eclipse User
Originally posted by: systemix.gmail.com

Hi~

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
close button.
I can see closed project and editor when I restart myplugin.

Any help is appreciated. Thanks in advance.

regards.
Jung.
Previous Topic:Help with EditorPart Layout
Next Topic:Question on XML-Textviewer
Goto Forum:
  


Current Time: Wed Oct 01 06:17:21 GMT 2014

Powered by FUDForum. Page generated in 0.26216 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software