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 138132

Summary: New java hints
Product: java Reporter: proktor <proktor>
Component: HintsAssignee: Svata Dedic <sdedic>
Status: NEW ---    
Severity: blocker CC: markiewb
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description proktor 2008-06-24 18:35:44 UTC
Hello. I've got a question - are you planning to add some new Java hints to editor in incoming 6.5 release? It's area
where NB lacks a bit. I'll be very happy (and I believe, not only me ;)), if I can some new hints like:
- change name compilation unit (filename) when we change class name without refactoring 
- same with package 
- split/join variable declaration
- convert variable into field
- add return statement with proposal
- convert String to StringBuilder
- etc (I you like I can write more ideas).

I also think that creating new classes and methods by hints should be more complex - we should be able to specify
package, folder and visibility of created class/method (like in Eclipse) - it'll be especially useful in TDD (now I've
to move classes from test to src folder).

A preview of expected changes in code make by hint will be very nice.
Comment 1 markiewb 2013-11-16 12:57:41 UTC
- change name compilation unit (filename) when we change class name without refactoring - works in 7.4
- same with package - works in 7.4
- split declaration - works in 7.4
- join variable declaration - duplicate of https://netbeans.org/bugzilla/show_bug.cgi?id=155043
- convert variable into field - ??? What do you exactly want?
- add return statement with proposal - ??? What do you exactly want?
- convert String to StringBuilder - supported by external plugin http://plugins.netbeans.org/plugin/47589/additional-hints