Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.1.0)

E17493-02

oracle.ide.file
Class ContentSetScope

java.lang.Object
  extended by oracle.ide.file.AbstractFileScope
      extended by oracle.ide.file.ContentSetScope
All Implemented Interfaces:
FileScope

public final class ContentSetScope
extends AbstractFileScope

File scope that includes the files in a project ContentSet.

Since:
11.1.2

Method Summary
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.
 
Methods inherited from class oracle.ide.file.AbstractFileScope
addFileChangeListener, contains, getDirectories, getFiles, getFileTable, getFileTables, getLogger, locate, notifyPathChanged, refresh, refresh, removeFileChangeListener, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ContentSetScope getInstance(Workspace workspace)
Get an instance of this class for the entire application-level content.

Parameters:
workspace - the application workspace

getInstance

public 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.

Parameters:
workspace - the application workspace
contentSetKey - the content set key
Returns:
the project content scope instance

getInstance

public static ContentSetScope getInstance(Workspace workspace,
                                          Project project)
Get an instance of this class for the entire project content.

Parameters:
workspace - the workspace
project - the project
Returns:
the project content scope instance

getInstance

public 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.

Parameters:
workspace - the workspace
project - the project
contentSetKey - the content set key
Returns:
the project content scope instance

getWorkspace

public Workspace getWorkspace()
Get the application workspace for this scope.

Returns:
the application workspace

getProject

public Project getProject()
Get the project for this scope, or null if the scope is not associated with a project.

Returns:
the project, or null if the scope is not associated with a project

getContentSet

public ContentSet getContentSet()
Get the content set for this scope.

Returns:
the content set

activate

protected void activate()
Description copied from class: AbstractFileScope
Activate this scope. A scope is active when there are active listeners on the scope. Typically, implementations of this method should add whatever listeners are necessary to determine if scope path has changed.

Specified by:
activate in class AbstractFileScope

deactivate

protected void deactivate()
Description copied from class: AbstractFileScope
Deactivate this scope. A scope is deactivated when there are no more active listeners. Typically, implementations of this method should remove any listeners were added by the AbstractFileScope.activate() method.

Specified by:
deactivate in class AbstractFileScope

getStorage

protected Storage getStorage()
Description copied from class: AbstractFileScope
Get the storage where data for this scope should be stored.

Specified by:
getStorage in class AbstractFileScope
Returns:
the storage used to store data for this scope

getPath

protected Path getPath()
Description copied from class: AbstractFileScope
Get the current path of this scope.

Specified by:
getPath in class AbstractFileScope
Returns:
the current path of this scope

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.1.0)

E17493-02

Copyright © 1997, 2011, Oracle. All rights reserved.