|Re: How to disable Navigation History for my editors [message #1473076 is a reply to message #1473045]
||Fri, 14 November 2014 10:14
| Esteban Dugueperoux
Registered: July 2009
Le 14/11/2014 10:42, Esteban Dugueperoux a écrit :|
> Le 13/11/2014 16:16, Esteban Dugueperoux a écrit :
>> 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
Esteban Dugueperoux - Obeo
Need professional services for Sirius?
Powered by FUDForum
. Page generated in 0.01918 seconds