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 138863 - Code completion does not show all values of attributes of some tags
Summary: Code completion does not show all values of attributes of some tags
Status: VERIFIED DUPLICATE of bug 129112
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:
 
Reported: 2008-07-02 20:01 UTC by tonybeckham
Modified: 2008-07-08 19:55 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 tonybeckham 2008-07-02 20:01:58 UTC
Problem:
Some attributes such as name="" or value="" are not suggested for nested tags.  Even if the word is started (it has
syntax coloring correctly) and manual invokation of CC, still there is no suggestion.

Steps (for this example creating new enumeration):
1. Begin a new enumeration tag in the code below after the last one
2. CC can be used to complete xsd:enumeration but then space gives attribute fixed="" and nothing else
3. This is just one example, in other circumstances, thevalue name is never suggested

 <xsd:attribute name="myattrib">
        <xsd:simpleType>
            <xsd:restriction base="xsd:String">
                <xsd:enumeration value="First"/>
                <xsd:enumeration value="Second"/>
                <xsd:enumeration value="Third"/>
                
            </xsd:restriction>
        </xsd:simpleType>
    </xsd:attribute>
Comment 1 Samaresh Panda 2008-07-02 20:15:29 UTC
Not clear what you're trying to do here. If you're using the following snippet in your schema, the xml tag will show
attr value completion for "myattrib" and not "name". For example

<hello myattrib="|"> and you should get First, Second, Third as the completion items at cursor.
Comment 2 tonybeckham 2008-07-02 21:15:37 UTC
Just an example showing that not all properties of tags are shown as suggestions and CC does not work for them,  In the
example snippet, try and add another enumeration value to the attribute.  The only suggestion is 'fixed=""', shouldn't
there be more such as value="".
Comment 3 tonybeckham 2008-07-02 21:20:02 UTC
You can also just add an new element.  CC offers suggestion of name, form, maxOccurs, minOccurs, and ref but the
properties for element go beyond those like, abstract and Nillable that are available via the properties window.
Comment 4 Samaresh Panda 2008-07-02 21:43:41 UTC
I think we discussed about this in a separate bug. See issue 129112.

*** This issue has been marked as a duplicate of 129112 ***
Comment 5 tonybeckham 2008-07-08 19:55:55 UTC
Verified as duplicate