ITypeBinding type= ASTResolving.guessBindingForTypeReference(fNode, true); if (type != null) { if (type.isArray()) { type= type.getElementType(); } if (type.isTopLevel() || type.isMember()) { if (type.isClass() && fIsClass) { page.setSuperClass(Bindings.getFullyQualifiedName(type), true); } else if (type.isInterface()) { List superInterfaces = new ArrayList(); superInterfaces.add(Bindings.getFullyQualifiedName(type)); page.setSuperInterfaces(superInterfaces, true); } }
ITypeBinding type= getPossibleSuperTypeBinding(fNode); type= ASTResolving.getTypeBinding(type); if (type != null) { if (type.isArray()) { type= type.getElementType(); } if (type.isTopLevel() || type.isMember()) { if (type.isClass() && fIsClass) { page.setSuperClass(Bindings.getFullyQualifiedName(type), true); } else if (type.isInterface()) { List superInterfaces= new ArrayList(); superInterfaces.add(Bindings.getFullyQualifiedName(type)); page.setSuperInterfaces(superInterfaces, true); } }
	private void fillInWizardPageSuperTypes(NewTypeWizardPage page) {        ITypeBinding type= ASTResolving.guessBindingForTypeReference(fNode, true);        if (type != null) {        	if (type.isArray()) {        		type= type.getElementType();        	}        	if (type.isTopLevel() || type.isMember()) {			    if (type.isClass() && fIsClass) {			        page.setSuperClass(Bindings.getFullyQualifiedName(type), true);			    } else if (type.isInterface()) {			    	List superInterfaces = new ArrayList();			    	superInterfaces.add(Bindings.getFullyQualifiedName(type));			    	page.setSuperInterfaces(superInterfaces, true);			    }        	}		}	}