for (IProject p : projects) {
if (p.exists() && p.hasNature(JavaCore.NATURE_ID)){
javaProjects.add(JavaUtils.getJavaProject(p));
}
}
ISourceLocator srcLocator = new JavaSourceLocator(
javaProjects.toArray(new IJavaProject[javaProjects.size()]), true);
ILaunch launch = new Launch(config, ILaunchManager.DEBUG_MODE, srcLocator);
IProgressMonitor monitor = null;
Map<String, String> args = new HashMap<String, String>();