简体   繁体   English

Eclipse的Java SWT自动完成

[英]Java SWT autocomplete for Eclipse

I'm manipulating SWT library for Java with Eclipse. 我正在用Eclipse处理Java的SWT库。 It's cool however something is missing. 很酷,但是缺少一些东西。 Eclipse doesn't propose any thing concern SWT, Ctrl-Space seems losing its magic. Eclipse没有提出与SWT有关的任何内容,Ctrl-Space似乎失去了魔力。 I'd like to know if we can add Autocompletation for SWT and Do you know any cool site to learn SWT Thanks 我想知道我们是否可以为SWT添加自动完成功能,并且您知道学习SWT的任何不错的网站吗?

If you are creating a project that uses SWT, and you'd like to have all the SWT source and Javadoc available while you're coding, you probably want to use the PDE version of Eclipse . 如果您要创建一个使用SWT的项目,并且希望在编写代码时可以使用所有SWT源代码和Javadoc,那么您可能要使用PDE版本的Eclipse This version comes with all of the source and documentation for all of the SWT, JFace, and Eclipse RCP classes, and provides useful functionality if you are ultimately going to create an RCP application or plug-ins for one. 该版本随附了所有SWT,JFace和Eclipse RCP类的所有源代码和文档,并且如果您最终要为其中一个创建RCP应用程序或插件,则该版本提供了有用的功能。

No auto-completion? 没有自动完成? That's not supposed to happen. 那不应该发生的。 Does your project compile? 您的项目可以编译吗? Do you have the swt.jar in your build path? 您的构建路径中是否有swt.jar? Does the JDK version work with the SWT version? JDK版本可以与SWT版本一起使用吗?
Anyway if you want all the documentation, completion etc, if you're using IDE Eclipse, you need both swt.jar and swt.zip - the source. 无论如何,如果您需要所有文档,完成等信息,如果您使用的是IDE Eclipse,则同时需要源代码swt.jar和swt.zip。 Add swt.jar to build path, tie swt.zip for source and build the project. 添加swt.jar以构建路径,将swt.zip绑定为源并构建项目。 If still doesn't work try Refresh and build again. 如果仍然无法正常工作,请尝试刷新并重新构建。

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

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