2014-10-03 80 views
0

当使用MGWT可以使用SuperDevMode很容易,因为它是在这里解释:http://blog.daniel-kurka.de/2012/07/mgwt-super-dev-mode.htmlMGWT/GWT-PhoneGap:MGWT如何在GWT 2.7上使用超级开发模式?

gwt.xml配置IST:

<add-linker name="xsiframe"/> 
<set-configuration-property name="devModeRedirectEnabled" value="true"/> 
<set-configuration-property name="mgwt.superdevmode" value="on" /> 

<set-configuration-property name="mgwt.superdevmode_host" value="http://<yourhost>:<port>" /> 

在入口函数设置:

SuperDevModeUtil.showDevMode( );

在Eclipse中创建一个Java运行配置:

enter image description here

enter image description here

enter image description here

enter image description here

这可以完美兼容GWT 2.6.1但GWT 2.7时你点击超级开发模式,并编译compi ler没有完成。

如何让SuperDevMode与MGWT和GWT 2.7一起运行?

编辑:如何让SuperDevMode在GWT-PhoneGap环境中运行?

回答

1

它变得更容易了。你需要用GWT 2.7做的唯一事情就是在你的Web Application RunConfiguration中添加参数 -superDevMode,就是这样。 您不再需要编译按钮,因为重新加载浏览器时会自动触发编译。关于xsiframe,这是GWT 2.7中的默认链接器。您不需要执行任何您发布的步骤,只需添加参数-superDevMode即可。

+0

我管理它在桌面浏览器上运行,但它是如何在GWT-PhoneGap环境中的移动设备上完成的?主机在不同的计算机上,我必须使用mgwt.superdevmode_host标志吗?谢谢你的帮助。 – confile 2014-10-03 10:38:25

+1

解决此问题后,它也将在PhoneGap环境中工作:https://code.google.com/p/google-web-toolkit/issues/detail?id = 8938 我还将添加一个小JavaScript文件gwt-phonegap将处理重新编译。 – 2014-10-08 05:34:41

+0

这会成为GWT 2.7的一部分吗? – confile 2014-10-08 08:16:43

相关问题