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 108636

Summary: Schema based code completion offers attributes which have already been specified in the tag
Product: xml Reporter: Rohan Ranade <rohanranade>
Component: Schema ToolsAssignee: Samaresh Panda <samaresh>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 122444    
Attachments: Screenshot of the issue

Description Rohan Ranade 2007-07-02 14:05:17 UTC
Please refer the attached screenshot for the scenario. 

In this case, Schema based code completion is offering me "name" and "access" attributes for completion, though they
have been specified earlier. Only attributes which havent yet been specified should be offered for completion.
Comment 1 Rohan Ranade 2007-07-02 14:05:44 UTC
Created attachment 44624 [details]
Screenshot of the issue
Comment 2 Samaresh Panda 2008-01-07 18:26:24 UTC
*** Issue 110323 has been marked as a duplicate of this issue. ***
Comment 3 Samaresh Panda 2008-01-16 23:32:55 UTC
Fix integrated:
Checking in src/org/netbeans/modules/xml/schema/completion/util/CompletionContextImpl.java;
/cvs/xml/schema/completion/src/org/netbeans/modules/xml/schema/completion/util/CompletionContextImpl.java,v  <-- 
CompletionContextImpl.java
new revision: 1.19; previous revision: 1.18
done
Checking in src/org/netbeans/modules/xml/schema/completion/util/CompletionUtil.java;
/cvs/xml/schema/completion/src/org/netbeans/modules/xml/schema/completion/util/CompletionUtil.java,v  <-- 
CompletionUtil.java
new revision: 1.14; previous revision: 1.13
done
Checking in test/unit/src/org/netbeans/modules/xml/schema/completion/AbstractTestCase.java;
/cvs/xml/schema/completion/test/unit/src/org/netbeans/modules/xml/schema/completion/AbstractTestCase.java,v  <-- 
AbstractTestCase.java
new revision: 1.7; previous revision: 1.6
done
Checking in test/unit/src/org/netbeans/modules/xml/schema/completion/BasicCompletionTest.java;
/cvs/xml/schema/completion/test/unit/src/org/netbeans/modules/xml/schema/completion/BasicCompletionTest.java,v  <-- 
BasicCompletionTest.java
new revision: 1.17; previous revision: 1.16
done
Checking in src/org/netbeans/modules/xml/schema/completion/SchemaBasedCompletionProvider.java;
/cvs/xml/schema/completion/src/org/netbeans/modules/xml/schema/completion/SchemaBasedCompletionProvider.java,v  <-- 
SchemaBasedCompletionProvider.java
new revision: 1.11; previous revision: 1.10
done
Checking in src/org/netbeans/modules/xml/schema/completion/AttributeResultItem.java;
/cvs/xml/schema/completion/src/org/netbeans/modules/xml/schema/completion/AttributeResultItem.java,v  <-- 
AttributeResultItem.java
new revision: 1.7; previous revision: 1.6
done
Checking in src/org/netbeans/modules/xml/schema/completion/CompletionResultItem.java;
/cvs/xml/schema/completion/src/org/netbeans/modules/xml/schema/completion/CompletionResultItem.java,v  <-- 
CompletionResultItem.java
new revision: 1.9; previous revision: 1.8
done
Checking in src/org/netbeans/modules/xml/schema/completion/ElementResultItem.java;
/cvs/xml/schema/completion/src/org/netbeans/modules/xml/schema/completion/ElementResultItem.java,v  <-- 
ElementResultItem.java
new revision: 1.7; previous revision: 1.6
done
Checking in src/org/netbeans/modules/xml/schema/completion/CompletionPaintComponent.java;
/cvs/xml/schema/completion/src/org/netbeans/modules/xml/schema/completion/CompletionPaintComponent.java,v  <-- 
CompletionPaintComponent.java
new revision: 1.7; previous revision: 1.6
done
RCS file: /cvs/xml/schema/completion/test/unit/src/org/netbeans/modules/xml/schema/completion/resources/Attr1.xml,v
done
Checking in test/unit/src/org/netbeans/modules/xml/schema/completion/resources/Attr1.xml;
/cvs/xml/schema/completion/test/unit/src/org/netbeans/modules/xml/schema/completion/resources/Attr1.xml,v  <--  Attr1.xml
initial revision: 1.1
done
Checking in test/unit/src/org/netbeans/modules/xml/schema/completion/resources/A.xsd;
/cvs/xml/schema/completion/test/unit/src/org/netbeans/modules/xml/schema/completion/resources/A.xsd,v  <--  A.xsd
new revision: 1.5; previous revision: 1.4
Comment 4 tonybeckham 2008-01-24 20:18:28 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)