Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Bindings order?(How to get a list of bindings representing all the fields declared as members of a class, interface, or enum type in the declared order of the Java source file?)
Bindings order? [message #731877] Mon, 03 October 2011 11:19 Go to next message
Christophe Bismuth is currently offline Christophe BismuthFriend
Messages: 67
Registered: July 2009
Location: Paris, France
Member

Hi,

I'm using the "IVariableBinding[] org.eclipse.jdt.core.dom.ITypeBinding.getDeclaredFields()" API, but as its documentation stands: "The resulting bindings are in no particular order.".
Is there any other way to get this result set in the declared order of the Java source file?

Thank you,
Chris
Re: Bindings order? [message #732162 is a reply to message #731877] Tue, 04 October 2011 06:08 Go to previous messageGo to next message
Satyam Kandula is currently offline Satyam KandulaFriend
Messages: 444
Registered: July 2009
Senior Member
You can determine the order by calling IVariableBinding#getVariableId()
[SOLVED] Re: Bindings order? [message #732202 is a reply to message #732162] Tue, 04 October 2011 08:32 Go to previous messageGo to next message
Christophe Bismuth is currently offline Christophe BismuthFriend
Messages: 67
Registered: July 2009
Location: Paris, France
Member

That's really great news, thank you Satyam.
Re: [SOLVED] Re: Bindings order? [message #732271 is a reply to message #732202] Tue, 04 October 2011 11:40 Go to previous message
Christophe Bismuth is currently offline Christophe BismuthFriend
Messages: 67
Registered: July 2009
Location: Paris, France
Member

https://bitbucket.org/cbismuth/jdtsort/issue/1/
Previous Topic:parsing function calls
Next Topic:Implicit conversion between Double and double
Goto Forum:
  


Current Time: Tue Sep 24 05:23:10 GMT 2024

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

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

Back to the top