Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Outline View flicker
Outline View flicker [message #782885] Tue, 24 January 2012 11:36 Go to next message
Eclipse UserFriend
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 #870428 is a reply to message #782885] Tue, 08 May 2012 03:08 Go to previous messageGo to next message
Eclipse UserFriend
Did you fix that problem?
Or does anyone else know how to do it?
Re: Outline View flicker [message #870472 is a reply to message #782885] Tue, 08 May 2012 07:28 Go to previous messageGo to next message
Eclipse UserFriend
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 #870644 is a reply to message #870472] Wed, 09 May 2012 04:06 Go to previous messageGo to next message
Eclipse UserFriend
2.2
Re: Outline View flicker [message #870770 is a reply to message #870644] Wed, 09 May 2012 11:07 Go to previous message
Eclipse UserFriend
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
Previous Topic:Dynamic Template Proposals in Xtext
Next Topic:Getting a Lexer from a file extension
Goto Forum:
  


Current Time: Wed Jul 23 18:58:04 EDT 2025

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

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

Back to the top