简体   繁体   English

MGWT / GWT-PhoneGap:MGWT如何在GWT 2.7的Super Dev Mode下工作?

[英]MGWT/ GWT-PhoneGap: How does MGWT Work with Super Dev Mode on GWT 2.7?

When using MGWT you can use SuperDevMode very easy as it was explained here: http://blog.daniel-kurka.de/2012/07/mgwt-super-dev-mode.html 使用MGWT时,您可以非常容易地使用SuperDevMode,如此处所述: http ://blog.daniel-kurka.de/2012/07/mgwt-super-dev-mode.html

gwt.xml config ist: gwt.xml配置文件:

<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>" />

In the entrypoint function you set: 在入口点函数中设置:

SuperDevModeUtil.showDevMode(); SuperDevModeUtil.showDevMode();

In eclipse you create a Java Run Configuration: 在eclipse中,您创建一个Java运行配置:

在此处输入图片说明

在此处输入图片说明

在此处输入图片说明

在此处输入图片说明

This works perfect with GWT 2.6.1 but with GWT 2.7 when you tap super dev mode on and hit compile the compiler does not finish. 这在GWT 2.6.1上非常有效,但在GWT 2.7上点击超级开发模式并点击编译时,编译器将无法完成。

How can I make SuperDevMode Running with MGWT and GWT 2.7? 如何使SuperDevMode与MGWT和GWT 2.7一起运行?

Edit: How can I make SuperDevMode running in a GWT-PhoneGap environment? 编辑:如何使SuperDevMode在GWT-PhoneGap环境中运行?

It has become much easier. 它变得容易得多。 The only thing you need to do with GWT 2.7 is to add the argument -superDevMode in your Web Application RunConfiguration, that's it. GWT 2.7要做的唯一一件事就是在Web应用程序RunConfiguration中添加参数-superDevMode就是这样。 You don't need the compile button anymore because the compile is automatically triggered when reloading the browser. 您不再需要编译按钮,因为重新加载浏览器时会自动触发编译。 Regarding the xsiframe this is the default linker in GWT 2.7. 关于xsiframe,这是GWT 2.7中的默认链接器。 You don`t need to do any steps you posted anymore, only add the argument -superDevMode. 您无需再执行发布的任何步骤,只需添加参数-superDevMode。

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

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