Example usage for com.google.gwt.eclipse.core.launch GWTLaunchConfigurationWorkingCopy setSuperDevModeEnabled

List of usage examples for com.google.gwt.eclipse.core.launch GWTLaunchConfigurationWorkingCopy setSuperDevModeEnabled

Introduction

In this page you can find the example usage for com.google.gwt.eclipse.core.launch GWTLaunchConfigurationWorkingCopy setSuperDevModeEnabled.

Prototype

public static void setSuperDevModeEnabled(ILaunchConfigurationWorkingCopy configuration, boolean enabled) 

Source Link

Usage

From source file:com.google.gdt.eclipse.suite.launch.ui.shortcuts.WebAppLaunchShortcut.java

License:Open Source License

/**
 * Turn on GWT Super Dev Mode in the case that dev mode was run first. This depends on which shortcut was used.
 *
 * @param isGwtSuperDevModeEnabled//from ww w  . j av a  2  s . com
 */
private ILaunchConfiguration turnOnOrOffSuperDevMode(ILaunchConfiguration config,
        boolean isGwtSuperDevModeEnabled) throws CoreException {
    ILaunchConfigurationWorkingCopy workingCopy = config.getWorkingCopy();

    GWTLaunchConfigurationWorkingCopy.setSuperDevModeEnabled(workingCopy, isGwtSuperDevModeEnabled);
    SuperDevModeArgumentProcessor sdmArgsProcessor = new SuperDevModeArgumentProcessor();
    LaunchConfigurationProcessorUtilities.updateViaProcessor(sdmArgsProcessor, workingCopy);
    workingCopy.doSave();

    return workingCopy;
}