The method addComponent(LoginForm) is undefined for the type Panel

I got project. I’m trying to migrate it from
Vaadin 6
to
Vaadin 7
.

The problem with
Panel
class:
Eclipse says
The method addComponent(LoginForm) is undefined for the type Panel
.

How to fix it ?

Panel is now a SingleComponentContainer, which only has a setContent()-method.