Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » About IStructuredSelection's methods
About IStructuredSelection's methods [message #97769] Fri, 11 July 2008 10:20 Go to next message
Eclipse UserFriend
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 10: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 10:47 Go to previous message
Eclipse UserFriend
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 May 08 02:32:11 EDT 2025

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

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

Back to the top