|
|
|
Re: IStructuredSelection thoughts [message #536751 is a reply to message #536596] |
Sun, 30 May 2010 17:17 |
Vijay Raj Messages: 608 Registered: July 2009 |
Senior Member |
|
|
Personally i think iteratable is use less...
especially in java 1.5 u have foreach ,which makes itteratable useless...
give me one instance where iteratable is useful or without it work can not be done...
i think it just over complicates things(collections)...
---------------------
why, mr. Anderson, why, why do you persist?
Because I Choose To.
Regards,
Vijay
|
|
|
|
Re: IStructuredSelection thoughts [message #536757 is a reply to message #536755] |
Sun, 30 May 2010 18:16 |
Vijay Raj Messages: 608 Registered: July 2009 |
Senior Member |
|
|
Quote: | I guess you are mixing up Iterator and Iterable!
|
???
how does it matter. to use iterable u ask for a iterator by iterator method....
and ultimately it comes down to iterator..
any way IStructuredSelection has toList Method which is iterable....
---------------------
why, mr. Anderson, why, why do you persist?
Because I Choose To.
Regards,
Vijay
|
|
|
|
Re: IStructuredSelection thoughts [message #536759 is a reply to message #536758] |
Sun, 30 May 2010 18:39 |
Vijay Raj Messages: 608 Registered: July 2009 |
Senior Member |
|
|
by implementing iteratable u just have to implement a method iterator()...
which is already there,what difference will it make...???
---------------------
why, mr. Anderson, why, why do you persist?
Because I Choose To.
Regards,
Vijay
|
|
|
|
|
|
Re: IStructuredSelection thoughts [message #536764 is a reply to message #536762] |
Sun, 30 May 2010 19:09 |
Vijay Raj Messages: 608 Registered: July 2009 |
Senior Member |
|
|
but slection dont come as maps,
they can only come as an array or list right....
hashmap has "hash" in it,it uses buckets to store values according to hash values,hence it does not require to iterate thru the whole thing(in some cases)...
list does not use a hash value....
---------------------
why, mr. Anderson, why, why do you persist?
Because I Choose To.
Regards,
Vijay
|
|
|
|
Re: IStructuredSelection thoughts [message #536770 is a reply to message #536765] |
Sun, 30 May 2010 19:39 |
Vijay Raj Messages: 608 Registered: July 2009 |
Senior Member |
|
|
hmmm...
ok do u want to show results in table on request...
(VirtualTables would be the answer)
Or
u want structured selection to behave lazily ....
i think that would not be possible,cuz tableviewer asks the table for selected items and it gets the item.data to construct the selection...
so nothing can be done here lazily(may be sombody has ideas)
---------------------
why, mr. Anderson, why, why do you persist?
Because I Choose To.
Regards,
Vijay
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04350 seconds