This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 217679 - Navigator could use jsdoc to recognize classes
Summary: Navigator could use jsdoc to recognize classes
Status: VERIFIED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.3
Hardware: PC Linux
: P3 normal (vote)
Assignee: Martin Fousek
URL:
Keywords:
Depends on:
Blocks: 217696
  Show dependency tree
 
Reported: 2012-08-31 11:45 UTC by Vladimir Riha
Modified: 2012-09-13 07:48 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2012-08-31 11:45:28 UTC
Following construct is not recognized as "class" in Navigator (it has the circle icon) because it doesn't use "this" keyword. Would it make sense to identify classes by @class as well?


/**
 * Create a new Hexagon instance.
 * @class Hexagon is a class that is a <i>logical</i> sublcass of
 * @return {Hexagon} description
 */
function Hexagon(sideLength) {

}



Product Version: NetBeans IDE Dev (Build EaselCSS-604-on-20120830)
Java: 1.7.0_06; Java HotSpot(TM) Client VM 23.2-b09
System: Linux version 3.2.0-29-generic-pae running on i386; UTF-8; en_US (nb)
Comment 1 Vladimir Riha 2012-09-03 11:27:22 UTC
@constructor can be also used for this


/**
    Creates a new Person.
    @constructor 
*/ 
Person = function() {
}

var p = new Person();
Comment 2 Martin Fousek 2012-09-12 12:06:17 UTC
It required changes on more places, but finally it looks to be working well. Thanks for reporting.

web-main #d34f70b924dc
Comment 3 Quality Engineering 2012-09-13 02:13:34 UTC
Integrated into 'main-golden', will be available in build *201209130001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/d34f70b924dc
User: Martin Fousek <marfous@netbeans.org>
Log: #217679 - Navigator could use jsdoc to recognize classes
Comment 4 Vladimir Riha 2012-09-13 07:48:16 UTC
thanks a lot, works nice


  Product Version         = NetBeans IDE Dev (Build 201209130001) (#be39de5441ae)
  Operating System        = Linux version 3.2.0-30-generic-pae running on i386
  Java; VM; Vendor        = 1.7.0_07; Java HotSpot(TM) Client VM 23.3-b01; Oracle Corporation