public final class ContentSetScope extends AbstractFileScope
ContentSet
.Modifier and Type | Method and Description |
---|---|
protected void |
activate()
Activate this scope.
|
protected void |
deactivate()
Deactivate this scope.
|
ContentSet |
getContentSet()
Get the content set for this scope.
|
static ContentSetScope |
getInstance(Workspace workspace)
Get an instance of this class for the entire application-level content.
|
static ContentSetScope |
getInstance(Workspace workspace,
Project project)
Get an instance of this class for the entire project content.
|
static ContentSetScope |
getInstance(Workspace workspace,
Project project,
java.lang.String contentSetKey)
Get an instance of this class for a specific content set in a project.
|
static ContentSetScope |
getInstance(Workspace workspace,
java.lang.String contentSetKey)
Get an instance of this class for a specific content set in the
application-level content.
|
protected Path |
getPath()
Get the current path of this scope.
|
Project |
getProject()
Get the project for this scope, or
null if the scope is not
associated with a project. |
protected Storage |
getStorage()
Get the storage where data for this scope should be stored.
|
Workspace |
getWorkspace()
Get the application workspace for this scope.
|
addFileChangeListener, contains, getDirectories, getFiles, getFileTable, getFileTables, getLogger, locate, notifyPathChanged, refresh, refresh, removeFileChangeListener, update
public static ContentSetScope getInstance(Workspace workspace)
workspace
- the application workspacepublic static ContentSetScope getInstance(Workspace workspace, java.lang.String contentSetKey)
workspace
- the application workspacecontentSetKey
- the content set keypublic static ContentSetScope getInstance(Workspace workspace, Project project)
workspace
- the workspaceproject
- the projectpublic static ContentSetScope getInstance(Workspace workspace, Project project, java.lang.String contentSetKey)
workspace
- the workspaceproject
- the projectcontentSetKey
- the content set keypublic Workspace getWorkspace()
public Project getProject()
null
if the scope is not
associated with a project.null
if the scope is not associated
with a projectpublic ContentSet getContentSet()
protected void activate()
AbstractFileScope
activate
in class AbstractFileScope
protected void deactivate()
AbstractFileScope
AbstractFileScope.activate()
method.deactivate
in class AbstractFileScope
protected Storage getStorage()
AbstractFileScope
getStorage
in class AbstractFileScope
protected Path getPath()
AbstractFileScope
getPath
in class AbstractFileScope