首页 > 移动平台 > 详细

Developing SWT applications using Eclipse

时间:2014-05-10 03:15:53      阅读:497      评论:0      收藏:0      [点我收藏+]

Developing SWT applications using Eclipse

While SWT is integrated as part of the Eclipse plug-in API, for standalone application development it is best to develop against the SWT standalone download. This document will help you get set up.

First, download the .zip of SWT for your platform from the SWT homepage.

The SWT .zip file can then be imported into your workspace. In the File menu, chooseImport and select the Existing Projects Into Workspace wizard. (In newer versions of eclipse, you can find Existing Projects Into Workspace in the General category).

bubuko.com,布布扣

Direct the wizard to the location where you downloaded the .zip file. This will create a project called org.eclipse.swt in your workspace.

bubuko.com,布布扣

Your Java projects can then add the SWT project as a dependency. Open the properties dialog of your Java project, and on the Java Build Path page, include the org.eclipse.swt project.

bubuko.com,布布扣

With the SWT project as a dependency, you can now benefit from Eclipse features such as the Javadoc view and code assist.

bubuko.com,布布扣

Now you can run any main class in your project by selecting the class and then selectingRun > Run As > Java Application

Developing SWT applications using Eclipse,布布扣,bubuko.com

Developing SWT applications using Eclipse

原文:http://www.cnblogs.com/lashwang/p/3719629.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!