Example usage for com.google.gwt.eclipse.core.launch.processors SuperDevModeArgumentProcessor SuperDevModeArgumentProcessor

List of usage examples for com.google.gwt.eclipse.core.launch.processors SuperDevModeArgumentProcessor SuperDevModeArgumentProcessor

Introduction

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

Prototype

SuperDevModeArgumentProcessor

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 .jav a2s.  c o  m*/
 */
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;
}