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 108634 - Code completion items being shown outside xml tags
Summary: Code completion items being shown outside xml tags
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Schema Tools (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Samaresh Panda
URL:
Keywords:
Depends on:
Blocks: 122444
  Show dependency tree
 
Reported: 2007-07-02 14:01 UTC by Rohan Ranade
Modified: 2008-01-24 22:19 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot of the issue (85.76 KB, image/png)
2007-07-02 14:01 UTC, Rohan Ranade
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rohan Ranade 2007-07-02 14:01:00 UTC
Please refer the attached screenshot to see the issue. 

When I enter the tag as :

<var name="aa"/> and press CTRL+SPACE, "No suggestions" is displayed, which is correct. However, after I take my cursor
to some other line and then bring it back again to the end of the var tag, and press CTRL + SPACE, completion items are
shown incorrectly outside the tag.
Comment 1 Rohan Ranade 2007-07-02 14:01:36 UTC
Created attachment 44622 [details]
Screenshot of the issue
Comment 2 Samaresh Panda 2007-09-26 02:43:01 UTC
I might have fixed this already as a part of some other fix. Please verify.
Comment 3 tonybeckham 2007-10-22 20:05:17 UTC
Product Version: NetBeans IDE 6.0 Beta 2 (Build 200710212201)
Java: 1.5.0_07; Java HotSpot(TM) Client VM 1.5.0_07-87
System: Mac OS X version 10.4.10 running on i386; MacRoman; en_US (nb)

Code completion still shows suggestions outside of tag.

Steps:
1. Create a new schema
2. add some complex type and a sequence, to that add an element.
3. in Source view position your cursor after the element and invoke code completion and elements attribute options are
shown but CC should show no suggestion.
Comment 4 Samaresh Panda 2008-01-17 05:55:13 UTC
Fix integrated.
/cvs/xml/schema/completion/src/org/netbeans/modules/xml/schema/completion/util/CompletionContextImpl.java,v  <-- 
CompletionContextImpl.java
new revision: 1.20; previous revision: 1.19
/cvs/xml/schema/completion/test/unit/src/org/netbeans/modules/xml/schema/completion/BasicCompletionTest.java,v  <-- 
BasicCompletionTest.java
new revision: 1.18; previous revision: 1.17
Comment 5 tonybeckham 2008-01-24 22:19:47 UTC
Fix Verified:

Product Version: NetBeans IDE Dev (Build 200801220251)
Java: 1.5.0_13; Java HotSpot(TM) Client VM 1.5.0_13-119
System: Mac OS X version 10.5.1 running on i386; MacRoman; en_US (nb)