Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Resolve ITypeBinding to IType for anonymous inner classes
Resolve ITypeBinding to IType for anonymous inner classes [message #93023] Sun, 07 September 2003 17:38 Go to next message
Eclipse UserFriend
Hi!

I would like to retrieve an IType for an anonymous inner class by a given ID
"DeclaringClass$<number>". Since IJavaProject.findType(String) does not
support inner types, I wrote a small AST visitor. This returns me the
TypeBinding of the <number>th anonymous inner class of a given
ICompilationUnit. My problem is now that I need an IType, not an
ITypeBinding, and apparently the class Bindings does not have an appropriate
method to resolve this, am I right?

Hope somebody has an idea.

Thank you very much in advance,
Eric
Re: Resolve ITypeBinding to IType for anonymous inner classes [message #93068 is a reply to message #93023] Mon, 08 September 2003 05:43 Go to previous messageGo to next message
Eclipse UserFriend
Sorry Eric. For now an IType cannot be an anonymous of a local type. We have
a feature request for this:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=8613

Jerome

"Eric Bodden" <eric@bodden.de> wrote in message
news:bjhfad$r8a$1@eclipse.org...
> Hi!
>
> I would like to retrieve an IType for an anonymous inner class by a given
ID
> "DeclaringClass$<number>". Since IJavaProject.findType(String) does not
> support inner types, I wrote a small AST visitor. This returns me the
> TypeBinding of the <number>th anonymous inner class of a given
> ICompilationUnit. My problem is now that I need an IType, not an
> ITypeBinding, and apparently the class Bindings does not have an
appropriate
> method to resolve this, am I right?
>
> Hope somebody has an idea.
>
> Thank you very much in advance,
> Eric
>
>
Re: Resolve ITypeBinding to IType for anonymous inner classes [message #93098 is a reply to message #93068] Mon, 08 September 2003 06:59 Go to previous messageGo to next message
Eclipse UserFriend
> Sorry Eric. For now an IType cannot be an anonymous of a local type. We
have
> a feature request for this:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=8613

Hmmm... so that means there is no way at all to retrieve an anonymous type
in eclipse? That is almost a bug rather than a lacking feature I would
say...
Does anybody know when that functionality will be included?

Eric
Re: Resolve ITypeBinding to IType for anonymous inner classes [message #93113 is a reply to message #93098] Mon, 08 September 2003 07:43 Go to previous message
Eclipse UserFriend
"Eric Bodden" <eric@bodden.de> wrote in message
news:bjhnbn$2t7$1@eclipse.org...
> Hmmm... so that means there is no way at all to retrieve an anonymous type
> in eclipse? That is almost a bug rather than a lacking feature I would
> say...
Hey, you got an ITypeBinding for an anonymous type, didn't you?

> Does anybody know when that functionality will be included?
As soon as you send me the money :-)
More seriously, this is on the plan for 3.0, and to tell you the truth, I'm
working on it. Expect to see something in an upcoming build.

Jerome
Previous Topic:Eclipse based product crashes (javaw.exe generated an error...)
Next Topic:Syntax Color problems - universal
Goto Forum:
  


Current Time: Wed May 28 17:53:47 EDT 2025

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

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

Back to the top