2014-10-03 85 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

相關問題