简体   繁体   中英

.pde files as Java class files in Eclipse?

I set up Eclipse as a Processing IDE according to this article: http://processing.org/learning/eclipse/ I've also associated .pde files with the Java editor. However, .pde files are not being treated as class files, even if they are in the Java build path, and of the form:

class MyNewSketch extends SomeClass {
...
}

How do I get Eclipse's Java IDE to see .pde files as .java files?

Please remove the file association for PDE files which you created. Instead expand the Text/Java Source File node on the General -> Content Types preference page. Add your *.pde content type to the already existing *.java (locked) content type and it works fine.

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