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 51919

Summary: [40cat] Select fields to be encapsulated from the cursor selection
Product: java Reporter: hopeless <hopeless>
Component: RefactoringAssignee: Jan Becicka <jbecicka>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P2    
Version: 4.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on:    
Bug Blocks: 100758    

Description hopeless 2004-11-29 16:48:37 UTC
[ BUILD # : 200411231853 ]
[ JDK VERSION : J2SE 1.5.0 ]

If you put the cursor over a field in the code
editor, right-click and select
refactor->Encapsulate Fields... the field is the
only one selected.  If you place the cursor in the
body of the class, all the fields are selected for
encapsulation. 

A middle road would be nice: Select a range of
fields in the editor, right-click and have only
those fields selected in the encapsulation dialog.
Comment 1 Jan Becicka 2005-12-07 07:48:21 UTC
*** Issue 69956 has been marked as a duplicate of this issue. ***
Comment 2 Jan Pokorsky 2007-10-15 13:42:19 UTC
*** Issue 63112 has been marked as a duplicate of this issue. ***
Comment 3 Jan Pokorsky 2007-10-15 13:44:37 UTC
*** Issue 64784 has been marked as a duplicate of this issue. ***
Comment 4 Jan Pokorsky 2007-10-15 13:52:06 UTC
Increasing priority since it seems there is a demand for this feature.
Comment 5 Jan Becicka 2011-06-15 14:47:54 UTC
Changeset: http://hg.netbeans.org/jet-main/rev/331688c7b104
Author:    Jan Becicka <jbecicka@netbeans.org>
Date:      2011-06-15 16:44
Message:   
Issue #51919 - [40cat] Select fields to be encapsulated from the cursor selection
Comment 6 Quality Engineering 2011-06-16 19:58:58 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/331688c7b104
User: Jan Becicka <jbecicka@netbeans.org>
Log: Issue #51919 - [40cat] Select fields to be encapsulated from the cursor selection