public class WorkingSets extends Object
Constructor and Description |
---|
WorkingSets() |
Modifier and Type | Method and Description |
---|---|
static void |
addToWorkingSet(org.eclipse.core.resources.IProject[] projects,
String workingSetName)
Adds given projects to workbench working set with the given name.
|
static void |
addToWorkingSets(Collection<org.eclipse.core.resources.IProject> projects,
List<org.eclipse.ui.IWorkingSet> workingSets)
Adds given projects to given workbench working sets.
|
static void |
addToWorkingSets(org.eclipse.core.resources.IProject[] projects,
List<org.eclipse.ui.IWorkingSet> workingSets)
Adds given projects to given workbench working sets.
|
static org.eclipse.ui.IWorkingSet |
getAssignedWorkingSet(org.eclipse.core.resources.IResource element)
Returns one of the working sets the element directly belongs to.
|
static List<org.eclipse.ui.IWorkingSet> |
getAssignedWorkingSets(org.eclipse.core.resources.IResource element)
Returns all working sets the element directly belongs to.
|
static org.eclipse.ui.IWorkingSet |
getOrCreateWorkingSet(String workingSetName)
Returns existing or creates new workbench working set with the given name
|
static Set<org.eclipse.core.resources.IProject> |
getProjects()
Returns all projects that belong to workbench working sets.
|
static String[] |
getWorkingSets()
Returns all visible workbench working sets.
|
public static String[] getWorkingSets()
public static org.eclipse.ui.IWorkingSet getOrCreateWorkingSet(String workingSetName)
public static void addToWorkingSet(org.eclipse.core.resources.IProject[] projects, String workingSetName)
public static void addToWorkingSets(org.eclipse.core.resources.IProject[] projects, List<org.eclipse.ui.IWorkingSet> workingSets)
public static void addToWorkingSets(Collection<org.eclipse.core.resources.IProject> projects, List<org.eclipse.ui.IWorkingSet> workingSets)
public static Set<org.eclipse.core.resources.IProject> getProjects()
public static org.eclipse.ui.IWorkingSet getAssignedWorkingSet(org.eclipse.core.resources.IResource element)
null
if the element does not
belong to any working set.public static List<org.eclipse.ui.IWorkingSet> getAssignedWorkingSets(org.eclipse.core.resources.IResource element)
Copyright © 2005–2015 Sonatype, Inc.. All rights reserved.