You then drop it into the location where
you want the element to be placed.
Chapter 7
[ 153 ]
Upon dragging and dropping a new element into the Design View, the element
is placed at the appropriate point within the designer with the default name of
newElement. This can be changed in-place within the GUI editor or within the
Properties window. Double clicking on any element within the GUI window will
also cause the name to be editable in this fashion.
Creating attributes or XML Schema Components uses the same technique of selecting
the entity in the palette and dragging it into the Design view. If you inadvertently
attempt to drop a component into an invalid location, then NetBeans will display a
warning message and will not allow the item to be dropped.
Uses of Elements
Within the Design view is a useful tool to allow the uses of elements and complex
types within an XSD to be queried and displayed. The Find Usages tool is invoked
by right-clicking on a complex type or element within the design view and selecting
the Find Usages option. Invoking this option runs the tool and opens a new Output
panel showing the usages of the selected entity in the currently open projects
within NetBeans.
XML Schema Designer
[ 154 ]
The find usages window provides several tools to help navigate around the find
usages results and to change the views available.
Pages:
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145