Skip to content
This repository has been archived by the owner on Oct 4, 2022. It is now read-only.
/ SuperDevModeUI Public archive

GWT wrapper for the super dev mode compilation invoker, with some of my own sugar!

Notifications You must be signed in to change notification settings

BenDol/SuperDevModeUI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SuperDevModeUI

GWT wrapper for the super dev mode compilation invoker, with some of my own sugar! Since I use Tomcat the SuperDevMode doesn't recompile when I refresh the page, so I made it attach a key down handler to the RootPanel to auto invoke a compile when pressing F5. I also added a ghost button that will sit in the top left corner of the page that can invoke a recompile.

How to use

Add the nz.co.doltech.gwt:sdm-compiler dependency to your project.

With maven:

<dependency>
    <groupId>nz.co.doltech.gwt</groupId>
    <artifactId>sdm-compiler</artifactId>
    <version>1.0.1</version>
</dependency>

Next you need to add the GWT module like so:

<inherits name="nz.co.doltech.gwt.SuperDevMode"/>

Now you can implement the SuperDevModeUI or simply manipulate the SuperDevCompiler.

SuperDevCompiler.get().setInjectedCallback(new InjectedCallback() {
    @Override
    public void onInjected() {
        SuperDevModeUI superDevModeUI = GWT.create(SuperDevModeUI.class);
        RootPanel.get().add(superDevModeUI);
    }
});

This will wait to ensure dev mode is available before adding the SuperDevModeUI.

You can also hide the UI components if you simply want the key binding, like so:

SuperDevModeUI superDevModeUI = GWT.create(SuperDevModeUI.class);
superDevModeUI.disableUI();

Example One

Example Two

Report any issues and happy hacking!

About

GWT wrapper for the super dev mode compilation invoker, with some of my own sugar!

Resources

Stars

Watchers

Forks

Packages

No packages published