Skip to main content

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 UserFriend
Originally posted by:


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.

Previous Topic:Optimal way to automate build of generated code ?
Next Topic:Multiple RepositoryProvider for a project
Goto Forum:

Current Time: Sat May 26 00:50:46 GMT 2018

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

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

Back to the top