Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » What's the difference between getResource and getUnderlyingResource in IJavaElement
What's the difference between getResource and getUnderlyingResource in IJavaElement [message #1775214] Thu, 26 October 2017 11:51 Go to next message
Dollyn Sun is currently offline Dollyn SunFriend
Messages: 68
Registered: July 2009
Location: China
Member

I can tell the difference between getCorrespondingResource() and the above two methods. But for getResource and getUnderlyingResource , the description seems like the same.

Quote:
Returns the smallest underlying resource that contains this element, or null if this element is not contained in a resource.


Quote:
Returns the innermost resource enclosing this element.


Could somebody give some example when these two methods will return different result?


Dollyn
Re: What's the difference between getResource and getUnderlyingResource in IJavaElement [message #1775216 is a reply to message #1775214] Thu, 26 October 2017 11:55 Go to previous message
Dollyn Sun is currently offline Dollyn SunFriend
Messages: 68
Registered: July 2009
Location: China
Member

Sorry about the duplicate... It seem that i can't delete it myself...

Dollyn
Previous Topic:Oxygen.1, Java 9, Maven Dynamic Web Project Guide
Next Topic:I cant start eclipse
Goto Forum:
  


Current Time: Mon Dec 11 13:11:31 GMT 2017

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

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