Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » remove entries from navigation history
remove entries from navigation history [message #310766] Thu, 14 December 2006 17:21 Go to next message
Rashmy A is currently offline Rashmy AFriend
Messages: 149
Registered: July 2009
Senior Member
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 Go to previous messageGo to next message
Michael Valenta is currently offline Michael ValentaFriend
Messages: 560
Registered: July 2009
Senior Member
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 Go to previous message
Eclipse UserFriend
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
>>
>>
Previous Topic:My plugin causes the workspace prompt to not appear
Next Topic:Implementing Expanding variables in Debug Framework
Goto Forum:
  


Current Time: Fri Apr 26 03:37:07 GMT 2024

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

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

Back to the top