Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » About IStructuredSelection's methods
About IStructuredSelection's methods [message #97769] Fri, 11 July 2008 14:20 Go to next message
CAO Dahai is currently offline CAO DahaiFriend
Messages: 16
Registered: July 2009
Junior Member
Why has IStructuredSelection not getLastElement method?
IStructuredSelection has only getFirstElement method.
Re: About IStructuredSelection's methods [message #97785 is a reply to message #97769] Fri, 11 July 2008 14:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ifurnadjiev.innoopract.com

Hi,

RAP does not provide additional methods that are not part of the JFace API.
http://help.eclipse.org/help32/topic/org.eclipse.platform.do c.isv/reference/api/org/eclipse/jface/viewers/IStructuredSel ection.html

Best,
Ivan

Dahai Cao wrote:
> Why has IStructuredSelection not getLastElement method?
> IStructuredSelection has only getFirstElement method.
>
Re: About IStructuredSelection's methods [message #97800 is a reply to message #97769] Fri, 11 July 2008 14:47 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
What do you think this could be used for? There's no guarantee in the
order of the objects. getFirstElement is handy if your control is in
SWT.SINGLE mode. getLastElement implies a SWT.MULTI behaviour and then
my first sentence is important: There's no guaranteed order.

Tom

Dahai Cao schrieb:
> Why has IStructuredSelection not getLastElement method?
> IStructuredSelection has only getFirstElement method.
>


--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------
Previous Topic:Memory leak after session cleanup
Next Topic:Update/close a View
Goto Forum:
  


Current Time: Thu Apr 25 11:16:11 GMT 2024

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

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

Back to the top