Eclipse插件 - XML编辑器 [英] Eclipse Plugin - XML Editor

查看:217
本文介绍了Eclipse插件 - XML编辑器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遵循了本教程:

Eclipse插件

本教程解释了为什么创建一个HTML编辑器。

This tutorial explain why create a HTML Editor.

我需要一个文本编辑器,只是为了自动突出显示某些单词,反正我认为这个tuto应该是一个很好的开始。

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

事情是,我创建了插件项目,我唯一改变的是扩展名 pat 而不是 html,htm 。之后,我创建了一个.pat文件,但是eclipse没有用我的插件打开它,我的文本编辑器不在编辑器的列表中。

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.

任何建议?

如果您需要更多信息,请通知我。

Let me know if you need more information.

推荐答案

我的猜测是你刚刚创建了插件,但是没有在当前的Eclipse实例中运行它。这可以通过打开视图插件注册表来验证。这将显示所有插件的列表,看看您创建的插件是否在该列表中。

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.

如果您单击Eclipse中的运行按钮,您将打开运行配置对话框。在其中一个选项卡中,您可以选择哪些插件可用。确保您的插件被选中。这将启动一个将运行您的插件的新Eclipse实例。

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.

要使您的插件成为普通Eclipse安装的一部分,您需要将其导出到jar并将该jar复制到dropins目录中。

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.

这篇关于Eclipse插件 - XML编辑器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆