System.out.println("Project not open");
	public boolean hasChildren(Object element) {		// don't allow to drill down into a compilation unit or class file		if (element instanceof ICompilationUnit ||				element instanceof IClassFile ||				element instanceof IFile)			return false;					if (element instanceof IJavaProject) {			IJavaProject jp= (IJavaProject)element;			if (!jp.getProject().isOpen()) {				System.out.println("Project not open");				return false;			}			}				if (element instanceof IParent) {			try {				// when we have Java children return true, else we fetch all the children				if (((IParent)element).hasChildren())					return true;			} catch(JavaModelException e) {				//ErrorDialog.openError(Utilities.getFocusShell(), "Children non present", null, e.getStatus());				return false;			}		}		Object[] children= getChildren(element);		return (children != null) && children.length > 0;	}