How to disable Navigation History for my editors [message #1472064] |
Thu, 13 November 2014 10:16  |
Eclipse User |
|
|
|
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 #1473076 is a reply to message #1473045] |
Fri, 14 November 2014 05:14  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 1.03997 seconds