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 - New java hints
Summary: New java hints
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker with 1 vote (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-24 18:35 UTC by proktor
Modified: 2013-11-16 12:57 UTC (History)
1 user (show)

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 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