Java-based Eclipse plug-in: language and text decoding prerequisites

Source: Internet
Author: User
Tags resource

Requirement background: Decoding of language and text in TVT test

When TVT (translation verification testing translation validation) tests, we need to constantly translate PII (programmed integrated, information program integration information) files into various languages Update to our resource file for our testing. For the management of resource files, we use the RTC most of the time. But the RTC itself, or the Eclipse platform itself, does not provide a way to show what the translated text will look like (which is in the form of native text), and a great deal of information is displayed in Unicode, which is bad for our reading and validation. So we must use a flexible and convenient tool to decode to achieve the display of various languages. We designed this on the Eclipse platform on the plug-in, we can easily achieve this need.

Technical background: Overview of Java-based Eclipse plugin development

One of the most fascinating areas of Eclipse is its plug-in architecture. The most basic concept in this system is the extension point (extension points), which is the interface provided by the plug-in. Each plug-in is developed at an existing extension point and may have its own extension points to continue development on this plugin. With Plug-ins, the core part of the Eclipse system is simpler to do when it starts, and only needs to start the base part of the platform and find the system's plug-ins. Most of the functionality implemented in Eclipse is done by the appropriate plug-ins. Eclipse has made a number of basic functions into a plug-in form. The entire Eclipse architecture is like a jigsaw puzzle that can be constantly added to the plugin, and plug-ins can be added to existing plug-ins. Here is a process introduction to the common development model, as shown in the following diagram:

Figure 1. The development mode of the process

Design idea and Code realization: Plug-in decoding design and code fragment

Plug-in engineering structure design idea and code realization:

1. Extend the Popumenu in Eclipse's texteditor to add menu options.

The menu option in this project is "Decode Unicode (Code point-> Characters)". This menu option is added as an extension to the editor TextEditor and is not visible to other editors, such as Xmleditor,javaeditor.

Open a text file in the project and right-click to see the added menu.

Figure 2. Added menu options

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.