Eclipse editor [message #762706] |
Thu, 08 December 2011 09:29  |
Eclipse User |
|
|
|
So I have a Mulitipart Editor which I use to edit the files of the type *.event
I need to achieve the functionality : when the file is deleted and open in the editor, the editor is close.
I wrote a EventResourceChangeListener to listen to the delete event and at that point invoke the Editor.close(). however if there are more tahn one *.event files are opened , then all these files are closed and not only the deleted filed, and this is because the Editor instance is same for all the files opened,
What shall I do ?
[Updated on: Thu, 08 December 2011 09:31] by Moderator
|
|
|
|
Re: Eclipse editor [message #762793 is a reply to message #762713] |
Thu, 08 December 2011 11:20  |
Eclipse User |
|
|
|
Two things ,
I was watching the constructor for my editor and it was only invoked once, hence no many how many files i open, they seam to share the same Editor instance.
Hence I am back to where I started ?
Maybe I am wrong in my assumption >?
Also : How would I search for editor that matches my specific .event
Regards
|
|
|
Powered by
FUDForum. Page generated in 0.03673 seconds