Example usage for com.google.gwt.dev.codeserver JobEvent getInputModuleName

List of usage examples for com.google.gwt.dev.codeserver JobEvent getInputModuleName

Introduction

In this page you can find the example usage for com.google.gwt.dev.codeserver JobEvent getInputModuleName.

Prototype

public String getInputModuleName() 

Source Link

Document

The module name sent to the GWT compiler to start the compile.

Usage

From source file:org.cruxframework.crux.tools.codeserver.CodeServerRecompileListener.java

License:Apache License

@Override
public void onJobChange(JobEvent event) {
    String moduleName = event.getInputModuleName();
    switch (event.getStatus()) {
    case COMPILING:
        this.compileDir.put(moduleName, event.getCompileDir());
        if (compilationCallback != null) {
            compilationCallback.onCompilationStart(moduleName);
        }/*  w  w  w. j  av  a2  s .  c o m*/
        break;
    case ERROR:
        if (compilationCallback != null) {
            compilationCallback.onCompilationEnd(moduleName, false);
        }
        break;
    case GONE:
        break;
    case SERVING:
        updateWebDir(moduleName);
        if (compilationCallback != null) {
            compilationCallback.onCompilationEnd(moduleName, true);
        }
        break;
    case WAITING:
        break;

    default:
        break;
    }
}