Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/gwt/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在Eclipse中使用GWTBootstrap_Eclipse_Gwt_Twitter Bootstrap_Gwt Bootstrap - Fatal编程技术网

如何在Eclipse中使用GWTBootstrap

如何在Eclipse中使用GWTBootstrap,eclipse,gwt,twitter-bootstrap,gwt-bootstrap,Eclipse,Gwt,Twitter Bootstrap,Gwt Bootstrap,我从下载了GWT zip的Twitter引导程序。我是GWT新手,还没有找到关于如何在Eclipse中使用库的适当文档或教程。因为它是作为maven项目创建的,所以需要使用m2eclipse插件。您可以从在eclipse外部克隆它开始,然后将其作为现有的maven项目导入eclipsem2eclipse插件将帮助您实现这一点。对于确切的步骤或教程,您可以通过google进行搜索。如果您使用的是build,请在eclipse中进行配置,然后进行详细说明 这些步骤包括: 步骤1-A:在pom.xml

我从下载了GWT zip的Twitter引导程序。我是GWT新手,还没有找到关于如何在Eclipse中使用库的适当文档或教程。

因为它是作为
maven
项目创建的,所以需要使用
m2eclipse
插件。您可以从在eclipse外部克隆它开始,然后将其作为现有的maven项目导入eclipse
m2eclipse
插件将帮助您实现这一点。对于确切的步骤或教程,您可以通过google进行搜索。

如果您使用的是build,请在eclipse中进行配置,然后进行详细说明

这些步骤包括: 步骤1-A:
pom.xml

 <!-- gwt-bootstrap dependencies start -->
<dependency>
<groupId>com.github.gwtbootstrap</groupId>
<artifactId>gwt-bootstrap</artifactId>
<version>2.1.0.0-SNAPSHOT</version>
</dependency>
<!-- gwt-bootstrap dependencies end -->
 <repository>
 <id>sonatype</id>
 <url>http://oss.sonatype.org/content/repositories/snapshots</url>
 <snapshots><enabled>true</enabled></snapshots>
 <releases><enabled>false</enabled></releases>
 </repository>
步骤2:配置模块-继承GWT引导程序小部件库

<!--  inherit the GWT-Bootstrap widget library -->
<inherits name="com.github.gwtbootstrap.Bootstrap"/>
<!--  end of inherit the GWT-Bootstrap widget library -->

步骤3:在UiBinder中使用

<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
xmlns:g="urn:import:com.google.gwt.user.client.ui"
xmlns:w="urn:import:com.zcode.t.client.ui.widget" 
xmlns:c="urn:import:com.google.gwt.user.cellview.client"
xmlns:gwt="urn:import:com.google.gwt.user.cellview.client"
xmlns:b="urn:import:com.github.gwtbootstrap.client.ui"
>
<g:HTMLPanel>
<b:Button ui:field="saveBtn"/>
 </g:HTMLPanel>
</ui:UiBinder> 

如果不想使用maven,可以按照以下步骤操作:

  • 从下载库的一个版本

  • 将.jar文件添加到Eclipse项目的构建路径中

  • 添加到
    Module.gwt.xml
    文件:


  • 现在您可以只使用Java代码或UIBinder使用
    gwtbootstrap

    谢谢,但我到处都听到“maven”和“creating a jar out it”,希望我能找到一个更简单的方法或一步一步的方法。