Community
Participate
Working Groups
Hi, I am working on the jdom, when i try to get the superclass information of an IDOMType it returns me the class name as given in the code, where as what i need is the fully qualified name of the class. for eg., package com.xyz; class A { public int one; } package com.xyz; class B extends A { public String two; } with regard to the same above given example, i also face a problem when try to work with the IDOMField.getType() method it returns me String where as not java.lang.String, what can i do if i need to get these things as said by me. Waiting for an urgent reply with regards easwaran.V
The simplest for you would be to switch from JDOM to the new DOM AST (org.eclipse.jdt.core.dom.AST), which carries annotations about bound types (type bindings). Alternatively, you could request explicit name resolution in the context of your unit, see IType.resolveType(String typeName)
Closing