* Do not rely on Java classes to implement IPathElement.
Implement all necessary features such as href() and getChildElement() ourselves instead. * Add missing classes to class.properties. * Display actual line numbers in function source macro.
This commit is contained in:
parent
c9463fe57a
commit
694139d897
6 changed files with 47 additions and 26 deletions
|
@ -1,14 +1,3 @@
|
|||
///**
|
||||
// * utility function for head_macro, rendering link to app and to prototype
|
||||
// */
|
||||
//function getPath() {
|
||||
// var appObj = this.getParentElement ();
|
||||
// var str = appObj.getPath();
|
||||
// str += '/<a href="' + this.href("main") + '">' + this.name + '</a>';
|
||||
// return( str );
|
||||
//}
|
||||
|
||||
|
||||
function translateType(filter) {
|
||||
if (filter == "actions")
|
||||
return Packages.helma.doc.DocElement.ACTION;
|
||||
|
@ -24,9 +13,18 @@ function translateType(filter) {
|
|||
return -1;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get the application we're part of.
|
||||
*/
|
||||
function getApplication() {
|
||||
return this.getParentElement();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Method used by Helma for URL composition.
|
||||
*/
|
||||
function href(action) {
|
||||
var base = this.getParentElement().href()
|
||||
+ this.getElementName() + "/";
|
||||
return action ? base + action : base;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue