Skip to main content



      Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Hooking into IWorkbenchPage.closeEditors
Hooking into IWorkbenchPage.closeEditors [message #603489] Sun, 22 November 2009 11:15 Go to next message
Eclipse UserFriend
I am writing an RCP application which is based on GMF. A diagram can consist of 1 or more editors. So when it is decided to close a diagram, the user clicks the 'close' button on the editor tab.

I would like to hook into that click and trigger the closure of all the 'child' editors of that editor.

I've searched up and down for the relevant extension point, listeners, etc... but came up with nothing.

Sadly, I have no sample code to attach.

Thanks,
Hayden
Re: Hooking into IWorkbenchPage.closeEditors [message #603494 is a reply to message #603489] Mon, 23 November 2009 00:51 Go to previous message
Eclipse UserFriend
Hayden Marchant wrote:
> I am writing an RCP application which is based on GMF. A diagram can
> consist of 1 or more editors. So when it is decided to close a diagram,
> the user clicks the 'close' button on the editor tab.
>
> I would like to hook into that click and trigger the closure of all the
> 'child' editors of that editor.

Look at IPartListener.partClosed()

- Prakash

Platform UI Team, IBM
http://blog.eclipse-tips.com
Previous Topic:Open Java Editor
Next Topic:Hooking into IWorkbenchPage.closeEditors
Goto Forum:
  


Current Time: Thu Jul 17 15:56:23 EDT 2025

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

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

Back to the top