public class KeplerDocApplicationSpecializer extends java.lang.Object implements DocApplicationSpecializer
Constructor and Description |
---|
KeplerDocApplicationSpecializer() |
Modifier and Type | Method and Description |
---|---|
java.util.List |
buildCommands(ExecuteCommands executeCommands)
Set up the commands necessary to build the documentation.
|
java.net.URL |
docClassNameToURL(java.lang.String remoteDocumentationURLBase,
java.lang.String className,
boolean lookForPtDoc,
boolean lookForJavadoc,
boolean lookForSource,
boolean lookForActorIndex)
Given a dot separated class name, return the URL of the PtDoc .xml file
documentation or the Actor Index.
|
void |
editDocumentation(java.awt.Frame owner,
Attribute attribute,
NamedObj target)
create a gui to edit the documentation in the attribute
|
java.lang.String |
getDocumentationAttributeClassName()
returns the name of the documentation attribute
|
void |
handleDocumentationAttributeDoesNotExist(java.awt.Frame owner,
NamedObj target)
handle the case where the component does not have a KeplerDocumentation
attribute
|
void |
handleDocumentationNotFound(java.lang.String classname,
Effigy effigy)
handle the case where the user tried to edit documentation and the
attribute does not exist.
|
public KeplerDocApplicationSpecializer()
public java.net.URL docClassNameToURL(java.lang.String remoteDocumentationURLBase, java.lang.String className, boolean lookForPtDoc, boolean lookForJavadoc, boolean lookForSource, boolean lookForActorIndex)
If the KEPLER_DOCS property is set, then its value is assumed to point to
the Kepler documentation. If KEPLER_DOCS is not set, then the file
./doc/docsInfo.txt is read, and if that file contains the string of the
format KeplerDocs: path to kepler-docs
then the value
of path to kepler-docs
is used. For example,
docsInfo.txt might contain KeplerDocs: c:\src\kepler-docs
,
which means that the documentation is to be found in
c:\src\kepler-docs
. docsInfo.txt is created by running
cd $KEPLER; ant generateDoc
. The documentation for
className
is assumed to be in
$KEPLER_DOCS/dev/documentationFramework/generatedJavadocs/className.doc.xml
.
docClassNameToURL
in interface DocApplicationSpecializer
remoteDocumentationURLBase
- If non-null, the URL of the documentation. Usually, this is
set by reading the _remoteDocumentationBase parameter from the
configuration in the caller.className
- The dot separated class name.lookForPtDoc
- True if we should look for ptdoc .xml files.lookForJavadoc
- IgnoredlookForSource
- IgnoredlookForActorIndex
- True if we should search for the actor index *Idx.htm file.public java.util.List buildCommands(ExecuteCommands executeCommands)
buildCommands
in interface DocApplicationSpecializer
executeCommands
- The command execution environment necessary to build the
documentation.public java.lang.String getDocumentationAttributeClassName()
getDocumentationAttributeClassName
in interface DocApplicationSpecializer
public void editDocumentation(java.awt.Frame owner, Attribute attribute, NamedObj target)
editDocumentation
in interface DocApplicationSpecializer
owner
- the editors gui parentattribute
- the documentation attribute to edittarget
- the parent component to the attributepublic void handleDocumentationAttributeDoesNotExist(java.awt.Frame owner, NamedObj target)
handleDocumentationAttributeDoesNotExist
in interface DocApplicationSpecializer
target
- the componentowner
- the editors gui parentpublic void handleDocumentationNotFound(java.lang.String classname, Effigy effigy)
handleDocumentationNotFound
in interface DocApplicationSpecializer
classname
- the name of the classeffigy
- the effigy of the entity that does not have a doc
attribute