eclipse.platform.ui icon indicating copy to clipboard operation
eclipse.platform.ui copied to clipboard

remove 500ms PostSelectionDelay

Open jukzi opened this issue 1 year ago • 43 comments

currently org.eclipse.jface.util.OpenStrategy.TIME is set to 500ms which has the following effect: After selecting something (mouse or keeyboard) in the editor there will be a 500ms delay before the UI is update.. for example

  • the link in the Outline view,
  • Status Bar entry for warnings,
  • highlighting the selected word,
  • ...? example: 500msdelay

without delay all those features are almost instant: no_delay

I don't know of any benefit of the delay. Anybody does? I thought it might help to avoid too much events when let the cursor be pressed for scrolling. But those events are ignored anyway until key is released. Only if i use mouse to multiselect multiple lines there are many events, but i don't experience any lag due to it. It looks much more responsive when the outline view is updated instantaniously. mouseMultiselect

how i stumpled across that delay (i always thought the UI is just so slow that it need so much time to update): There currently is an error when you select a type and press ctrl+t within <500ms. The type hierarchy will use the statusline for progressreport but after 500ms the text is overridden by Java Editors Problem hint. (until now i never noticed the problem hint in the status bar, probably because it has that 500ms lag)

jukzi avatar Feb 19 '24 09:02 jukzi