This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MyGinModule extends AbstractGinModule { | |
public void configure() { | |
//... | |
//OPTION 1 part 1 | |
bind(Scheduler.class).toProvider(MySchedulerProvider.class); | |
//... | |
} | |
//OPTION 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Turn on GWT logging --> | |
<set-property name="gwt.logging.logLevel" value="FINEST" /> | |
<set-property name="gwt.logging.enabled" value="TRUE" /> | |
<!-- ...except the popup handler, which is just about useless --> | |
<set-property name="gwt.logging.popupHandler" value="DISABLED" /> | |
<!-- optional: turn on gxt internal logging --> | |
<set-property name="gxt.logging.enabled" value="true" /> | |
<!-- emulated stack traces so you can see the full error --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface OptionsObj { | |
public List<String> getKeys(); | |
public void setKeys(List<String> keys); | |
@PropertyName("include_docs") | |
public boolean isIncludeDocs(); | |
@PropertyName("include_docs") | |
publiv void setIncludeDocs(boolean includeDocs); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Window.alert("about to add handlers"); | |
Window.addCloseHandler(new CloseHandler<Window>() { | |
@Override | |
public void onClose(CloseEvent<Window> event) { | |
Window.alert("close"); | |
} | |
}) ; | |
Window.addWindowClosingHandler(new ClosingHandler() { | |
@Override | |
public void onWindowClosing(ClosingEvent event) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class HowDoIInnerHtml implements EntryPoint { | |
@Override | |
public void onModuleLoad() { | |
Element body = Document.get().getBody(); | |
DivElement newDiv = Document.get().createDivElement(); | |
newDiv.setClassName("foo"); | |
newDiv.setInnerText("Text in the div"); | |
SpanElement newSpan = Document.get().createSpanElement(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Log { | |
/* | |
* type - is "INFO", "DEBUG", "ERROR" etc | |
* object - is an "id" of the person calling it. as a convention, I use 'this' unless it is a static method, then I pass in the class | |
* msg - the log message | |
*/ | |
public static void log(String type, Object object, String msg) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.google.gwt.emultest.java.util.stream; | |
import com.google.gwt.emultest.java.util.EmulTestBase; | |
import java.lang.Object; | |
import java.util.List; | |
import java.util.stream.Collectors; | |
import java.util.stream.Stream; | |
public class StreamTest extends EmulTestBase { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Testsuite: com.google.gwt.emultest.EmulJava8Suite | |
Tests run: 232, Failures: 0, Errors: 232, Skipped: 0, Time elapsed: 25.04 sec | |
------------- Standard Output --------------- | |
Logging initialized @1567ms | |
jetty-9.2.z-SNAPSHOT | |
Started c.g.g.j.@1d2adfbe{/,file:/Users/colin/workspace/gwt/build/out/user/test/web-htmlunit/www/,AVAILABLE}{/Users/colin/workspace/gwt/build/out/user/test/web-htmlunit/www} | |
Started ServerConnector@29b6a78b{HTTP/1.1}{0.0.0.0:51860} | |
Started @1947ms | |
Compiling module com.google.gwt.emultest.EmulSuite.JUnit | |
[ERROR] Unexpected internal compiler error |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<artifactId>incubator</artifactId> | |
<groupId>aleph.engineering</groupId> | |
<name>Aleph Engineering InCubator Parent</name> | |
<version>0.0.1-SNAPSHOT</version> | |
<modelVersion>4.0.0</modelVersion> | |
<packaging>pom</packaging> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<plugin> | |
<groupId>net.ltgt.gwt.maven</groupId> | |
<artifactId>gwt-maven-plugin</artifactId> | |
<version>1.0-rc-7</version> | |
<extensions>true</extensions> | |
<configuration> | |
... | |
<!-- Disable assertions to avoid incorrect compiler errors, but enable test assertions anyway --> | |
<enableAssertions>false</enableAssertions> | |
<testArgs> |