Addin plug-in system

Source: Internet
Author: User
This system is formed by the combination of XML and related classes.
The XML file is sharpdevelopcore. Addin (this file is unique once searched)
Related classes are: Core/addins

Logically, sharpdevelop has a plug-in tree addintree, which has many nodes addintreenode. The XML file sharpdevelopcore. Addin is used externally.

Each addin plugin consists of codon and conditional. For example:

<Addin name = "sharpdevelop core"
Author = "Mike"
Copyright = "GPL"
Url = "http://www.icsharpcode.net"
Description = "NCVS core module"
Version = "1.0.0">

<Runtime>
<Import Assembly = "sharpdevelop. Base. dll"/>
<Import Assembly = "csharpparser. dll"/>
</Runtime>

<Extension path = "/sharpdevelop/workbench/ambiences">
<Class id = "Net"
Class = "icsharpcode. sharpdevelop. Services. netambience"/>
<Class id = "CSHARP"
Class = "icsharpcode. sharpdevelop. Services. csharpambience"/>
<Class id = "VB. NET"
Class = "icsharpcode. sharpdevelop. Services. vbambience"/>
</Extension>
</Addin>

Each extension node is a codon object, abstracted as icodon in the program:

The attribute of icodon is the entity ing in XML. The abstractcodon abstract class provides the attribute implementation (the bucket item () method is implemented at the lowest layer)

The bucket item () method is very important and the signature is:
Public override object builditem (Object owner, arraylist subitems, conditionfailedaction action)

Codon generation is completed by codonbuilder and codonfactory.

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.