remove entries from navigation history [message #310766] |
Thu, 14 December 2006 17:21  |
Eclipse User |
|
|
|
Hi,
Could you let me know if there is a way to remove the entires from
Navigation History programatically? For eg. if I open a text file and close
it, an entry in made in File-><Navigation history list>. Then when I delete
the file, the entry also gets removes. I would like to use this code to
remove editors that I have created for some of my runtime objects.
Thanks,
Rashmy
|
|
|
Re: remove entries from navigation history [message #310785 is a reply to message #310766] |
Fri, 15 December 2006 13:00   |
Eclipse User |
|
|
|
Rashmy,
This is the purpose of the IEditorInput#exists method (i.e. if the
method returns false, the input will not appear in the history.
Michael
Rashmy wrote:
> Hi,
>
> Could you let me know if there is a way to remove the entires from
> Navigation History programatically? For eg. if I open a text file and close
> it, an entry in made in File-><Navigation history list>. Then when I delete
> the file, the entry also gets removes. I would like to use this code to
> remove editors that I have created for some of my runtime objects.
>
> Thanks,
> Rashmy
>
>
|
|
|
Re: remove entries from navigation history [message #332998 is a reply to message #310785] |
Tue, 18 November 2008 23:44  |
Eclipse User |
|
|
|
Originally posted by: ofrijole.hotmail.com
I came across this old thread as I'm presently suffering from "leaks" of
my compare editors. They are held in memory both by the navigation
history and the editor history. I tried implementing the exists() method
as suggested below. Doesn't seem to help. In fact, the out of box
implementation (in CompareEditorInput) already returns false and yet my
editors are still leaking into the history lists.
I'm using Eclipse 3.2 and also 3.4 (though I've not yet done profiling
with 3.4). Any tricks to get my editors to be garbage collected (I
never want them to be remembered).
Please help!
Stephen
On 12/15/2006 5:00 AM, Michael Valenta wrote:
> Rashmy,
>
> This is the purpose of the IEditorInput#exists method (i.e. if the
> method returns false, the input will not appear in the history.
>
> Michael
>
> Rashmy wrote:
>> Hi,
>>
>> Could you let me know if there is a way to remove the entires from
>> Navigation History programatically? For eg. if I open a text file and
>> close it, an entry in made in File-><Navigation history list>. Then
>> when I delete the file, the entry also gets removes. I would like to
>> use this code to remove editors that I have created for some of my
>> runtime objects.
>>
>> Thanks,
>> Rashmy
>>
>>
|
|
|
Powered by
FUDForum. Page generated in 0.02930 seconds