Skip to content

Instantly share code, notes, and snippets.

View raquelbromao's full-sized avatar
🎯
Focusing

Raquel Barbosa Romão raquelbromao

🎯
Focusing
  • Grupo Boticário
  • Porto, Portugal
  • 16:06 (UTC +01:00)
View GitHub Profile
@raquelbromao
raquelbromao / EclipseJavaProjects.java
Created July 20, 2016 20:05 — forked from rylan/EclipseJavaProjects.java
Get a list of all java projects open in an Eclipse workspace
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.IWorkspaceRoot;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.jdt.core.IJavaProject;
import org.eclipse.jdt.core.JavaCore;
public class EclipseJavaProjects {
public static List<IJavaProject> getJavaProjects() {
List<IJavaProject> projectList = new LinkedList<IJavaProject>();