Eclipse Plugin - XML Editor

江枫思渺然 提交于 2019-12-24 19:18:28

问题


I've followed this tutorial:

Eclipse Plugin

This tutorial explain why create a HTML Editor.

I need a Text editor,just for auto-highlight some words, anyway I thought this tuto should be a good one to start with.

The thing is that I created the Plugin project and the only thing that I changed it was the extension "pat" instead "html, htm", just that. After that I created a .pat file, but eclipse doesn't open it with my plugin, and my text editor is not in the editor's list.

Any suggestion??

Let me know if you need more information.


回答1:


My guess is that you have just created the plugin, but aren't running it in your current Eclipse instance. That can be verified by opening the view "Plugin registry". That will show a list of all plugins, see if the plugin you have created is in that list.

If you click on the run button in Eclipse you will open a run configuration dialog. In one of the tabs, you get to choose what plugins should be available. Make sure your plug-in is selected. This will start up a new Eclipse instance that will run your plugin.

To make your plugin be a part of your ordinary Eclipse installation, you will need to export it to a jar and copy that jar to the dropins catalog.



来源:https://stackoverflow.com/questions/7520104/eclipse-plugin-xml-editor

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!