[Feature request] Remove by position in EolSequence [message #542428] |
Thu, 24 June 2010 19:02 |
Eclipse User |
|
|
|
Originally posted by: antonio.garciadominguez.uca.es
Hi all,
I needed to remove elements by position in EolSequence, but I could only use
the remove(Object) method of EolCollection, which removes by value. I tried
to use the remove(int) method in the underlying ArrayList, but I just
couldn't, not even after calling getStorage() explicitly.
In the end, I added removeAt() and removeLast() to EolSequence for doing
this. I thought it might be useful for others, so I have reported the
feature request to Bugzilla, with a patch that implements the methods and
mentions them in the Epsilon book:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=317873
Comments are welcome :-).
Cheers,
Antonio
|
|
|
Re: [Feature request] Remove by position in EolSequence [message #542810 is a reply to message #542428] |
Sat, 26 June 2010 10:01 |
Dimitrios Kolovos Messages: 1776 Registered: July 2009 |
Senior Member |
|
|
Thanks Antonio. I'll have a look at this and incorporate it in the new
wrapper-less version we're working on.
Cheers,
Dimitris
Antonio García Domínguez wrote:
> Hi all,
>
> I needed to remove elements by position in EolSequence, but I could only use
> the remove(Object) method of EolCollection, which removes by value. I tried
> to use the remove(int) method in the underlying ArrayList, but I just
> couldn't, not even after calling getStorage() explicitly.
>
> In the end, I added removeAt() and removeLast() to EolSequence for doing
> this. I thought it might be useful for others, so I have reported the
> feature request to Bugzilla, with a patch that implements the methods and
> mentions them in the Epsilon book:
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=317873
>
> Comments are welcome :-).
>
> Cheers,
> Antonio
|
|
|
Re: [Feature request] Remove by position in EolSequence [message #590407 is a reply to message #542428] |
Sat, 26 June 2010 10:01 |
Dimitrios Kolovos Messages: 1776 Registered: July 2009 |
Senior Member |
|
|
Thanks Antonio. I'll have a look at this and incorporate it in the new
wrapper-less version we're working on.
Cheers,
Dimitris
Antonio García Domínguez wrote:
> Hi all,
>
> I needed to remove elements by position in EolSequence, but I could only use
> the remove(Object) method of EolCollection, which removes by value. I tried
> to use the remove(int) method in the underlying ArrayList, but I just
> couldn't, not even after calling getStorage() explicitly.
>
> In the end, I added removeAt() and removeLast() to EolSequence for doing
> this. I thought it might be useful for others, so I have reported the
> feature request to Bugzilla, with a patch that implements the methods and
> mentions them in the Epsilon book:
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=317873
>
> Comments are welcome :-).
>
> Cheers,
> Antonio
|
|
|
Powered by
FUDForum. Page generated in 0.03247 seconds