Before beginning component development, you have to import the
component project you just created into Eclipse.
To import the Discovery Framework Component SDK project you just
created into Eclipse:
Within Eclipse, choose
File > Import > General > Existing
Projects into Workspace.
As the root directory from which to import, select the directory
where you installed the Component SDK. You should see multiple projects to
import.
Import the portlets you need to work with. If your portlets
depend on shared library projects located within the
/shared directory, import those as well.
Note: It takes some time for projects to build after they are
imported.