title: Having problems with IJavaElement/IType (of a class) - how to get the IType of the superclass
body: <p>In an eclipse plugin, given that I'm holding an IJavaElement (also IType) of a Java class<br>
  org.eclipse.jdt.core.IType  </p>
  
  <p>How do I get the IType (or some other object representation, like IJavaElement) of its superclass?
  I don't want to use the newSupertypeHierarchy() because that is too much overhead.
  I just want the direct, one level up, superclass...<br>
  I tried all of the following methods<br>
  (in the code below 'subType' is a IJavaElement representation of a class whose superclass I want to get):</p>
  
  <pre><code>System.out.println("subType root: "+((IType) subType).getTypeRoot().getElementName());
  System.out.println("subType primary: "+subType.getPrimaryElement().getElementName());
  System.out.println("subType ansc: "+((IType) subType).getAncestor(0));
  System.out.println("subType dclr:"+((IType) subType).getDeclaringType());
  System.out.println("subType parnt: "+((IType) subType).getParent().getElementName());
  </code></pre>
  
  <p>None of them produced the super class</p>