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 49683

Summary: Provide package from a given class
Product: java Reporter: Radko Najman <rnajman>
Component: ProjectAssignee: Jesse Glick <jglick>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 4.x   
Hardware: PC   
OS: Linux   
Issue Type: ENHANCEMENT Exception Reporter:

Description Radko Najman 2004-09-29 14:01:17 UTC
In webapps project wizard we need to get package
from java file. It would be useful to have an API
method for this.

Comments from Jesse (to our current very simple
implementation):
Please also file an RFE for there to be an API in
java/project to do this. The implementation here
is clearly not correct in all cases; should not be
so hard to do it right with a tokenizer that
understands just whitespace, block comments, line
comments, 'package', identifiers, and ';'. It
should be done in one central location and heavily
tested. (Useful also for wizards in various modules.)
Comment 1 Jesse Glick 2004-09-29 16:06:19 UTC

*** This issue has been marked as a duplicate of 49685 ***