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 26754

Summary: Implement some replacement for ClassElement.forName.
Product: java Reporter: Jan Jancura <jjancura>
Component: UnsupportedAssignee: Tomas Hurka <thurka>
Status: CLOSED FIXED    
Severity: blocker CC: ttran
Priority: P1 Keywords: API
Version: 3.x   
Hardware: All   
OS: All   
Issue Type: TASK Exception Reporter:
Bug Depends on:    
Bug Blocks: 26753, 27481, 27637, 28450    

Description Jan Jancura 2002-08-23 17:46:04 UTC
Implement some replacement for ClassElement.forName.
Comment 1 Svata Dedic 2002-10-16 11:25:19 UTC
I will try to hack in a heuristic implementation of CE.forName()
shortly and deprecate the method. Tomas will invent a new one, with
proper behaviour w.r.t. Projects.
Comment 2 Svata Dedic 2002-10-18 13:09:18 UTC
Partial fix done. ClassElement.forName() will find sources, but may
not be able to resolve references to full names.
Reassigning to Tomas; good luck!
Comment 3 Tomas Hurka 2002-11-11 13:54:45 UTC
Done in prj40_prototype branch.

There are two new methods
org.openide.src.ClassElement.forName(
        org.netbeans.api.java.project.JavaProject project, 
        String name)
and
org.openide.src.ClassElement.forName(
        org.netbeans.api.java.project.JavaProject  project, 
        Class name)
These two new methods replace ClassElement.forName(String name) and
ClassElement.forName(Class clazz). The old forName() methods without
project context are deprecated and should not be used.

See issue #27481 for other important changes in Java module
Comment 4 Jan Becicka 2003-11-25 14:04:40 UTC
As described in
http://www.netbeans.org/servlets/ReadMsg?msgId=619519&listName=nbdiscuss the
current work on projects prototype has been stopped.

Marking issue as VERIFIED --->
Comment 5 Jan Becicka 2003-11-25 14:13:47 UTC
---> CLOSED