|
Extension SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.ide.model.DefaultDisplayable
oracle.ide.model.DefaultElement
oracle.ide.model.DefaultDocument
oracle.ide.model.DefaultNode
oracle.ide.model.DataNode
oracle.ide.model.DataContainer
oracle.ide.model.Project
oracle.jdeveloper.model.JProject
JProject
is the data class that represents the
project in JDeveloper.
Field Summary | |
static java.lang.String |
ACTIVE_CONFIGURATION_PROPERTY
|
static java.lang.String |
CLASSPATH_PROPERTY
|
static java.lang.String |
COMMON_DATA_PROPERTY
|
static java.lang.String |
DATA_KEY
The data key by which a JProject instance can be located
within a TraversableContext . |
static java.lang.String |
DEFAULT_PACKAGE_PROPERTY
|
static java.lang.String |
DOCPATH_PROPERTY
|
static java.lang.String |
EXT
|
static java.lang.String |
HTML_ROOT_DIRECTORY_PROPERTY
|
static java.lang.String |
HTML_SOURCE_DIRECTORY_PROPERTY
Deprecated. -- We are no longer using the notion of an HTML source directory. |
static java.lang.String |
OUTPUT_DIRECTORY_PROPERTY
|
static java.lang.String |
PROJECT_SOURCEPATH_PROPERTY
|
static java.lang.String |
RUN_CLASSPATH_PROPERTY
|
static java.lang.String |
SOURCEPATH_PROPERTY
|
static java.lang.String |
USE_DEFAULT_PACKAGE_PROPERTY
|
static java.lang.String |
USE_DYNAMIC_PATHS_PROPERTY
|
static java.lang.String |
USER_COMPANY_PROPERTY
|
static java.lang.String |
USER_COPYRIGHT_PROPERTY
|
static java.lang.String |
USER_DESCRIPTION_PROPERTY
|
static java.lang.String |
USER_TITLE_PROPERTY
|
static java.lang.String |
USER_VERSION_PROPERTY
|
Fields inherited from class oracle.ide.model.DataContainer |
_children |
Fields inherited from class oracle.ide.model.DataNode |
_objectStore |
Fields inherited from interface oracle.ide.addin.Subject |
OBJECT_MODIFIED |
Fields inherited from interface oracle.ide.model.Category |
UNDEFINED |
Constructor Summary | |
JProject()
Default constructor. |
|
JProject(JProject project)
Copy constructor. |
Method Summary | |
void |
addDynamicPathFilter(URLFilter filter)
Adds the specified URLFilter to the list of filters used to
exclude resources from appearing under a dynamic project. |
boolean |
addLibrary(java.lang.String library)
Adds the specified library to the project's library list, if not already present. |
void |
addToProject(java.util.Collection elements)
Adds the collection of elements to the project. |
void |
addToProject(java.util.Collection elements,
boolean askToAdd)
Adds the collection of elements to the project. |
void |
addToProjectSourcePath(JavaSourceNode node)
|
protected int |
addToProjectSourcePath(JavaSourceNode node,
boolean[] ask)
The the source path of the specified node to the project
source path list. |
boolean |
canAdd(Element element)
Call this method to determine if an Element can be added to
this project. |
protected java.util.Collection |
clearBuiltChildren()
|
void |
close()
Closes the Document and unloads any associated data. |
boolean |
containsChild(Element element)
Returns true if the child is contained by the project even if the owner is another folder contained in the project. |
java.lang.Object |
copyTo(java.lang.Object object)
Copies the internal state of this object to the
specified copy . |
protected void |
copyToImpl(JProject copy)
Design pattern for supporting strongly typed copying. |
URLPath |
currentClassPath()
Deprecated. -- Call getClassPath() instead. |
protected ObjectStore |
currentObjectStore()
|
java.net.URL |
currentOutputDirectory()
Deprecated. -- Call getOutputDirectory() instead. |
URLPath |
currentRunClassPath()
Deprecated. -- Call getRunClassPath() instead. |
URLPath |
currentSourcePath()
Deprecated. -- Call getSourcePath() instead. |
boolean |
equals(java.lang.Object o)
|
protected boolean |
equalsImpl(JProject jProject)
This is a helper method for equals(Object) that can
also be used by subclasses that implement equals(Object) . |
java.lang.Object |
getActiveConfigDataByName(java.lang.String dataKey)
|
JProjectConfiguration |
getActiveConfiguration()
|
java.lang.String |
getActiveConfigurationName()
|
java.util.Iterator |
getChildren()
Returns all children of the project including children owned by other folders contained in the project. |
URLPath |
getClassPath()
|
java.lang.String |
getCompilerEncoding()
|
JProjectConfiguration |
getConfigurationByName(java.lang.String configName)
|
java.util.List |
getConfigurationNames()
|
java.util.Iterator |
getConfigurations()
|
java.lang.String |
getDefaultPackage()
|
java.util.List |
getDefaultPackages()
|
URLPath |
getDocPath()
|
java.lang.String |
getEncoding()
Deprecated. Use getCompilerEncoding() instead. |
java.net.URL |
getHtmlRootDirectory()
|
java.net.URL |
getHtmlSourceDirectory()
Deprecated. -- We are no longer using the notion of an HTML source directory. Call getHtmlRootDirectory() instead. |
java.lang.String |
getIanaEncoding()
Deprecated. Use IdeUtil.getIdeIanaEncoding() instead. |
java.lang.String |
getJ2eeWebAppName()
|
java.lang.String |
getJ2eeWebContextRoot()
|
java.lang.String |
getJ2eeWebContextRoot(boolean forceSlash)
|
java.util.Iterator |
getMyChildren()
Returns the children owned by this project. |
java.net.URL |
getOutputDirectory()
|
URLPath |
getProjectDocPath()
|
LibraryList |
getProjectLibraryList()
|
JProjectSettings |
getProjectSettings()
|
URLPath |
getProjectSourcePath()
|
URLPath |
getRunClassPath()
|
URLPath |
getSourcePath()
|
java.lang.String |
getUserAuthor()
|
java.lang.String |
getUserCompany()
|
java.lang.String |
getUserCopyright()
|
java.lang.String |
getUserDescription()
|
java.lang.String |
getUserTitle()
|
java.lang.String |
getUserVersion()
|
void |
open()
Document interface method. |
protected void |
rebuildChildren()
|
boolean |
remove(Element element,
boolean notify)
Remove the especified element. |
void |
removeAll(boolean notify)
Removes all children of the project including those owned by other folders. |
void |
removeDynamicPathFilter(URLFilter filter)
Removes the specified URLFilter from the list of filters used
to exclude resources from appearing under a dynamic project. |
boolean |
removeLibrary(java.lang.String library)
Removes the library from the project's library list, if it is present. |
void |
setDefaultPackage(java.lang.String defaultPackage)
|
void |
setDefaultPackages(java.util.List defaultPackages)
|
void |
setHtmlRootDirectory(java.net.URL htmlRootDirectory)
|
void |
setHtmlSourceDirectory(java.net.URL htmlSourceDirectory)
Deprecated. -- We are no longer using the notion of an HTML source directory. |
void |
setJ2eeWebAppName(java.lang.String j2eeWebAppName)
|
void |
setJ2eeWebContextRoot(java.lang.String j2eeWebContextRoot)
If the specified context root does not begin with a '/' then one is added automatically. |
void |
setOutputDirectory(java.net.URL outputDirectory)
|
void |
setProjectDocPath(URLPath projectDocPath)
|
void |
setProjectLibraryList(LibraryList libList)
|
void |
setProjectSettings(JProjectSettings projectSettings)
|
void |
setProjectSourcePath(URLPath projectSourcePath)
|
void |
setUserAuthor(java.lang.String userAuthor)
|
void |
setUserCompany(java.lang.String userCompany)
|
void |
setUserCopyright(java.lang.String userCopyright)
|
void |
setUserDescription(java.lang.String userDescription)
|
void |
setUserTitle(java.lang.String userTitle)
|
void |
setUserVersion(java.lang.String userVersion)
|
void |
setUsesDynamicPaths(boolean dynamicPaths)
|
boolean |
usesDynamicPaths()
|
Methods inherited from class oracle.ide.model.Project |
add, add, add, addDependency, addElements, canRemove, containsOwnedChild, copyToImpl, createSubject, equalsImpl, findOwner, getAllDependencies, getContainerOwner, getContainerOwner, getDefaultName, getDependencies, getDependencyList, getIcon, getOwnedChildren, getOwnedChildrenList, getOwnerMap, getProperties, getProperty, getProperty, notifyObservers, removeDependency, removeOwnedChildren, setDependencyList, setOwnerMap, setProperties, setProperty, size, update |
Methods inherited from class oracle.ide.model.DataContainer |
add, add, add, copyToImpl, getBaseDirectory, getListOfChildren, mayHaveChildren, remove, removeAll, resetSubDirtyableOwners, setListOfChildren, setSubDirtyableOwner |
Methods inherited from class oracle.ide.model.DataNode |
getURL, reopen, save, setObjectStore |
Methods inherited from class oracle.ide.model.DefaultNode |
equalsImpl, getCategory, setURL |
Methods inherited from class oracle.ide.model.DefaultDocument |
attach, copyToImpl, detach, ensureOpen, equalsImpl, getInputStream, getLongLabel, getShortLabel, getSubject, getTimestamp, getTimestampDirectly, getToolTipText, isDirty, isNew, isOpen, isReadOnly, markDirty, notifyObservers, refreshTimestamp, setOpen, setTimestampDirectly |
Methods inherited from class oracle.ide.model.DefaultElement |
getAttributes, getData |
Methods inherited from class oracle.ide.model.DefaultDisplayable |
toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface oracle.ide.addin.Subject |
attach, detach, notifyObservers |
Methods inherited from interface oracle.ide.model.Document |
getInputStream, getTimestamp, isNew, isReadOnly, save |
Methods inherited from interface oracle.ide.model.Locatable |
getURL, setURL |
Methods inherited from interface oracle.ide.model.Element |
getAttributes |
Methods inherited from interface oracle.ide.model.Data |
getData |
Methods inherited from interface oracle.ide.model.Displayable |
getLongLabel, getShortLabel, getToolTipText, toString |
Methods inherited from interface oracle.ide.model.Dirtyable |
isDirty, markDirty |
Methods inherited from interface oracle.ide.model.LazyLoadable |
isOpen |
Methods inherited from interface oracle.ide.model.Category |
getCategory |
Field Detail |
public static final java.lang.String DATA_KEY
JProject
instance can be located
within a TraversableContext
.
public static final java.lang.String EXT
public static final java.lang.String ACTIVE_CONFIGURATION_PROPERTY
public static final java.lang.String SOURCEPATH_PROPERTY
public static final java.lang.String HTML_ROOT_DIRECTORY_PROPERTY
public static final java.lang.String DEFAULT_PACKAGE_PROPERTY
public static final java.lang.String CLASSPATH_PROPERTY
public static final java.lang.String RUN_CLASSPATH_PROPERTY
public static final java.lang.String OUTPUT_DIRECTORY_PROPERTY
public static final java.lang.String USER_TITLE_PROPERTY
public static final java.lang.String USER_VERSION_PROPERTY
public static final java.lang.String USER_COMPANY_PROPERTY
public static final java.lang.String USER_COPYRIGHT_PROPERTY
public static final java.lang.String USER_DESCRIPTION_PROPERTY
public static final java.lang.String PROJECT_SOURCEPATH_PROPERTY
public static final java.lang.String COMMON_DATA_PROPERTY
public static final java.lang.String DOCPATH_PROPERTY
public static final java.lang.String USE_DEFAULT_PACKAGE_PROPERTY
public static final java.lang.String USE_DYNAMIC_PATHS_PROPERTY
public static final java.lang.String HTML_SOURCE_DIRECTORY_PROPERTY
Constructor Detail |
public JProject()
public JProject(JProject project)
Method Detail |
public void open() throws java.io.IOException
Document
interface method. If this object is not open, Delegate
to the superclass to open this Object then use the
ensureData
method on JProjectSettings
to ensure
that all of the data classes registered on each
JProjectConfiguration
exists in the configuration data.
open
in interface Document
open
in class DataNode
java.io.IOException
- if errors occur while opening the data from storage
(file system, network, or other location accessible with an
URL
)DefaultNode#open()
,
NavigableRegistry#ensureData(Map)
public java.lang.Object copyTo(java.lang.Object object)
Copyable
this
object to the
specified copy
. If copy
is
null
, then this method should create a new instance
of this
class and proceed to copy the internal state
to the newly created object. Generally, only the persistent
state of the object should be copied, but whether or not it is
appropriate to copy transient properties is at the discretion
of the individual implementor.
Regardless of whether the copy occurs to an existing object or to
a newly created object, the return value is object to which
this
object's state was copied.
There is a standard implementation pattern for the
copyTo
method that helps avoid problems that arise
when a Copyable
object is subclassed. The pattern
is:
public Object copyTo( Object target )
{
final <this_class> copy =
target != null ? (<this_class>) target : new <this_class>();
copyToImpl( copy );
return copy;
}
protected final void copyToImpl( <this_class> copy )
{
super.copyToImpl( copy ); // if necessary
// put code here for copying the properties of <this_class>
}
The parameter passed into the copyToImpl
method is
the same type of this
class. The responsibility of
copyToImpl
is to copy the state of this
class through direct access of the fields. The
copyToImpl
method should not use getters and setters
since these may be overridden, causing the state of
this
class to be incompletely copied.
copyTo
in interface Copyable
copyTo
in class Project
protected final void copyToImpl(JProject copy)
public JProjectSettings getProjectSettings()
public void setProjectSettings(JProjectSettings projectSettings)
public java.lang.String getDefaultPackage()
public void setDefaultPackage(java.lang.String defaultPackage)
public java.util.List getDefaultPackages()
public void setDefaultPackages(java.util.List defaultPackages)
public URLPath getProjectSourcePath()
public void setProjectSourcePath(URLPath projectSourcePath)
public URLPath getProjectDocPath()
public void setProjectDocPath(URLPath projectDocPath)
public java.net.URL getHtmlRootDirectory()
public void setHtmlRootDirectory(java.net.URL htmlRootDirectory)
public java.lang.String getUserTitle()
public void setUserTitle(java.lang.String userTitle)
public java.lang.String getUserVersion()
public void setUserVersion(java.lang.String userVersion)
public java.lang.String getUserAuthor()
public void setUserAuthor(java.lang.String userAuthor)
public java.lang.String getUserCompany()
public void setUserCompany(java.lang.String userCompany)
public java.lang.String getUserCopyright()
public void setUserCopyright(java.lang.String userCopyright)
public java.lang.String getUserDescription()
public void setUserDescription(java.lang.String userDescription)
public java.lang.String getJ2eeWebAppName()
public void setJ2eeWebAppName(java.lang.String j2eeWebAppName)
public java.lang.String getJ2eeWebContextRoot()
public java.lang.String getJ2eeWebContextRoot(boolean forceSlash)
public void setJ2eeWebContextRoot(java.lang.String j2eeWebContextRoot)
public LibraryList getProjectLibraryList()
public void setProjectLibraryList(LibraryList libList)
public boolean usesDynamicPaths()
public void setUsesDynamicPaths(boolean dynamicPaths)
public java.util.Iterator getChildren()
Project
getChildren
in interface Element
getChildren
in class Project
public java.util.Iterator getMyChildren()
Project
getChildren
.
getMyChildren
in class Project
public boolean containsChild(Element element)
Project
containsChild
in interface Folder
containsChild
in class Project
public boolean remove(Element element, boolean notify)
Project
notify
is set to true.
If the specified element is an owned element, this method will also
remove the element.
remove
in interface Container
remove
in class Project
public void removeAll(boolean notify)
Project
removeAll
in interface Container
removeAll
in class Project
public boolean canAdd(Element element)
Project
Element
can be added to
this project.
This method does not allow the addition of Workspace
s and other
projects.
canAdd
in interface Folder
canAdd
in class Project
protected ObjectStore currentObjectStore()
currentObjectStore
in class DataNode
public URLPath getSourcePath() throws TransientMarker
TransientMarker
public URLPath getClassPath() throws TransientMarker
TransientMarker
public URLPath getRunClassPath() throws TransientMarker
TransientMarker
public URLPath getDocPath() throws TransientMarker
TransientMarker
public java.lang.String getCompilerEncoding() throws TransientMarker
TransientMarker
public java.lang.String getEncoding() throws TransientMarker
TransientMarker
public java.lang.String getIanaEncoding() throws TransientMarker
TransientMarker
public java.net.URL getOutputDirectory() throws TransientMarker
TransientMarker
public void setOutputDirectory(java.net.URL outputDirectory)
public boolean addLibrary(java.lang.String library)
true
if the library was not already
present in one or more configurations and was therefore added;
false
otherwise.public boolean removeLibrary(java.lang.String library)
true
if the library was present in one
or more configurations and was therefore removed;
false
otherwise.public boolean equals(java.lang.Object o)
equals
in class Project
protected final boolean equalsImpl(JProject jProject)
equals(Object)
that can
also be used by subclasses that implement equals(Object)
.
It assumes that the argument is not null
.
public void close()
Document
Document
and unloads any associated data.
When this method returns, the state of the Document
object should be equivalent to when the Document
object has just been instantiated but not yet opened.
close
in interface Document
close
in class Project
public java.util.List getConfigurationNames()
public JProjectConfiguration getConfigurationByName(java.lang.String configName)
public java.util.Iterator getConfigurations()
public JProjectConfiguration getActiveConfiguration()
public java.lang.String getActiveConfigurationName()
public java.lang.Object getActiveConfigDataByName(java.lang.String dataKey)
public void addToProjectSourcePath(JavaSourceNode node)
protected int addToProjectSourcePath(JavaSourceNode node, boolean[] ask)
node
to the project
source path list. This method asks for confirmation from the user
only if the ask[0]
flag indicates to do so. Once the
user is asked for confirmation the ask[0]
flag is
reset so that in subsequent calls the user is not asked again.
public void addToProject(java.util.Collection elements)
addToProject
in class Project
public void addToProject(java.util.Collection elements, boolean askToAdd)
public void addDynamicPathFilter(URLFilter filter)
URLFilter
to the list of filters used to
exclude resources from appearing under a dynamic project. Extensions
may use this method to limit which files appear in a dynamic project.
If the filter is null
, this method has no effect.
filter
- the URLFilter
instance to addpublic void removeDynamicPathFilter(URLFilter filter)
URLFilter
from the list of filters used
to exclude resources from appearing under a dynamic project. If the
filter is either null
or not an active filter, this
method has no effect.
filter
- the URLFilter
instance to removeprotected void rebuildChildren()
protected java.util.Collection clearBuiltChildren()
public URLPath currentSourcePath()
public URLPath currentClassPath()
public URLPath currentRunClassPath()
public java.net.URL currentOutputDirectory()
public java.net.URL getHtmlSourceDirectory() throws TransientMarker
TransientMarker
public void setHtmlSourceDirectory(java.net.URL htmlSourceDirectory)
|
Extension SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright ©1997, 2003, Oracle. All rights reserved.