简体   繁体   中英

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. 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. 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.

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. 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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