I use Netbeans 6.9 and 7 beta in Windows 7. According to Netbeans javascript documentation, you can add documentation to my project and get autocomplete on my classes and functions. The problem I am facing is that I am using my own class declaration (through a function called Class ) and cannot seem to get the job to work. For example, a simple class declaration would look like this:
mySubClass = Class(parentClass, { memberVariable: null, initialize: function(value) { this.memberVariable = value; }, getMV: function() { return this.memberVariable; }, setMV: function(value) { this.memberVariable = value; } });
I have tried many options and ad placements ( @class , @memberOf , etc.) but cannot complete the job. For example, after
var testObj = new my
I should get mySubClass by pressing "ctrl + space" and similarly going to:
var test = new mySubClass(1); test.
and get options for getMV and setMV . Is this possible, and if so, how can I do this? Thanks.
Bret pontarelli
source share