GWT中的超级开发模式 [英] Super Dev mode in GWT

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

问题描述

我是新来的gwt。我不知道如何启动超级开发模式。我需要详细的解释一步一步。



我已经尝试通过添加



<$ p $编辑gwt.xml文件p> < add-linker name =xsiframe/>
< set-configuration-property name =devModeRedirectEnabledvalue =true/>
< set-property name =compiler.useSourceMapsvalue =true/>

但我无法得到这个想法。

解决方案

按照以下步骤,您一定会找到解决方案。


  1. 下载GWT 2.5 RC2,把它放在某个地方...我把它放在我的eclipse / plugins目录下。 链接


  2. 在Eclipse中,将GWT 2.5添加到 Project - >属性 - > Google - > Web工具包 - >配置SDK 屏幕,并选择您在上述步骤中添加到目录的2.5版本。


  3. 右键单击项目在Eclipse中,转到其运行配置窗口,并创建一个新的Java应用程序,命名为GWT超级开发模式。


  4. 在运行配置窗口中,执行以下操作:


    1. 根据项目名称设置项目,然后键入主类作为 com.google.gwt.dev.codeserver.CodeServer


    2. Classpath选项卡,单击用户条目,然后单击添加外部JAR ,导航到GWT 2.5目录,然后找到 gwt-codeserver.jar ,然后单击打开(和其他外部库)。


    3. 在参数选项卡中,添加 -src src / *您的项目的路径* 到程序参数,并向VM参数添加可选的 -Xmx1024m


    4. 单击应用,然后继续运行项目。



  5. 此后,您将获得一个URL , localhost:9876 /


  6. 转到该网址和书签,开发模式开 Dev MOde Off 然后运行您的代码,删除URL中的后缀 gwt.codesvr = 127.00.1:9997 。现在点击开发模式开启 ...


希望你得到解决方案...


I'm new to gwt. I don't know how to start up Super Dev mode. I need the detailed explanation step by step.

I have tried editing gwt.xml file by adding

<add-linker name="xsiframe"/>
  <set-configuration-property name="devModeRedirectEnabled" value="true"/>
  <set-property name="compiler.useSourceMaps" value="true" />

but i cant get the idea about this.

解决方案

Follow these steps, you 'll definitely find the solution.

  1. Download the GWT 2.5 RC2, and put it somewhere...I put it in my eclipse/plugins directory. link

  2. In Eclipse, add GWT 2.5 to the Project -> Properties -> Google -> Web Toolkit -> Configure SDKs screen, and select the 2.5 version that you have added to the directory in the step above.

  3. Right click on the project in Eclipse, go to its Run Configurations window, and create a new "Java Application", name it something like "GWT Super Dev Mode".

  4. While in the Run Configurations window, do the following:

    1. Set the project based on your project name, and type in the main class as com.google.gwt.dev.codeserver.CodeServer

    2. On the Classpath tab, click user Entries, then click Add External JARs, navigate to the GWT 2.5 directory, and find the gwt-codeserver.jar, and click "Open" (and other external libraries).

    3. In the Arguments tab, add -src src/ *SOURCE PATH OF YOUR PROJECT* to Program arguments, and add optional -Xmx1024m to VM arguments.

    4. Click Apply, then go ahead and Run the project.

  5. After this you will get a URL like, localhost:9876/

  6. Goto that URL, and bookmark, Dev Mode ON and Dev MOde Off then run your code, remove the suffix gwt.codesvr=127.00.1:9997 in the URL. Now click Dev Mode ON...

Hope you get the solution...

这篇关于GWT中的超级开发模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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