XML Text Editor
This is the home page for the XML Text Editor module.
Introduction
The module provides text editing capabilities. It adds syntax coloring, abbreviation support and simple indentation engine into text editing of XML and DTD documents.
Icons
This section contains a list of the icons used in this module.
Icon | File | Description | Usage |
![]() |
attTypeENTITIES.gif | This icon will be used with code completion. | IconStore.java |
![]() |
attTypeENTITY.gif | This icon will be used with code completion. | IconStore.java |
![]() |
attTypeENTITY1.gif | This icon will be used with code completion. | |
![]() |
attTypeEn.gif | This icon will be used with code completion. | IconStore.java |
![]() |
attTypeID.gif | This icon will be used with code completion. | IconStore.java |
![]() |
attTypeIDREF.gif | This icon will be used with code completion. | IconStore.java |
![]() |
attTypeIDREFS.gif | This icon will be used with code completion. | IconStore.java |
![]() |
attTypeIDREFS1.gif | This icon will be used with code completion. | |
![]() |
attTypeNMTOKEN.gif | This icon will be used with code completion. | IconStore.java |
![]() |
attTypeNMTOKENS.gif | This icon will be used with code completion. | IconStore.java |
![]() |
attTypeNOTATION.gif | This icon will be used with code completion. | IconStore.java |
![]() |
attlist.gif | This icon will be used with code completion. | |
![]() |
emptyTag.gif | This icon will be used with code completion. | IconStore.java |
![]() |
endTag.gif | This icon will be used with code completion. | IconStore.java |
![]() |
error.gif | This icon will be used with code completion. | CSSTokenContext.java DTDTokenContext.java XMLDefaultTokenContext.java XMLTokenContext.java |
![]() |
spacer.gif | This icon will be used with code completion. | |
![]() |
spacer32.gif | This icon will be used with code completion. | |
![]() |
spacer_8.gif | This icon will be used with code completion. | IconStore.java |
![]() |
typeAny.gif | This icon will be used with code completion. | |
![]() |
typeCDATA.gif | This icon will be used with code completion. | IconStore.java |
![]() |
typeChildren.gif | This icon will be used with code completion. | IconStore.java |
![]() |
typeEmpty.gif | This icon will be used with code completion. | |
![]() |
typeMixed.gif | This icon will be used with code completion. | IconStore.java |
![]() |
typePCDATA.gif | This icon will be used with code completion. | IconStore.java |
![]() |
xmlEditorOptions.gif | This icon represents XML Text Editor Options. | XMLOptionsBeanInfo.java |
EditorKit Implementation
The text editor module registers new JEditorKit
for JEditorPane
.
The kit is registered under text/xml content type key. Note that NetBeans
editor uses this kit also for all */*+xml types if no particular registration
exists. An example code that shows the kit implementation.
Note that kit implementation itself is private but it honours some SPI providers. These experimental SPIs are located in xml/core module. Notably the org.netbeans.modules.xml.spi.model SPI allows to implement custom code completion.
Links
Code Completion Model
Code completion UML model
Source Code
http://xml.netbeans.org/source/browse/xml/text-edit/