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 143351 - "no suggestions" persists longer than necessary
Summary: "no suggestions" persists longer than necessary
Status: REOPENED
Alias: None
Product: soa
Classification: Unclassified
Component: XSLT (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: _ alexpetrov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-08 22:36 UTC by andyloh
Modified: 2008-11-20 23:37 UTC (History)
0 users

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 andyloh 2008-08-08 22:36:23 UTC
In the XSLT Source Editor, when the highlighted "no suggestions" appears, it persists longer than it should.  If I type
additional characters and even carriage returns/new lines, the "no suggestions" remains on screen.  I would expect it to
disappear with the next keystroke, unless invoked manually and no suggestions are present.  The highlighted "no
suggestions" does disappear if I click on, or move (via arrow keys) to, a different line, or if I bring up another
window over NetBeans on the Desktop.
Comment 1 andyloh 2008-08-08 22:45:40 UTC
This problem occurs more consistently when the "no suggestions" appears after the ctrl+space trigger is used.  
Comment 2 _ alexpetrov 2008-10-16 11:28:09 UTC
XSLT Editor:
a code completion text "No suggestions" will be hidden if the key "Up/Down Arrow" is pressed and a caret moved to
another XSLT tag in the previous/next line.

But if sometimes a code completion text "No suggestions" is still displayed when keys "Left/Right Arrow" or "Enter" are
pressed, this behaviour is correct because this behaviour of code completion box is implemented in several different
editors, included in NetBeans.

For example (see notes for different editors below), if a caret is placed in a position, marked by the character "^" and
hot key "Ctrl+Space" is pressed, a code completion text "No suggestions" will appear and it will be displayed if keys
"Enter" and "Left/Right Arrow" are pressed:

Java Editor (the position is after the last quotation mark and before the semicolon)
    private static final String PROCESS = "process";
                                                  ^
Bpel Editor (the position is after the first character ">" and before the last character "<", i.e. somewhere inside
<from> ... </from>)
    <from>$inputVar.inputType/ns2:paramA</from>
              ^
XSLT Editor (the position is inside the word "name")
    <xsl:with-param name=""/>
                      ^
Comment 3 andyloh 2008-11-20 23:37:34 UTC
This is a usability issue.  I would expect the "no suggestions" to disappear with the next keystroke unless the
suggestions list is invoked again and no suggestions are available.  As suggested, I checked the Java source editor.  I
tried the example (private static final String PROCESS = "process";) and the "no suggestions" disappeared when the
left/right arrow key or Enter was pressed, as expected.  I would expect the XSLT Service source editor to behave the
same way.  Re-opening this ticket, but reducing the priority to P4.