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 - Schema based code completion offers attributes which have already been specified in the tag
Summary: Schema based code completion offers attributes which have already been specif...
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:
: 110323 (view as bug list)
Depends on:
Blocks: 122444
  Show dependency tree
 
Reported: 2007-07-02 14:05 UTC by Rohan Ranade
Modified: 2008-01-24 20:18 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot of the issue (95.84 KB, image/png)
2007-07-02 14:05 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: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)