use of com.liferay.ide.core.IWorkspaceProject in project liferay-ide by liferay.
the class PortalSourcePathComputerDelegate method computeSourceContainers.
@Override
public ISourceContainer[] computeSourceContainers(ILaunchConfiguration configuration, IProgressMonitor monitor) throws CoreException {
final List<ISourceContainer> sourceContainers = new ArrayList<ISourceContainer>();
final IServer server = ServerUtil.getServer(configuration);
IWorkspaceProject workspaceProject = LiferayCore.create(IWorkspaceProject.class, server);
if (workspaceProject != null) {
addSourceContainers(configuration, monitor, sourceContainers, workspaceProject.getProject());
}
Stream.of(server.getModules()).map(module -> LiferayCore.create(module.getProject())).filter(liferayProject -> liferayProject != null).forEach(liferayProject -> addSourceContainers(configuration, monitor, sourceContainers, liferayProject.getProject()));
return sourceContainers.toArray(new ISourceContainer[0]);
}
Aggregations