Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » [Feature request] Remove by position in EolSequence
[Feature request] Remove by position in EolSequence [message #542428] Thu, 24 June 2010 19:02 Go to next message
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 Go to previous message
Dimitrios Kolovos is currently offline 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 Go to previous message
Dimitrios Kolovos is currently offline 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
Previous Topic:[Feature request] Remove by position in EolSequence
Next Topic:Merging fragments
Goto Forum:
  


Current Time: Sat Sep 20 12:05:21 GMT 2014

Powered by FUDForum. Page generated in 0.11123 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software