Example usage for com.google.gwt.eclipse.core.runtime GwtCapabilityChecker GwtCapabilityChecker

List of usage examples for com.google.gwt.eclipse.core.runtime GwtCapabilityChecker GwtCapabilityChecker

Introduction

In this page you can find the example usage for com.google.gwt.eclipse.core.runtime GwtCapabilityChecker GwtCapabilityChecker.

Prototype

public GwtCapabilityChecker(GWTRuntime sdk) 

Source Link

Usage

From source file:com.myeclipsedev.gdt.eclipse.ui.internal.wizard.WebComponentExportPage.java

License:Open Source License

private boolean areMultipleModulesAllowed() {
    try {/*from w w  w  .j a v a 2  s  .  c o m*/
        IJavaProject javaProject = JavaCore.create(project);
        if (javaProject != null) {
            GWTRuntime sdk = GWTRuntime.findSdkFor(javaProject);
            if (sdk != null) {
                return new GwtCapabilityChecker(sdk).doesCompilerAllowMultipleModules();
            }
        }
    } catch (JavaModelException e) {
        GWTPluginLog.logError(e);
    }
    return false;
}