Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Hooking into IWorkbenchPage.closeEditors
Hooking into IWorkbenchPage.closeEditors [message #603489] Sun, 22 November 2009 16:15 Go to next message
Hayden Marchant is currently offline Hayden MarchantFriend
Messages: 12
Registered: November 2009
Junior Member
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 05:51 Go to previous message
Prakash G.R. is currently offline Prakash G.R.Friend
Messages: 621
Registered: July 2009
Senior Member
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: Mon Aug 03 08:42:30 GMT 2020

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

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

Back to the top