*
* @return a binary name of class or null if no class with the main method is selected
*/
@SuppressWarnings("unchecked")
public String getSelectedMainClass () {
ElementHandle te = null;
if (isValidMainClassName (jMainClassList.getSelectedValue ())) {
te = (ElementHandle)jMainClassList.getSelectedValue();
}
if (te instanceof AstDfn) {
return ((AstDfn) te).qualifiedName();
}
return te == null ? null : te.getName();
}