|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.borland.primetime.node.Node | +--com.borland.primetime.node.UrlNode | +--com.borland.primetime.node.Project | +--com.borland.jbuilder.node.JBProject
Instances of JBProject represent JBuilder-specific projects. JBuilder projects have all the usual project characteristics plus access to project paths, package management facilities based on those paths and JOT.
The method getPaths()
a representation of the project's
current path selections. The methods findClassPathUrl()
,
findSourcePathUrl()
, findPathUrl()
and
getPackageContent()
provide means for getting up-to-date
information about the contents visible along these paths.
The JOT package manager associated with a JBProject is available via the
getJotPackages()
method.
Field Summary | |
static java.lang.String |
BACKUP_DIRECTORY
Name "bak" for the default backup directory. |
static java.lang.String |
CLASSES_DIRECTORY
Name "classes" for the default classes directory. |
static java.lang.String |
DOC_DIRECTORY
Name "doc" for the default documentation directory. |
static javax.swing.Icon |
ICON
The icon used for files for this class. |
static int |
MODE_FULL_SOURCE_OR_CLASS
Searches the project's full source and class paths (including the JDK and library sources) for subpackages. |
static int |
MODE_PROJECT_SOURCE
Searches the project's source paths (excluding the JDK and library sources) for subpackages, Java source and deployable nodes. |
static java.lang.String |
PROJECT_DIRECTORY
Name "jbproject" for the project directory. |
static java.lang.String |
PROPERTY_BAKPATH
Project property name "BackupPath" for recorded path. |
static java.lang.String |
PROPERTY_DOCPATH
Project property name "DocPath" for recorded path. |
static java.lang.String |
PROPERTY_JDK
Project property name "JDK" for the JDK name. |
static java.lang.String |
PROPERTY_LIBRARIES
Project property name "Libraries" for recorded path. |
static java.lang.String |
PROPERTY_OUTPATH
Project property name "OutPath" for recorded path. |
static java.lang.String |
PROPERTY_SOURCEPATH
Project property name "SourcePath" for recorded path. |
static java.lang.String |
PROPERTY_WORKINGDIRECTORY
Project property name "WorkingDirectory" for recorded path. |
static java.lang.String |
SOURCE_DIRECTORY
Name "src" for the default source directory. |
Fields inherited from class com.borland.primetime.node.Project |
CATEGORY_DEFAULT, ENCODING, PREFIX_UNTITLED, projectListeners |
Fields inherited from class com.borland.primetime.node.Node |
EMPTY_ARRAY, nodeListeners |
Constructor Summary | |
JBProject(Url url)
All Project subtypes must expose this constructor signature, but the constructor should never be used directly. |
Method Summary | |
Url |
findClassPathUrl(java.lang.String pathName)
Locates the first location along the project's full class path where a given subpath exists. |
Url |
findPathUrl(Url[] path,
java.lang.String pathName)
Locates the first location along a list of path root where a given subpath exists. |
Url |
findSourcePathUrl(java.lang.String pathName)
Locates the first location along the project's full source path where a given subpath exists. |
Node[] |
getChildren()
Returns children of this node. |
com.borland.jbuilder.cmt.CmtComponents |
getComponents()
|
com.borland.jbuilder.debugger.DebugInfoManager |
getDebugInfoManager()
Returns manager for debug information. |
Node[] |
getDisplayChildren()
Returns display children of this node. |
javax.swing.Icon |
getDisplayIcon()
Return the icon used for this type of file. |
JotPackages |
getJotPackages()
|
java.util.Set |
getPackageContent(Url[] path,
java.lang.String packageName,
int type)
Returns a Set containing Url representations of all items found on the path in the specified package. |
Node[] |
getPackageNodes(java.lang.String packageName)
|
Node[] |
getPackageNodes(java.lang.String packageName,
int mode)
|
ProjectPathSet |
getPaths()
|
boolean |
hasChildren()
Returns if this node has children. |
boolean |
hasDisplayChildren()
Returns if this node has display children. |
static void |
initOpenTool(byte majorVersion,
byte minorVersion)
OpenTool initialization. |
boolean |
isModified()
Describes whether or not unsaved changes exist in the project's state. |
protected void |
postProjectLoad(Url rootUrl)
Hook for doing postprocessing after the project is saved. |
protected void |
preProjectSave(Url rootUrl)
Hook for doing preprocessing prior to project being saved. |
void |
refresh()
Forces rebuild of the Automatic Packages display if automatic packages are enabled. |
protected void |
setUrl(Url url)
Used internally by rename() and saveAs() to change the underlying Url associated with the project. |
Methods inherited from class com.borland.primetime.node.Project |
addProjectListener, check, createFileNode, createProject, dumpAllNodes, dumpProjects, findNode, findNodes, findProject, fireChildrenChanged, fireNodeChanged, fireProjectPropertyChanged, getAutoProperty, getDisplayName, getDisplaySequence, getEncoding, getLongDisplayName, getNode, getProject, getProject, getProjectPath, getUrl, isNew, isPersistant, isProjectExtension, isProjectUrl, registerProjectClass, removeProjectListener, rename, revert, save, saveAs, setAutoProperty, setEncoding |
Methods inherited from class com.borland.primetime.node.UrlNode |
getSuggestedUrl |
Methods inherited from class com.borland.primetime.node.Node |
addNodeListener, compareTo, dumpNodes, dumpNodes, dumpNodes, equals, fireNodeRenamed, getNodeID, getParent, getProperties, getProperty, getProperty, getProperty, hashCode, makePersistant, removeNodeListener, setParent, setProperty, setProperty, setProperty, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final javax.swing.Icon ICON
public static final java.lang.String PROPERTY_SOURCEPATH
public static final java.lang.String PROPERTY_OUTPATH
public static final java.lang.String PROPERTY_DOCPATH
public static final java.lang.String PROPERTY_BAKPATH
public static final java.lang.String PROPERTY_WORKINGDIRECTORY
public static final java.lang.String PROPERTY_LIBRARIES
public static final java.lang.String PROPERTY_JDK
public static final java.lang.String PROJECT_DIRECTORY
public static final java.lang.String SOURCE_DIRECTORY
public static final java.lang.String BACKUP_DIRECTORY
public static final java.lang.String CLASSES_DIRECTORY
public static final java.lang.String DOC_DIRECTORY
public static final int MODE_FULL_SOURCE_OR_CLASS
public static final int MODE_PROJECT_SOURCE
Constructor Detail |
public JBProject(Url url) throws DuplicateNodeException, InvalidUrlException
url
- The storage available to this node.DuplicateNodeException
- if node already registered.Method Detail |
public static void initOpenTool(byte majorVersion, byte minorVersion)
majorVersion
- Major release number for which OpenTool is being initialized.minorVersion
- Minor release number for which OpenTool is being initialized.protected void setUrl(Url url) throws DuplicateNodeException
setUrl
in class Project
url
- The new Url to be associated with the project. This value must
not be null.public ProjectPathSet getPaths()
public com.borland.jbuilder.cmt.CmtComponents getComponents()
public JotPackages getJotPackages()
public java.util.Set getPackageContent(Url[] path, java.lang.String packageName, int type)
Returns a Set containing Url representations of all items found on the path in the specified package. Items that occur in multiple places on the path are reported only once, at the location of the first occurence.
path
- An array of Url roots to search.packageName
- The subpackage to search, similar to a Url relative
path but using '.' as the path separator rather than a slash.type
- One of Filesystem.TYPE_DIRECTORY
,
Filesystem.TYPE_FILE
, or Filesystem.TYPE_BOTH
.public Node[] getPackageNodes(java.lang.String packageName)
packageName
- The subpackage to search, similar to a Url relative
path but using '.' as the path separator rather than a slash.Node
instances representing the items
found on the path.public Node[] getPackageNodes(java.lang.String packageName, int mode)
packageName
- The subpackage to search, similar to a Url relative
path but using '.' as the path separator rather than a slash.mode
- Controls the search used to find package elements. The
MODE constants in this class define the avilable search techniques.Node
instances representing the items
found on the path.public Url findPathUrl(Url[] path, java.lang.String pathName)
path
- An array of Url roots to search for the subpath. Must not
be null.pathName
- A relative path (as defined by Url
) to search
for.public Url findSourcePathUrl(java.lang.String pathName)
pathName
- A relative path (as defined by Url
) to search
for.public Url findClassPathUrl(java.lang.String pathName)
pathName
- A relative path (as defined by Url
) to search
for.public com.borland.jbuilder.debugger.DebugInfoManager getDebugInfoManager()
public boolean isModified()
isModified
in class Project
protected void preProjectSave(Url rootUrl)
Project
preProjectSave
in class Project
com.borland.primetime.node.Project
rootUrl
- Url for the project being saved.protected void postProjectLoad(Url rootUrl)
Project
postProjectLoad
in class Project
com.borland.primetime.node.Project
rootUrl
- Url for the project being saved.public void refresh()
refresh
in class Project
public boolean hasChildren()
hasChildren
in class Node
public boolean hasDisplayChildren()
hasDisplayChildren
in class Node
public Node[] getChildren()
getChildren
in class Node
public Node[] getDisplayChildren()
getDisplayChildren
in class Node
public javax.swing.Icon getDisplayIcon()
getDisplayIcon
in class Project
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |