简体   繁体   English

将GWT 1.7项目转换为2.0,以运行开发模式

[英]Converting a GWT 1.7 project to 2.0, getting development mode to run

I'm trying to get a GWT 1.7 project to run using the new development mode. 我正在尝试使用新的开发模式运行GWT 1.7项目。 Pointing Safari (with the Development Mode plugin installed) to the given URL just shows the latest compiled version. 将Safari(安装了开发模式插件)指向给定的URL仅显示最新的编译版本。 No changes are reflected when I refresh. 刷新时不会反映任何更改。

A clean 'hello world' project brings up the development mode which works how the old hosted mode used to - only much better! 一个干净的“ hello world”项目将调出开发模式,该模式可以像以前的旧托管模式一样工作-只会好得多!

Is there a setting I need to change to enable development mode for this old project? 我需要更改设置以启用此旧项目的开发模式吗?

Are you pointing to the correct url. 您是否指向正确的网址。 it should be something like: 它应该是这样的:

http://localhost:8888/<your path>?gwt.codesvr=<your local ip>:9997

This is for the GWT 2.0 released version. 这是针对GWT 2.0发行的版本。 without the code after the question mark it points to the compiled version. 问号后没有代码,它指向已编译的版本。

If you are using eclipse with the google plugin you need to "point" the plugin to the new version. 如果您将eclipse与Google插件一起使用,则需要将插件“指向”新版本。

Go to the projects properties(right click onthe project) in the dialog that has opened you open the Google folder in the tree on the left and select Google Web toolkit, now you should be able to select version 2.0 in the "use specific sdk" list if the 2.0 version is not in the list add it by clicking on "configure sdk..." 在打开的对话框中转到项目属性(右键单击该项目),然后在左侧的树中打开Goog​​le文件夹,然后选择Google Web工具箱,现在您应该可以在“使用特定的SDK”中选择2.0版了如果列表中未包含2.0版本,请单击“配置sdk ...”将其添加

I see a similar problem - my plugin works, but doesn't display URL I should paste into browser - it's simply not there like it's should be according to this picture: 我看到了一个类似的问题-我的插件可以正常工作,但是没有显示应该粘贴到浏览器中的URL-根本就不存在,因为它应该按照这张图片显示:

替代文字

However, when I manually reconstruct URL (Hilbrand, thanks for the hint how URL should look like) then development mode starts working as a charm. 但是,当我手动重建URL时(Hilbrand,感谢您对URL外观的提示),开发模式开始发挥作用。

I'd still like to know why my URL doesn't show though - any ideas? 我仍然想知道为什么我的网址没有显示-有什么想法吗?

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

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