Example usage for com.google.gwt.eclipse.oophm.model WebAppDebugModelEvent getElement

List of usage examples for com.google.gwt.eclipse.oophm.model WebAppDebugModelEvent getElement

Introduction

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

Prototype

public T getElement() 

Source Link

Document

Gets the element that changed.

Usage

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

License:Open Source License

@Override
public void launchConfigurationRestartWebServerStatusChanged(WebAppDebugModelEvent<LaunchConfiguration> arg0) {
    try {// w  ww  . ja  v  a 2 s .c  o  m
        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();
    }
}