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 15351 - [Refactoring] providing refactoring patterns
Summary: [Refactoring] providing refactoring patterns
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker with 1 vote (vote)
Assignee: issues@java
URL:
Keywords:
Depends on: 17825
Blocks:
  Show dependency tree
 
Reported: 2001-09-11 00:01 UTC by markusfuchs
Modified: 2007-04-03 18:02 UTC (History)
5 users (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 markusfuchs 2001-09-11 00:01:42 UTC
I'm using intellij ide, please see www.intellij.com. This ide has got a very 
nice feature: 

* if you have a very long method definition, you can put an area of code into a 
new method. The method parameters, result are recognized automatical
* other refactoring patterns are provided
> > functionality

This feature is very useful in development! It would be great to have this 
incorporated into netBeans.

Thank you,

-- markus.
Comment 1 droberts 2001-11-15 00:07:18 UTC
Refactoring is becoming an industry standard feature of IDE's, witness
IntelliJ, Eclipse, VAJ, and JBuilder all have either partner support
for refactoring or the feature baked into their product.  We must
begin to offer this support to our users.

I know MDR will help enable this, however we need to move with MDR and
not wait for it.  I believe MDR is defining for 4.0, then refactoring
must make it's first appearance in 4.0 as well.

Thanks,
Dan
Comment 2 Svata Dedic 2001-11-19 20:40:21 UTC
Complete source model needed for the refactoring to be reliable (not 
exactly for "extract method" pattern though, it may be approximated 
by less complex infrastructure as well).
Consider moving to the java module for infrastructure development.
Comment 3 Svata Dedic 2001-11-20 06:43:20 UTC
CCing Mila
Comment 4 Jan Chalupa 2001-11-27 12:49:44 UTC
Target milestone -> 3.3.1.
Comment 5 andrew 2002-03-12 02:37:24 UTC
From my every day work the most interesting
refactorings are (ordered by importance):

- find/navigate some java element usage
- rename package/class/member
- move package/class
- find/navigate package/class/method dependences
- view/navigate class/interface hierarchy (extends, 
  implements, is extended by, is implemented by)
- find/navigate "too opened" classes/methods (for example, 
  public instead private, and so on)
- find/navigate not used classes/methods
- find/navigate overridden methods declaration
Comment 6 zohar 2002-03-12 12:46:45 UTC
My preferences:
1. references to a variable/method - very useful to "trace" code and
navigate through it.
2. change a variable/method/package name - saves the guess work
(compile-fix-compile-...) involved in such an action, when you 
realize the name you chose is misleading or has a typo.
3. find unused methods / variables.
4. change the package association of a class - helpful when you want 
to "clean up" the place.
Comment 7 vbrabant 2002-03-19 13:15:34 UTC
I would like to have also some metrics data like:
 - how much is a package depending of another
 - how much package are depending of my package
 - my package is depending from another one ? If yes, which ones
 - is package dependency cyclic (package A use a class of package B 
that use a class of package A)
 - ...


Comment 8 Svata Dedic 2002-05-21 17:48:54 UTC
Cleaning up before 4.0 planning
Comment 9 Marek Grummich 2002-07-19 16:47:56 UTC
Target milestone was changed from not determined to TBD
Comment 10 _ mihmax 2002-09-16 16:41:46 UTC
How can I help?
Where to subscribe?
I tried e-mailing to dev@java.netbeans.org without any success yet.

Why Is your newsgroup not on NNTP? That would be nice.

Please post an ad: "Help for Refactoring team needed" to
nbdev/nbusers, you'll get responses, at least from the users about
what refactorings to implement first.

Create a detailed plan, see
http://www.joelonsoftware.com/articles/fog0000000245.html for many
reasons why detailed planning forewards is good.
Comment 11 vnicolici 2004-07-10 15:35:14 UTC

*** This issue has been marked as a duplicate of 41954 ***
Comment 12 vnicolici 2004-07-10 15:44:03 UTC
Sorry, about the last action, I wanted to mark another bug as a 
duplicate...
Comment 13 Martin Matula 2004-11-09 19:47:09 UTC
The basic refactoring support is implemented. Please create separate 
issues for particular refactoring features you are still missing and 
vote for these issues if you feel strongly about them. Thanks.