简体   繁体   English

在Eclipse中构建GWT UI

[英]Building a GWT UI in Eclipse

I want to try and build a UI using this GWT designer tool I read about. 我想尝试使用我所了解的GWT设计器工具来构建UI。 I have GWT tools installed, created a "Google -> Web Application Project" but I don't see any means to build a UI except via code. 我已经安装了GWT工具,创建了一个“ Google-> Web Application Project”,但是除通过代码外,我看不到任何构建UI的方法。 I tried installing the plugin http://dl.google.com/eclipse/inst/d2gwt/latest/3.7 but it fails ( Not sure if I need this or not ) 我尝试安装插件http://dl.google.com/eclipse/inst/d2gwt/latest/3.7,但失败了(不确定是否需要此插件)

This is the tutorial I was looking at ..... How do I get this UI design view? 这是我正在查看的教程.....如何获取此UI设计视图? https://developers.google.com/web-toolkit/tools/gwtdesigner/quick_start https://developers.google.com/web-toolkit/tools/gwtdesigner/quick_start

Another alternative to using the GWT Designer, if you don't want to use UiBinder, is 如果您不想使用UiBinder,则使用GWT Designer的另一种方法是

  1. In Eclipse, right-click view class in Package Explorer 在Eclipse中,在Package Explorer中右键单击视图类
  2. Open With 打开用
  3. GWT Designer GWT设计师
  4. Select the Designer tab at the bottom of the class window. 选择课程窗口底部的Designer标签。

在此处输入图片说明

First from new file dialogue ( Ctrl + N ) create a UiBinder file (xxx.ui.xml): 首先从新文件对话框( Ctrl + N )创建一个UiBinder文件(xxx.ui.xml):

在此处输入图片说明

Then select "Design" from left bottom of opened file in eclipse. 然后从Eclipse中打开的文件的左下方选择“设计”。

在此处输入图片说明

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

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