Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » listener on editor (close event)
listener on editor (close event) [message #328306] Wed, 21 May 2008 09:35 Go to next message
Carmelo  is currently offline Carmelo Friend
Messages: 224
Registered: July 2009
Senior Member
Hi all
Is there a way to know when an editor is going to close?

IEditorPart editorPart = page.openEditor(editorInput,
getEditorId(fileStore));

What can I do to know when the above editor has been closed?
Thanks
Kar
Re: listener on editor (close event) [message #328307 is a reply to message #328306] Wed, 21 May 2008 09:45 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
You need to register an IPartListener2 and then you'll get informed
about PartEvents (opening/showing/closing).

Tom

KarSc schrieb:
> Hi all
> Is there a way to know when an editor is going to close?
>
> IEditorPart editorPart = page.openEditor(editorInput,
> getEditorId(fileStore));
>
> What can I do to know when the above editor has been closed?
> Thanks
> Kar
>
>


--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------
Re: listener on editor (close event) [message #328310 is a reply to message #328307] Wed, 21 May 2008 11:28 Go to previous message
Carmelo  is currently offline Carmelo Friend
Messages: 224
Registered: July 2009
Senior Member
Done ;-)
thanks

"Tom Schindl" <tom.schindl@bestsolution.at> ha scritto nel messaggio
news:g10r0d$qdn$1@build.eclipse.org...
> You need to register an IPartListener2 and then you'll get informed about
> PartEvents (opening/showing/closing).
>
> Tom
>
> KarSc schrieb:
>> Hi all
>> Is there a way to know when an editor is going to close?
>>
>> IEditorPart editorPart = page.openEditor(editorInput,
>> getEditorId(fileStore));
>>
>> What can I do to know when the above editor has been closed?
>> Thanks
>> Kar
>>
>>
>
>
> --
> B e s t S o l u t i o n . at
> ------------------------------------------------------------ --------
> Tom Schindl JFace-Committer
> ------------------------------------------------------------ --------
Previous Topic:JSP in Eclipse WebBrowser?
Next Topic:TableViewerColume and editing
Goto Forum:
  


Current Time: Sat Dec 21 13:27:15 GMT 2024

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

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

Back to the top