Community
Participate
Working Groups
I20070206-0010 To make the editing experience more pleasant, the extension section of the plugin editor should support multi selection to allow for easy removal of items.
This bug will affect how clipboard operations (copy, cut, paste) are enabled and performed. The underlying code is already written for performing copy, cut and paste of multi-selected objects; however, the calculation of multiplicity constraints to determine enablement is made more complex. Just a heads up to take this into consideration when enabling multi-select.
This is not as straightforward as just replacing SWT.SINGLE with SWT.MULTI (which by the way is in the createClient(Section, FormToolkit) method of the ExtensionsSection class). A mass delete is not wrapped as a single operation (although the current code does handle the multiselect gracefully per comment 1), so you need N undo operations equal to the N elements that you have removed.
I'm working on limited functionality right now. Multiselect that works only with remove option. MULTI is not applicable for move up/down but using it for copy/paste is to consider.
Created attachment 80937 [details] MULTI and delete support proposal as for now plugin.xml changes undo don't work (3.4M2) this is not addressed in this proposal. delete selected for multiple selection si supported, but copy/paste is not. selectAll added.
Created attachment 80938 [details] mylyn/context/zip
Do you think we could disable undo somehow when we delete multiple? I get a ton of NPEs and weird exceptions if I delete multiple things, start undoing, delete multiple things again, start undoing... lots of weird behavior when you keep repeating this process.
maybe i don't have test environment configured properly :| could you point me to the undo code (plugin) ?
Ok, just tried this and undo is disabled. I must've had a bad environment setup.
Thanks Bartosz, it's the small things like this that really help people :)
Chris, sorry I was not able to get to this yesterday. Bartosz, thanks for working on this. This should make many people's life a little easier. Works very well.