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
Icon attTypeENTITIES.gif. attTypeENTITIES.gif This icon will be used with code completion. IconStore.java
Icon attTypeENTITY.gif. attTypeENTITY.gif This icon will be used with code completion. IconStore.java
Icon attTypeENTITY1.gif. attTypeENTITY1.gif This icon will be used with code completion.  
Icon attTypeEn.gif. attTypeEn.gif This icon will be used with code completion. IconStore.java
Icon attTypeID.gif. attTypeID.gif This icon will be used with code completion. IconStore.java
Icon attTypeIDREF.gif. attTypeIDREF.gif This icon will be used with code completion. IconStore.java
Icon attTypeIDREFS.gif. attTypeIDREFS.gif This icon will be used with code completion. IconStore.java
Icon attTypeIDREFS1.gif. attTypeIDREFS1.gif This icon will be used with code completion.  
Icon attTypeNMTOKEN.gif. attTypeNMTOKEN.gif This icon will be used with code completion. IconStore.java
Icon attTypeNMTOKENS.gif. attTypeNMTOKENS.gif This icon will be used with code completion. IconStore.java
Icon attTypeNOTATION.gif. attTypeNOTATION.gif This icon will be used with code completion. IconStore.java
Icon attlist.gif. attlist.gif This icon will be used with code completion.  
Icon emptyTag.gif. emptyTag.gif This icon will be used with code completion. IconStore.java
Icon endTag.gif. endTag.gif This icon will be used with code completion. IconStore.java
Icon error.gif. error.gif This icon will be used with code completion. CSSTokenContext.java
DTDTokenContext.java
XMLDefaultTokenContext.java
XMLTokenContext.java
Icon spacer.gif. spacer.gif This icon will be used with code completion.  
Icon spacer32.gif. spacer32.gif This icon will be used with code completion.  
Icon spacer_8.gif. spacer_8.gif This icon will be used with code completion. IconStore.java
Icon typeAny.gif. typeAny.gif This icon will be used with code completion.  
Icon typeCDATA.gif. typeCDATA.gif This icon will be used with code completion. IconStore.java
Icon typeChildren.gif. typeChildren.gif This icon will be used with code completion. IconStore.java
Icon typeEmpty.gif. typeEmpty.gif This icon will be used with code completion.  
Icon typeMixed.gif. typeMixed.gif This icon will be used with code completion. IconStore.java
Icon typePCDATA.gif. typePCDATA.gif This icon will be used with code completion. IconStore.java
Icon xmlEditorOptions.gif. 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/

Project Features

About this Project

XML was started in November 2009, is owned by dstrupl, and has 56 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20160708.bf2ac18). © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close