Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AJDT » How to find fully qualified type name from simple type name?
How to find fully qualified type name from simple type name? [message #595186] Tue, 31 October 2006 18:40
Eclipse UserFriend
Originally posted by:

Hi all,

How can I find the fully qualified type name of an aspect from a simple
type name in my plug-in? If I have an IType object (e.g. theJavaType)
that represents a class, then

theJavaType.resolveType( "someClass" );

works fine and returns the fully qual. name of "someClass" which is
visible in theJavaType. If I have an IType that represent an aspect
(e.g. theAspectType), then it does not work and null is returned for
another aspect "someAspect" that is visible in theAspectType:

IType theAspectType = ... // Get IType for aspect E

String[][] tp = theAspectType.resolveType( "someAspect" );
// returns null;

The aspect in question could look like:

public aspect E
declare precedence : someAspect, someOtherAspect;

It should be noted that IType is org.eclipse.jdt.core.IType and not and I assume that I should be
using the latter, but I do not know how to retrieve it. Is there maybe
an easier way to resolve a type name than using IType.resolveType?

Thanks a lot,

Previous Topic:How to retrieve AspectJ model during build in eclipse?
Next Topic:Using changed ajde.jar in plugin project
Goto Forum:

Current Time: Mon Oct 23 08:15:13 GMT 2017

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

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