This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 61363 - Hint recomputed even if not changing the document
Summary: Hint recomputed even if not changing the document
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Pavel Flaska
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2005-07-25 15:24 UTC by Antonin Nebuzelsky
Modified: 2005-09-05 10:01 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Antonin Nebuzelsky 2005-07-25 15:24:03 UTC
Editor hints are recomputed unnecessarily in the following scenarios:

(1) Each time I move cursor within the line where a hint is displayed, the hint
icon disappears and then appears again after I stop moving the cursor. The icon
should stay displayed until I make a change or until I move cursor out of the line.

(2) Repetitively moving cursor to a certain line makes the hint icon appear on
that line with the same delay, several hundreds of milliseconds, as the first
time I go to the line. I guess the hint is computed again and again each time.
It should be cached for the line until a modification is made in the code.
Comment 1 Tomas Hurka 2005-07-25 16:44:38 UTC
This is as designed. 
(1) Was requested by HIE. 
(2) Cashing would be very dangerous, since potentially any modification in any place can change such 
cached hint.
Comment 2 Tomas Hurka 2005-07-25 16:52:04 UTC
BTW: Ad (2) If there is no modification the information is already cached by MDR infrastructure.
Comment 3 Antonin Nebuzelsky 2005-07-25 21:31:03 UTC
I don't see (1) specified in UI spec. Show me where this is specified before
closing the issue. Flashing icon on the line where I move cursor is annoying.
Comment 4 Martin Matula 2005-07-26 08:24:17 UTC
This was explicitly requested by Jano Rojcek along with moving the light bulb
icon on top of the text rather than on top of the code folding. This is a
similar behavior that can be found in other products that show the light bulb on
top of the text - this way the user is not disturbed by the light-bulb when
typing or moving the cursor - it does not cover the text.
It is possible that this detail is not captured in the UI spec. Pavle, please
add it.
Comment 5 Pavel Flaska 2005-07-26 09:01:24 UTC
Spec. updated.

Checking in hints/editorhintsuispec.html;
/cvs/editor/www/hints/editorhintsuispec.html,v  <--  editorhintsuispec.html
new revision: 1.4; previous revision: 1.3
done