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.
The list of editor macros in the options dialog is unsorted (just ordered by most recently added), and not sortable (e.g. by clicking on the column headers). With many macros in the list, it is increasingly unorganized, and it becomes hard to visually grep for entries. The same is also true for the Code Templates list, I think, and possibly for other such grid views in the options.
Not very nice. Thanks for the RFE.
Fixed. --- http://hg.netbeans.org/main/rev/0a019c77dca3
Still unsorted for me in 6.1 Beta (Build 200803050202).
This was not included in beta1 branch, use trunk build.
Reopening because: When adding a macro ("New" button), the new macro is inserted at the end of the list, regardless of the list's sort order. One has to toggle the sort order for the new entry to move to the correct position. Product Version: NetBeans IDE 6.1 (Build 200804211638) Java: 1.6.0_04; Java HotSpot(TM) Client VM 10.0-b19 System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb) Userdir: C:\Documents and Settings\nm\.netbeans\6.1
Advancing target milestone.
Updated TM.
Created attachment 132433 [details] Proposed patch I like to propose this simple patch to solve the issue: The table is resorted after adding a macro to the table. I could have add a property change listener to the table model, but this change listener would only on the first modification of the model. So this minimal approach. @NB-Devs: Please review and commit.
(In reply to comment #8) > Created attachment 132433 [details] > Proposed patch > > I like to propose this simple patch to solve the issue: The table is resorted > after adding a macro to the table. I could have add a property change listener > to the table model, but this change listener would only on the first > modification of the model. So this minimal approach. > > @NB-Devs: Please review and commit. Oh i missed a word: I could have add a property change listener to the table model, but this change listener would only fire on the first modification of the model.
@Svata: Any change to get the patch integrated in 7.4?
Created attachment 134070 [details] Refinement I added a little refinement - the table is scrolled to the newly added element + row is selected. Please review.
(In reply to comment #11) > Created attachment 134070 [details] > Refinement > > I added a little refinement - the table is scrolled to the newly added element > + row is selected. Please review. @Svata: Looks good and works the way it should work.
Applied in rev http://hg.netbeans.org/jet-main/rev/6e0a0a16de6b
Integrated into 'main-golden', will be available in build *201305052300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/6e0a0a16de6b User: Svata Dedic <sdedic@netbeans.org> Log: #123946: macro list is sorted after new macro is added [Benno Markiewicz]