Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ice-build] [eclipse/ice] 380ddd: First pass at converting ResourceComponent to a su...

Jay: I was hoping there was some sort of List “get all elements” method instead of having to manually iterate through and get each one. It seems like it would be a desirable operation, but I guess not…

 

Jordan: Thanks. I had no idea you can just cast to ArrayList in the constructor like that. I kept trying to use Arrays.asList() and running into problems.

 

From: ice-build-bounces@xxxxxxxxxxx [mailto:ice-build-bounces@xxxxxxxxxxx] On Behalf Of Jordan Deyton
Sent: Monday, February 02, 2015 10:40 AM
To: ice-build@xxxxxxxxxxx
Subject: Re: [ice-build] [eclipse/ice] 380ddd: First pass at converting ResourceComponent to a su...

 

If what you're doing is trying to return a copy of the list of child ICEResources managed by the ResourceComponent, you could just return new ArrayList<ICEResource>(this). ResourceComponent is a sub-class of a Collection implementation.

Jordan

Jordan Deyton
Oak Ridge National Laboratory
Telephone: (865) 574-1091
Email: deytonjh@xxxxxxxx

On 1/30/2015 8:19 PM, Jay Jay Billings wrote:

Anna,

What about just looping over each element using ListComponent.get()?

Jay

On Jan 30, 2015 6:02 PM, "GitHub" <noreply@xxxxxxxxxx> wrote:

  Branch: refs/heads/anna/postprocessing
  Home:   https://github.com/eclipse/ice
  Commit: 380ddd7a48254c9bfdf12f4c7d7aa703b85436cd
      https://github.com/eclipse/ice/commit/380ddd7a48254c9bfdf12f4c7d7aa703b85436cd
  Author: Anna Wojtowicz <wojtowicza@xxxxxxxx>
  Date:   2015-01-30 (Fri, 30 Jan 2015)

  Changed paths:
    M src/org.eclipse.ice.datastructures/src/org/eclipse/ice/datastructures/form/ResourceComponent.java

  Log Message:
  -----------
  First pass at converting ResourceComponent to a subclass of
ListComponent. Still need to figure out a different way to implement
getResources(). (Preferably in a way that doesn't break everything...)

Signed-off-by: Anna Wojtowicz <wojtowicza@xxxxxxxx>



_______________________________________________
ice-build mailing list
ice-build@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/ice-build




_______________________________________________
ice-build mailing list
ice-build@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/ice-build

 


Back to the top