I am using Netbeans 6.9 and 7-Beta on Windows 7. According to Netbeans javascript documentation it should be possible to add documentation to my project and get autocompletion on my classes and functions. The trouble I am having is that I'm using my own class declaration (via a function called Class
) and can't seem to get things working. For example a simple class declaration would look like:
mySubClass = Class(parentClass, {
memberVariable: null,
/**
* @class mySubClass
* @constructor
*/
initialize: function(value) {
this.memberVariable = value;
},
/**
* @class mySubClass
*/
getMV: function() {
return this.memberVariable;
},
/**
* @class mySubClass
*/
setMV: function(value) {
this.memberVariable = value;
}
});
I've tried many variations and placements of the declarations (@class
, @memberOf
, etc) but cannot get completion working. For example after,
var testObj = new my
I should be able to get mySubClass
by hitting "ctrl+space" and similarly proceed to:
var test = new mySubClass(1);
test.
and get options for getMV
and setMV
. Is this possible and if so, how do I do it? Thanks.