Original address: http://blog.csdn.net/longyuhome/article/details/8968093
This blog is an upgrade to the original blog "Create and use the STRUTS2 profile hint plugin in Eclipse"! There was no hint of spring, and I didn't know how to give Spring's config file, which I just learned a few days ago. After making this plugin, it works in any workspace, but now I don't know how to make it in MyEclipse. The plug-in is now only for Eclipse. The plug-in for MyEclipse is still under further study. Now the way to create the SSH configuration file tips plugin to share to everyone.
1, first prepare the common SSH configuration file constraint file, including the DTD file and schema file:
2. Then create a new plug-in project in Eclipse (Plug-in project):
3. In the "New Plug-in Project" dialog box that appears, enter the name of the project and select the version of Eclipse that the plugin corresponds to, select the now popular Eclipse3.7, and click the Next button to continue:
4, in the open page requires the user to enter some information required, set the ID of the plugin, as part of the beginning of the plug-in name, version and name, as well as the plug-in provider and running environment, as far as possible to choose the lower version of the environment, if the selected high may not run, and cancel the first check box selected:
5, in the open page will ask the user to select the plugin template, here without any template, so the check box to uncheck the state,:
6. Then create a folder in the project to place the DTD file and schema file for the SSH configuration file. Here I separate the configuration of the three frameworks so that they are stored in different folders for later management, the structure of the project:
7, in the normal situation will appear a set of pages, if not appear, then double-hit the manifest.mf file,:
8. After opening the page, select the "Dependencies" connection in the bid location, open the following page and select the Add button labeled in the diagram as shown:
9. In the "Plug-in Selection" dialog box that opens, select Add package to depend on "Org.eclipse.wst.xml.core" and click "OK" to return, as shown in:
10, the top of the setting is completed, the next to select the "Extensions" tab below, in this page select the "ADD" button:
11. On the "New Extension" page that opens, select the extension point "org.eclipse.wst.xml.core.catalogContributions" that you want to add, and click the "Finish" button to complete the return, as shown in:
12. Then right-click on the node and select the "catalogcontribution" option under "New" as shown in:
13, Next is very much, if you configure the DTD, right-click on the node to select the "Public" option under "new", if you configure the schema, select the "uri" option, create a new public node, the public is established, as shown in:
14, add the completion, is the most important settings, we want to configure each DTD information into the plug-in project, according to the settings, the basic information of the DTD to the settings, for each of the meaning, if you learn XML, you should have some understanding.
15, so that the XML DTD file is added, and then add the XML schema file, select the URI:
16, according to the settings to add multiple schema files, name write the xmlns attribute value + file name, a bit large,:
17, after the completion of the effect is as follows:
18, Next select the "Plugin.xml" tab below, you can see the corresponding XML file settings, as shown in:
19, next is to export the jar package settings, select the "Build" select the card, select the file to export, as shown in:
20. Next select the "Export" option from the File menu and select the location of the tag:
21. In the dialog box that opens, follow the settings to export:
22, after the completion of the desktop will be generated corresponding files,:
23, put this plugin into the Eclipse plug-in folder, you can, after restarting eclipse, you can see the successful configuration of the plugin.
The SSH configuration file hint plugin in Eclipse is: http://download.csdn.net/detail/long2010yu2010/5437909.
I hope everyone in the reprint, specify the source of the article.
Creating an SSH configuration file hint plugin in eclipse