Outline View flicker [message #782885] |
Tue, 24 January 2012 11:36  |
Eclipse User |
|
|
|
Hi all, when I have an Xtext editor open with an Outline View, the Outline View's tree refreshes every time I make an edit to the file in the editor. This is great except for it makes the Outline View seem to flicker if I'm, say, editing the name of something, since it refreshes on each key press.
Is there any way to do a more local refresh to the Outline View in these situations? For example, if I am simply changing the name of an item, can I make it so only the node that corresponds to that item is refreshed (instead of the whole tree)?
Thanks,
David
|
|
|
|
Re: Outline View flicker [message #870472 is a reply to message #782885] |
Tue, 08 May 2012 07:28   |
Eclipse User |
|
|
|
Which version of Xtext are you using?
Am 24.01.12 17:36, schrieb David Struck:
> Hi all, when I have an Xtext editor open with an Outline View, the
> Outline View's tree refreshes every time I make an edit to the file in
> the editor. This is great except for it makes the Outline View seem to
> flicker if I'm, say, editing the name of something, since it refreshes
> on each key press.
>
> Is there any way to do a more local refresh to the Outline View in these
> situations? For example, if I am simply changing the name of an item,
> can I make it so only the node that corresponds to that item is
> refreshed (instead of the whole tree)?
>
> Thanks,
>
> David
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com
|
|
|
|
Re: Outline View flicker [message #870770 is a reply to message #870644] |
Wed, 09 May 2012 11:07  |
Eclipse User |
|
|
|
The outline is refreshed by the reconciler, i.e. if you stop typing for
200ms. So as long as you spend less than 1/5s between keystrokes, there
should be no flickering. Is that what you experience?
I assume your outline tree is very big? How many nodes do you have
approx.? Does it improve when you collapse nodes ?
As the outline model is calculated in background, it wouldn't be a good
idea to reconcile the outline model, as UI actions could happen
concurrently.
Am 09.05.12 10:07, schrieb Thomas Hergenröder:
> 2.2
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com
|
|
|
Powered by
FUDForum. Page generated in 0.04257 seconds