Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » How to disable Navigation History for my editors
How to disable Navigation History for my editors [message #1472064] Thu, 13 November 2014 10:16 Go to next message
Eclipse UserFriend
Hi,

In the Sirius project, for which we have GMF editors, we would like
disable the navigation history feature which in our case can lead to
issue and also make memory leak as closed editors are always referenced
in this history.
Then how disable this feature for our editors?

Best Regards.

--
Esteban Dugueperoux - Obeo

Need professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: How to disable Navigation History for my editors [message #1473045 is a reply to message #1472064] Fri, 14 November 2014 04:42 Go to previous messageGo to next message
Eclipse UserFriend
Le 13/11/2014 16:16, Esteban Dugueperoux a écrit :
> Hi,
>
> In the Sirius project, for which we have GMF editors, we would like
> disable the navigation history feature which in our case can lead to
> issue and also make memory leak as closed editors are always referenced
> in this history.
> Then how disable this feature for our editors?
>
> Best Regards.
>

If I understand correctly INavigationLocationProvider is only usefull to
restore location in a same editor, we can't prevent NavigationHistory to
reopen a closed editor. Unfortunately we have case where we can't
reopens an editor because its content is no more accessible. Then to
avoid that we must fill a feature request on plaform ui bugzilla?

I compare Navigation History feature to the Command Stack feature, with
this last we can prevent undo/redo by asking to the command if we can do
undo/redo. We could have a similar mechanism for Navigation History,
i.e. ask to the editor if we restore it.

Best Regards.

--
Esteban Dugueperoux - Obeo

Need professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: How to disable Navigation History for my editors [message #1473076 is a reply to message #1473045] Fri, 14 November 2014 05:14 Go to previous message
Eclipse UserFriend
Le 14/11/2014 10:42, Esteban Dugueperoux a écrit :
> Le 13/11/2014 16:16, Esteban Dugueperoux a écrit :
>> Hi,
>>
>> In the Sirius project, for which we have GMF editors, we would like
>> disable the navigation history feature which in our case can lead to
>> issue and also make memory leak as closed editors are always referenced
>> in this history.
>> Then how disable this feature for our editors?
>>
>> Best Regards.
>>
>
> If I understand correctly INavigationLocationProvider is only usefull to
> restore location in a same editor, we can't prevent NavigationHistory to
> reopen a closed editor. Unfortunately we have case where we can't
> reopens an editor because its content is no more accessible. Then to
> avoid that we must fill a feature request on plaform ui bugzilla?
>
> I compare Navigation History feature to the Command Stack feature, with
> this last we can prevent undo/redo by asking to the command if we can do
> undo/redo. We could have a similar mechanism for Navigation History,
> i.e. ask to the editor if we restore it.
>
> Best Regards.
>

Instead of asking to the editor to restore it, this last could throw an
OperationCancelException to cancel its opening :
https://bugs.eclipse.org/bugs/show_bug.cgi?id=451376 , what do you think
about that?


--
Esteban Dugueperoux - Obeo

Need professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:Storage of the preferences
Next Topic:Plugin start and Application start
Goto Forum:
  


Current Time: Sun Jul 27 09:12:42 EDT 2025

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

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

Back to the top