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 108720 - Schema based code completion should enter mandatory attributes when inserting new tags
Summary: Schema based code completion should enter mandatory attributes when inserting...
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Schema (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@xml
URL:
Keywords:
Depends on:
Blocks: 122444
  Show dependency tree
 
Reported: 2007-07-03 09:08 UTC by Rohan Ranade
Modified: 2008-01-24 22:11 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rohan Ranade 2007-07-03 09:08:41 UTC
I have a tag <var> which has two mandatory attributes - name and description. They are specified as mandatory in the
schema that governs my xml document.

Currently, schema based code completion just enters the "var" tag when I choose it from the list of completion items. I
have to then add the name and description attributes manually (with the help of attribute code completion). The
mandatory attributes should be added automatically when the tag is added using code completion, since it is not going to
make much sense having tags without mandatory attributes.
Comment 1 Samaresh Panda 2008-01-16 23:34:10 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 2 tonybeckham 2008-01-24 22:11:05 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)