Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 368374 - Allow selection of undisplayed items
Summary: Allow selection of undisplayed items
Status: RESOLVED FIXED
Alias: None
Product: MAT
Classification: Tools
Component: GUI (show other bugs)
Version: 1.1   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Andrew Johnson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-11 12:28 EST by Andrew Johnson CLA
Modified: 2012-01-16 08:35 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Johnson CLA 2012-01-11 12:28:12 EST
Sometimes it is useful to operate on all the objects displayed in a table/tree and not just the visible ones.

This is currently quite tricky, but as an enhancement it can be done by allowing the selection of the totals row to mean all the remaining items.

E.g. the totals row is changed to show how many items are not displayed '5,276 more', and selection of that row selects those items, and selecting all rows selects all items, visible and invisible.

Class Name                                             |   Objects | Shallow Heap | Retained Heap
--------------------------------------------------------------------------------------------------
.*j*.*                                                 |           |              |              
char[]                                                 |    36,755 |    4,016,936 |     4,017,112
java.lang.String                                       |    41,117 |    1,973,616 |     5,713,792
byte[]                                                 |       584 |      964,624 |       964,752
java.lang.Class                                        |     5,291 |      677,248 |     5,648,640
java.util.HashMap$Entry                                |    10,952 |      613,312 |     2,988,392
int[]                                                  |     2,815 |      529,552 |       529,728
java.util.Hashtable$Entry                              |     9,290 |      520,240 |     2,494,984
java.lang.Object[]                                     |     4,057 |      475,792 |     1,208,208
java.lang.reflect.Field                                |     2,597 |      353,192 |       419,984
java.util.HashMap$Entry[]                              |     2,303 |      329,944 |     3,220,040
java.lang.String[]                                     |     3,975 |      276,072 |     1,271,376
java.util.Hashtable$Entry[]                            |       758 |      199,944 |     2,639,648
org.eclipse.core.internal.registry.ConfigurationElement|     2,319 |      185,520 |       958,544
org.eclipse.core.internal.registry.ReferenceMap$SoftRef|     2,868 |      183,552 |       183,680
java.util.HashMap                                      |     2,302 |      165,744 |     3,283,496
Total: 15 of 5,291 entries; 5,276 more                 |   184,705 |   15,116,936 |              
--------------------------------------------------------------------------------------------------
Comment 1 Andrew Johnson CLA 2012-01-16 08:35:21 EST
The code has been committed and help supplied in the 'Tips and tricks' section.