使用Eclipse进行GWT开发 [英] GWT development with Eclipse

查看:296
本文介绍了使用Eclipse进行GWT开发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用eclipse开发GWT应用程序,我想知道是否有一种方法可以热交换我所做的客户端代码更改,而不必每次都进行完整的Google Compile.当前,当我修改代码时,我会执行Google编译,然后单击重新加载服务器"按钮,然后刷新浏览器以获取更改.这开始变得有些痛苦,因为当我可能只修改了UI字符串时,要花10到20秒的时间进行完整编译,所以想知道有没有一种更快的方法.

I am developing a GWT app using eclipse and I was wondering if there is a way to hot swap client code changes I make without having to do a full Google Compile each time. Currently when I modify my code, I do a Google compile and then click the Reload server button, then I refresh my browser to pick up the changes. This is starting to get a bit painful as it takes 10 - 20 sec to do a full compile when I may have only modified a UI string so was wondered is there a quicker way.

推荐答案

如果要查看客户端代码中的更改,请在浏览器中单击刷新"按钮.

If you want to see your changes in client code, hit the refresh button in your browser.

如果需要调试功能,请使用Debug As => Web Application.取决于浏览器,启动可能会慢一些(或很多).

If you need debug functions, use Debug As => Web Application. It may be a little (or a lot) slower to start depending on a browser.

如果不需要调试功能,请使用运行方式=> Web应用程序".它启动更快.您仍将在开发模式"和控制台"选项卡中看到所有错误.

If you don't need debug functionality, use Run As => Web Application. It starts faster. You will still see all errors in Development Mode and Console tabs.

如果更改服务器端代码,则必须使用Eclipse中专用 Development Mode 视图的专用按钮来重新加载Web服务器.

If you make changes to server-side code, you have to reload the web server, using the dedicated button of the dedicated Development Mode view in Eclipse.

除非插件指示您执行此操作,否则您无需重新编译.

You never need to recompile unless the plugin tells you to do it.

请参见 https://developers.google.com/web-toolkit /doc/latest/DevGuideCompilingAndDebugging#DevGuideDevMode

这篇关于使用Eclipse进行GWT开发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆