@Override
    public int getChildCount( Object parent )
    {
    	if(parent instanceof ReadContext)
    		return 1;
    	if(parent instanceof PrintContext)
    		return 1;
        if(parent instanceof ParseTree)
            return((ParseTree)parent).getChildCount( );
        return -1;
    }