Example usage for com.google.gwt.eclipse.oophm.model LaunchConfiguration getLaunch

List of usage examples for com.google.gwt.eclipse.oophm.model LaunchConfiguration getLaunch

Introduction

In this page you can find the example usage for com.google.gwt.eclipse.oophm.model LaunchConfiguration getLaunch.

Prototype

public ILaunch getLaunch() 

Source Link

Usage

From source file:org.jboss.tools.maven.gwt.MavenGwtDebugModeListener.java

License:Open Source License

@Override
public void launchConfigurationRestartWebServerStatusChanged(WebAppDebugModelEvent<LaunchConfiguration> arg0) {
    try {/*from  w w  w .j ava  2 s  .c om*/
        LaunchConfiguration lc = arg0.getElement();
        IProject project = LaunchConfigurationUtilities.getProject(lc.getLaunch().getLaunchConfiguration());
        if (project.hasNature(IMavenConstants.NATURE_ID)) {
            project.refreshLocal(IResource.DEPTH_INFINITE, null);
        }
    } catch (CoreException e) {
        e.printStackTrace();
    }
}