Skip to content

Instantly share code, notes, and snippets.

@gpike
gpike / designer.html
Created December 10, 2014 07:13
designer
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<polymer-element name="my-element">
@gpike
gpike / MvpExample.java
Created October 6, 2012 05:29
MvpExample.java
package com.gwtcasts.mvp.client;
import java.util.logging.Level;
import java.util.logging.Logger;
import com.google.gwt.activity.shared.ActivityManager;
import com.google.gwt.activity.shared.ActivityMapper;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.place.shared.Place;
@gpike
gpike / MvpModule.java
Created October 6, 2012 05:28
MvpModule.java
package com.gwtcasts.mvp.client;
import com.google.gwt.inject.client.AbstractGinModule;
import com.google.gwt.place.shared.PlaceController;
import com.google.inject.Inject;
import com.google.inject.Provider;
import com.google.inject.Singleton;
import com.google.web.bindery.event.shared.EventBus;
import com.google.web.bindery.event.shared.SimpleEventBus;
import com.gwtcasts.mvp.client.amazon.AmazonView;
@gpike
gpike / MvpGinjector.java
Created October 6, 2012 05:27
MvpGinjector.java
package com.gwtcasts.mvp.client;
import com.google.gwt.inject.client.GinModules;
import com.google.gwt.inject.client.Ginjector;
import com.google.gwt.place.shared.PlaceController;
import com.google.web.bindery.event.shared.EventBus;
import com.gwtcasts.mvp.client.amazon.AmazonView;
import com.gwtcasts.mvp.client.mississippi.MississippiView;
@GinModules({MvpModule.class})
@gpike
gpike / MvpExample.gwt.xml
Created October 6, 2012 05:25
MvpExample.gwt.xml
<?xml version="1.0" encoding="UTF-8"?>
<module rename-to='mvpexample'>
<!-- Inherit the core Web Toolkit stuff. -->
<inherits name='com.google.gwt.user.User'/>
<!-- Inherit the default GWT style sheet. You can change -->
<!-- the theme of your GWT application by uncommenting -->
<!-- any one of the following lines. -->
<inherits name='com.google.gwt.user.theme.clean.Clean'/>
<!-- <inherits name='com.google.gwt.user.theme.standard.Standard'/> -->
@gpike
gpike / build.gradle
Created October 6, 2012 05:18
build.gradle
compile 'com.google.gwt.inject:gin:1.5.0'
compile 'com.google.inject:guice:3.0-rc2'
compile 'com.google.inject.extensions:guice-assistedinject:3.0-rc2'
@gpike
gpike / build.gradle
Created September 14, 2012 16:03
Gradle build file for GWT
import java.awt.event.ItemEvent;
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'maven'
apply plugin: 'war'
task wrapper(type: Wrapper) { gradleVersion = '1.1' }
def spring_version = '3.1.1.RELEASE'