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 106773 - Editor suggesstion: 'Create class/interface/enum MyClass'
Summary: Editor suggesstion: 'Create class/interface/enum MyClass'
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-15 10:39 UTC by tomzi
Modified: 2013-09-02 14:20 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tomzi 2007-06-15 10:39:15 UTC
Imagine, I create a method:

public MyOtherClass getAnInstance()
{...}

But MyOtherClass does not exist. It would handy to have a editor suggestion like:

.) Create class MyOtherClass
.) Create interface MyOtherClass
.) Create enum MyOtherClass
Comment 1 tomzi 2007-06-15 10:43:34 UTC
Same for declarations like:

    MyOtherClass myClass;

-> A similiar suggestion should appear
Comment 2 Jiri Prox 2007-06-15 12:16:27 UTC
This partially works now in latest builds - hints allows to create new class (with proper constructor if necessary)
Comment 3 tomzi 2007-06-19 13:50:21 UTC
Well true, this seems to work partially if you eg. write

   public MyOtherClass 

or 
   public MyOtherClass test

then a suggestion bulb appears. However the bulb does not appear if i continue writing:

   public  MyOtherClass test()

adding (). I ususally continues writing the empty method body and then correct the errors.
Please also add support for interfaces/enums :)