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 - [50cat] "Encapsulate fields" should default to encapsulate selected fields
Summary: [50cat] "Encapsulate fields" should default to encapsulate selected fields
Status: RESOLVED DUPLICATE of bug 51919
Alias: None
Product: editor
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker with 3 votes (vote)
Assignee: issues@java
: 78466 (view as bug list)
Depends on:
Reported: 2005-09-21 06:06 UTC by crued
Modified: 2007-10-15 13:44 UTC (History)
0 users

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
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 ***