use of org.eclipse.jdt.launching.IJavaLaunchConfigurationConstants.ID_REMOTE_JAVA_APPLICATION in project jbosstools-openshift by jbosstools.
the class DebugLaunchConfigs method getRemoteDebuggerLaunchConfiguration.
public ILaunchConfiguration getRemoteDebuggerLaunchConfiguration(IServer server) throws CoreException {
ILaunchConfigurationType launchConfigurationType = launchManager.getLaunchConfigurationType(ID_REMOTE_JAVA_APPLICATION);
ILaunchConfiguration[] launchConfigs = launchManager.getLaunchConfigurations(launchConfigurationType);
String name = getRemoteDebuggerLaunchConfigurationName(server);
Optional<ILaunchConfiguration> maybeLaunch = Stream.of(launchConfigs).filter(lc -> name.equals(lc.getName())).findFirst();
return maybeLaunch.orElse(null);
}
Aggregations