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 64784

Summary: [50cat] "Encapsulate fields" should default to encapsulate selected fields
Product: editor Reporter: crued <crued>
Component: RefactoringAssignee: issues@java <issues>
Severity: blocker    
Priority: P3    
Version: 5.x   
Hardware: PC   
OS: Windows XP   
Issue Type: ENHANCEMENT Exception Reporter:

Description crued 2005-09-21 06:06:26 UTC
[ JDK VERSION : 1.5.0_01 ]

Currently, If I have the following fields declared:

int x;
int y;
int z;

And I select the second and third lines and then choose "Refactor->Encapsulate Fields..." all of the fields in my object are selected in the dialog by default.

It would be much more convenient if instead only those fields that are on a line that is withing the selection (or maybe only those whose names have been entirely selected?) should be selected by default.
Comment 1 Jiri Prox 2006-06-20 08:17:16 UTC
*** Issue 78466 has been marked as a duplicate of this issue. ***
Comment 2 Jan Pokorsky 2007-10-15 13:44:37 UTC

*** This issue has been marked as a duplicate of 51919 ***