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

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

问题描述

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

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

我尝试通过添加

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

但我无法理解这个.

推荐答案

按照这些步骤,你一定会找到解决方案.

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

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

在 Eclipse 中,将 GWT 2.5 添加到 Project ->属性 ->谷歌 ->网络工具包 ->配置 SDKs 屏幕,然后选择您在上一步中添加到目录中的 2.5 版本.

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.

在 Eclipse 中右键单击项目,转到其运行配置窗口,然后创建一个新的Java 应用程序",将其命名为GWT Super Dev Mode".

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

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

While in the Run Configurations window, do the following:

  1. 根据您的项目名称设置项目,并在主类中键入 com.google.gwt.dev.codeserver.CodeServer

Classpath 选项卡 上,单击 user Entries,然后单击 Add External JARs,导航到 GWT 2.5 目录,然后找到 gwt-codeserver.jar,然后单击打开"(和其他外部库).

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).

在 Arguments 选项卡中,将 -src src/*SOURCE PATH OF YOUR PROJECT* 添加到 Program arguments,并将可选的 -Xmx1024m 添加到 VM 参数.

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

点击应用,然后继续运行项目.

Click Apply, then go ahead and Run the project.

  • 在这之后你会得到一个像 localhost:9876/

    转到该 URL,并添加书签,Dev Mode ONDev MOde Off 然后运行您的代码,删除后缀 gwt.codesvr=127.00.1:9997 在 URL 中.现在点击 Dev Mode ON...

    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天全站免登陆