Community
Participate
Working Groups
TableViewer and TreeViewers provide methods to insert a model element and so should ListViewer
Created attachment 50178 [details] Support for Insert in AbstractListViewers - add insert(Object element, int position) - added insertItem(ILabelProvider labelProvider, Object element, int index) common part from add(Object[] elements) - refactored add(Object[] elements) to use insertItem
Patch applied to HEAD >20060914 with the following changes: - added contribution comment - did not apply unrelated visibility change to getLabelProviderText - changed formatting to match our conventions Thanks for the patch and the corresponding test case!
(In reply to comment #2) > Patch applied to HEAD >20060914 with the following changes: > > - added contribution comment > - did not apply unrelated visibility change to getLabelProviderText Uups. I don't know why I have done this but I think it was because I started in ListViewer > - changed formatting to match our conventions > That's always a problem to me because I don't have your formats defined in my eclipse installation and I can't press CTRL+SHIFT+F. Where do I get your format definition? > Thanks for the patch and the corresponding test case! > Boris would you mind adding my E-Mail-Address when adding me to contributions?
(In reply to comment #3) > > - changed formatting to match our conventions > > That's always a problem to me because I don't have your formats defined in my > eclipse installation and I can't press CTRL+SHIFT+F. Where do I get your format > definition? We just use Eclipse (built-in). > Boris would you mind adding my E-Mail-Address when adding me to contributions? Not at all. I thought Bugzilla was a better place to look up the e-mail address, but I can add your e-mail address to the contribution comment as well.
Verified using I20061031-0656.