oracle.jdeveloper.model
Class PathsConfiguration
java.lang.Object
oracle.javatools.data.HashStructureAdapter
oracle.jdeveloper.model.PathsConfiguration
- public class PathsConfiguration
- extends oracle.javatools.data.HashStructureAdapter
| Fields inherited from class oracle.javatools.data.HashStructureAdapter |
_hash |
| Methods inherited from class oracle.javatools.data.HashStructureAdapter |
containsKey, copyTo, copyToImpl, equals, equalsImpl, findOrCreate |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DATA_KEY
public static final java.lang.String DATA_KEY
JAVA_CONTENT_SET_LOCAL_KEY
public static final java.lang.String JAVA_CONTENT_SET_LOCAL_KEY
- See Also:
- Constant Field Values
JAVA_CONTENT_SET_KEY
public static final java.lang.String JAVA_CONTENT_SET_KEY
PROJECT_SOURCEPATH
public static final java.lang.String PROJECT_SOURCEPATH
- See Also:
- Constant Field Values
getInstance
public static PathsConfiguration getInstance(Project project)
- Retrieves an instance of
PathsConfiguration for the specified
project. The contents of the Project file will be used to initialize the
state of this settings object.
- Parameters:
project - the Project containing the settings
- Returns:
- a new PathsConfiguration instance for manipulating the settings
getInstance
public static PathsConfiguration getInstance(Project project,
oracle.javatools.data.PropertyStorage propertyData)
getJavaContentSet
public ContentSet getJavaContentSet()
getProjectSourcePath
public URLPath getProjectSourcePath()
- Returns:
- The user defined project source path. This path does
not include the dependencies, libraries, nor any other source path.
In general, the source path indicates where the files associated with
this project can be found on a file system.
setProjectSourcePath
public boolean setProjectSourcePath(URLPath urlPath)
getSourcePath
public URLPath getSourcePath()
- Returns:
- The full project source path. This path includes the user
defined source path, the source path of the projects this project
depends on, the libraries source path, and the jdk source path.
getClassPath
public URLPath getClassPath()
getRunClassPath
public URLPath getRunClassPath()
getDocPath
public URLPath getDocPath()
getURLForPackage
public static java.net.URL getURLForPackage(java.lang.String packageName,
Context context)
- Determines the appropriate directory URL for a given package name.
If the directory already exists in a root of the content set then
that directory is returned...unless there are multiple matches. If
there are multiple matches or no matches, then ui is provided to let
the user select the directory. If the project set in the context
is dependent on other projects, those other projects will be searched
for that package in their content sets as well.
- Parameters:
packageName - context - the context to search in
getDependentProjects
public static Project[] getDependentProjects(Context context)
- This gets the list of dependent projects for the project in the
context. The project in the context itself is removed from the
list of dependents.
- Parameters:
context -
- Returns:
Copyright © 1997, 2005, Oracle.All rights reserved.