List of usage examples for org.springframework.ide.eclipse.boot.launch.devtools BootDevtoolsClientLaunchConfigurationDelegate getRemoteUrl
public static String getRemoteUrl(ILaunchConfiguration conf)
From source file:org.springframework.ide.eclipse.boot.dash.cloudfoundry.DevtoolsUtil.java
private static ILaunchConfiguration findConfig(IProject project, String host) { String remoteUrl = remoteUrl(host); try {/*from w w w. j a v a2 s . co m*/ for (ILaunchConfiguration c : getLaunchManager().getLaunchConfigurations(getConfigurationType())) { if (project.equals(BootLaunchConfigurationDelegate.getProject(c)) && remoteUrl.equals(BootDevtoolsClientLaunchConfigurationDelegate.getRemoteUrl(c))) { return c; } } } catch (CoreException e) { BootActivator.log(e); } return null; }
From source file:org.springframework.ide.eclipse.boot.dash.cloudfoundry.DevtoolsUtil.java
private static List<ILaunch> findLaunches(IProject project, String host) { String remoteUrl = remoteUrl(host); List<ILaunch> launches = new ArrayList<ILaunch>(); for (ILaunch l : getLaunchManager().getLaunches()) { try {/*ww w .j av a 2 s .co m*/ ILaunchConfiguration c = l.getLaunchConfiguration(); if (c != null) { if (project.equals(BootLaunchConfigurationDelegate.getProject(c)) && remoteUrl.equals(BootDevtoolsClientLaunchConfigurationDelegate.getRemoteUrl(c))) { launches.add(l); } } } catch (Exception e) { BootActivator.log(e); } } return launches; }