Skip to main content



      Home
Home » Newcomers » Newcomers » I want to close an editor, which associated project is deleted.
I want to close an editor, which associated project is deleted. [message #209121] Sun, 06 May 2007 21:31 Go to next message
Eclipse UserFriend
Originally posted by: mephistopeles84.empal.com

Hi.

I'm gonna close an editor, which associated project is deleted.
So I figured out catching event when project is deleted.
( adding ResourceChangeListeners to workspace )

The problem is how to close editor in listener.

I looked for in editor page, editor site, workbench windows, workbench
api list, but there's no operation closing editor.
Re: I want to close an editor, which associated project is deleted. [message #209171 is a reply to message #209121] Mon, 07 May 2007 07:07 Go to previous message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

You can use getSite().getPage().closeEditor(<editor>, <save>) to do this.

Back, Kyeong Myeong wrote:
> Hi.
>
> I'm gonna close an editor, which associated project is deleted.
> So I figured out catching event when project is deleted.
> ( adding ResourceChangeListeners to workspace )
>
> The problem is how to close editor in listener.
>
> I looked for in editor page, editor site, workbench windows, workbench
> api list, but there's no operation closing editor.
Previous Topic:JSP Editor
Next Topic:Installing a minimal set of plug-ins for an infocenter
Goto Forum:
  


Current Time: Tue Jul 22 14:48:30 EDT 2025

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

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

Back to the top