Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 15:16 Go to next message
Esteban Dugueperoux is currently offline Esteban DugueperouxFriend
Messages: 472
Registered: July 2009
Senior Member
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 09:42 Go to previous messageGo to next message
Esteban Dugueperoux is currently offline Esteban DugueperouxFriend
Messages: 472
Registered: July 2009
Senior Member
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 10:14 Go to previous message
Esteban Dugueperoux is currently offline Esteban DugueperouxFriend
Messages: 472
Registered: July 2009
Senior Member
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: Fri Apr 26 01:12:45 GMT 2024

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

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

Back to the top