use of org.erlide.backend.debug.model.ErlangOtpSourceContainer in project erlide_eclipse by erlang.
the class ErlangSourcePathComputerDelegate method computeSourceContainers.
@Override
public ISourceContainer[] computeSourceContainers(final ILaunchConfiguration configuration, final IProgressMonitor monitor) throws CoreException {
final List<ISourceContainer> containers = new ArrayList<>();
final IProject[] projects = LaunchUtils.getErlangLaunchConfigurationProjects(configuration);
for (final IProject p : projects) {
containers.add(new ProjectSourceContainer(p, false));
}
if (containers.isEmpty()) {
containers.add(new WorkspaceSourceContainer());
}
final String runtimeName = configuration.getAttribute(ErlRuntimeAttributes.RUNTIME_NAME, "").trim();
final RuntimeInfo info = BackendCore.getRuntimeInfoCatalog().getRuntime(runtimeName);
containers.add(new ErlangOtpSourceContainer(new Path(info.getOtpHome())));
return containers.toArray(new ISourceContainer[containers.size()]);
}
Aggregations