public class WorkingSets extends HashStructureAdapter
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ADD_TO_WORKING_SET_CMD
The action id for the add to working set command.
|
static int |
ADD_TO_WORKING_SET_CMD_ID
Deprecated.
since 11.0 use
Ide#findOrCreateCmdID( ADD_TO_WORKING_SET_CMD ).
|
static java.lang.String |
ADD_TO_WORKING_SET_MSG_KEY
Deprecated.
this identifier is no longer used
|
static java.lang.String |
ALL_FILES_WORKING_SET_LABEL
The label to use for the non-editable, all-files working set.
|
static java.lang.String |
DATA_KEY
The key used to identify working sets in a hash structure.
|
static java.lang.String |
DEFAULT_WORKING_SET_LABEL
Deprecated.
The default working set is no longer created automatically,
as of 12.0.
|
static boolean |
ENABLED
Deprecated.
since 11.0
|
_hash
Modifier and Type | Method and Description |
---|---|
void |
deleteWorkingSet(java.lang.String workingSetName) |
WorkingSet |
getCurrentWorkingSet() |
java.lang.String |
getCurrentWorkingSetName() |
static WorkingSets |
getInstance(Project project)
Deprecated.
Since 11.0. Working sets are now stored at the application
level, not at the project level, so use
getInstance(Workspace) . |
static WorkingSets |
getInstance(Workspace workspace)
Gets the WorkingSets object for this supplied Workpsace.
|
static WorkingSet |
getOrCreateWorkingSet(Workspace workspace,
java.lang.String name,
java.util.List<Project> includeProjects,
java.util.Map<java.net.URL,java.util.List<java.net.URL>> projectUrlToFileUrls)
Gets or creates a working set with the name given.
|
WorkingSet |
getWorkingSet(java.lang.String workingSetName)
Gets or creates a working set with the supplied name.
|
java.util.List |
getWorkingSetNames() |
static java.util.Set<java.net.URL> |
projectUrls(Workspace workspace) |
void |
setCurrentWorkingSetName(java.lang.String name)
Sets the active working set.
|
static boolean |
validateName(java.lang.String workingSetName)
Checks the supplied name to ensure it is a valid working set name.
|
addStructureChangeListener, containsKey, copyTo, copyToImpl, equals, equalsImpl, findOrCreate, forcedCopyTo, getHashStructure, removeStructureChangeListener, useObjectEquals
@Deprecated public static final boolean ENABLED
public static final java.lang.String ADD_TO_WORKING_SET_CMD
@Deprecated public static int ADD_TO_WORKING_SET_CMD_ID
@Deprecated public static final java.lang.String ADD_TO_WORKING_SET_MSG_KEY
@Deprecated public static final java.lang.String DEFAULT_WORKING_SET_LABEL
public static final java.lang.String ALL_FILES_WORKING_SET_LABEL
public static final java.lang.String DATA_KEY
@Deprecated public static WorkingSets getInstance(Project project)
getInstance(Workspace)
.public static WorkingSets getInstance(Workspace workspace)
workspace
- a Workspace; should not be nullpublic WorkingSet getWorkingSet(java.lang.String workingSetName)
validateName(java.lang.String)
before calling this method.workingSetName
- the working set namevalidateName(java.lang.String)
public static boolean validateName(java.lang.String workingSetName)
public static WorkingSet getOrCreateWorkingSet(Workspace workspace, java.lang.String name, java.util.List<Project> includeProjects, java.util.Map<java.net.URL,java.util.List<java.net.URL>> projectUrlToFileUrls)
validateName(java.lang.String)
before calling this method.
The latter parameters describe the projects to include in the working set and, for each project, the set of URLs to include. If a working set with the supplied name already exists, it will be overwritten by the new one.
workspace
- the workspace in which to create the new WorkingSetname
- the working set nameincludeProjects
- the list of Projects to include in the working setprojectUrlToFileUrls
- the projects and files to include (show)java.lang.NullPointerException
- if name or data is null,
or if any of the objects in data are nullvalidateName(java.lang.String)
public static java.util.Set<java.net.URL> projectUrls(Workspace workspace)
public java.lang.String getCurrentWorkingSetName()
public void setCurrentWorkingSetName(java.lang.String name)
name
- the working set namejava.lang.NullPointerException
- if the name is nullpublic WorkingSet getCurrentWorkingSet()
public java.util.List getWorkingSetNames()
public void deleteWorkingSet(java.lang.String workingSetName)