Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » How to get full classname from IMethod
How to get full classname from IMethod [message #214351] Thu, 08 September 2005 18:02
Eclipse UserFriend
Originally posted by: user.domain.invalid

Hi,

How can I get class name from IMethod.

For example I do have hello.java:

class Hello {

class HelloInner {

public void foo() {
}
}

}

Assume we have an iMethod instance of the foo method. When I try to get
the className (Hello.HelloInner) using getAncestor(IJavaElement.TYPE), I
only got the helloInner. How can I get the full class names?

Similarly is it possible to figure out full class names from
MethodDeclaration?

Sung

PS - is there any other newsgroups or forums to ask general plug-in
development questions like this?
Previous Topic:Complex condition breakpoint?
Next Topic:Local rename without full fledged refactoring and save ?
Goto Forum:
  


Current Time: Fri Jul 25 04:09:21 EDT 2025

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

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

Back to the top