"Eclipse plug-in Development" based on WTP development of Custom JSP editor (iii)

Source: Internet
Author: User

WTP Structured Document

In the previous article we have built our own jspeditor based on WTP's Structuredtexteditor, which will introduce one of the most important data models for our editor: Istructureddocument (Org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocument), the next article will introduce another istructuredmodel. Look at the Istructureddocument type system as follows:

Above, we see the figure of Istructureddocument, which is the IDocument interface implementation in the JFace Text framework, The chosen jobsafestructureeddocument is the istructureddocument realization that we have to face.

PS: From the type name can be guessed out, basicstructureddocument should be a similar to the default adapter role, specifically? Go and see ^_^ yourself.

"Istructureddocument structure--composite"

So as long as we look at JSP and we know that other documents that are essentially a tree-like structure, how do we build this document? It is natural that the underlying XML is used to describe the JSP, and then the XML model is built, and our document implementation is established (note: The WTP XML model mentioned in the next article, "Istructuredmodel"). Since it is tree-like, the interface is generally written in composite mode. Let's take a look at a istructureddocument interface diagram:

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.