Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Outline View flicker
Outline View flicker [message #782885] Tue, 24 January 2012 16:36 Go to next message
David Struck is currently offline David StruckFriend
Messages: 29
Registered: July 2010
Junior Member
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 07:08 Go to previous messageGo to next message
Thomas Hergenröder is currently offline Thomas HergenröderFriend
Messages: 22
Registered: February 2012
Junior Member
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 11:28 Go to previous messageGo to next message
Jan Koehnlein is currently offline Jan KoehnleinFriend
Messages: 760
Registered: July 2009
Location: Hamburg
Senior Member
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


---
Get professional support from the Xtext committers at www.typefox.io
Re: Outline View flicker [message #870644 is a reply to message #870472] Wed, 09 May 2012 08:06 Go to previous messageGo to next message
Thomas Hergenröder is currently offline Thomas HergenröderFriend
Messages: 22
Registered: February 2012
Junior Member
2.2
Re: Outline View flicker [message #870770 is a reply to message #870644] Wed, 09 May 2012 15:07 Go to previous message
Jan Koehnlein is currently offline Jan KoehnleinFriend
Messages: 760
Registered: July 2009
Location: Hamburg
Senior Member
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


---
Get professional support from the Xtext committers at www.typefox.io
Previous Topic:Dynamic Template Proposals in Xtext
Next Topic:Getting a Lexer from a file extension
Goto Forum:
  


Current Time: Thu Jul 09 09:38:27 GMT 2020

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

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

Back to the top