简体   繁体   English

Eclipse 3.7插件编辑器模板并没有立即可用

[英]Eclipse 3.7 plugin editor template does not run out of the box

I am trying to build a simple custom editor in the Eclipse environment. 我正在尝试在Eclipse环境中构建一个简单的定制编辑器。 To get started, I created a new plugin project with the "Plug-in with an editor" template. 首先,我使用“使用编辑器插入”模板创建了一个新的插件项目。

在此处输入图片说明

The only thing I changed was the target extension, to .stt files. 我唯一更改的是目标扩展名,即.stt文件。 I ran the app and tried to open a text file containing basic lines of text and this is what I get: 我运行了该应用程序,并尝试打开一个包含基本文本行的文本文件,这是我得到的:

在此处输入图片说明

There is nothing in the Error Log as you can see. 如您所见,错误日志中没有任何内容。 There are no errors in the Console in the development environment. 开发环境中的控制台中没有错误。 How am I supposed to determine what "Error" means? 我应该如何确定“错误”的含义?

EDIT: Same problem on a fresh Eclipse 3.6 install too. 编辑:在全新的Eclipse 3.6上也有同样的问题。

Andrew's comment above got me on the right track... The solution to the problem lies with how Eclipse treats opening files external to the workspace differently than files inside projects in the workspace. Andrew在上面的评论使我走上了正确的道路……问题的解决方案在于Eclipse如何对待工作区外部的打开文件而不是工作区中的项目内部文件。 Who would have thought? 谁曾想到?

The complete answer to how to code your editor is found here: 有关如何编写编辑器代码的完整答案,请参见以下网址:

Eclipse editor plugin: "ERROR" when opening file outside project Eclipse编辑器插件:在项目外部打开文件时出现“错误”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM