-Lanuch Eclipse, switch to LIferay perspective.
-Setup server and SDK.
1.For portlet.xml:
-Create a portlet plugin project, double click the portlet.xml file.
-Right click on "Portlet" > Add Portlet.
-Enter the valid Portlet name and Portlet class, then click "Create" button to create the portlet class.
-Right click on "Security Constraints" > Add Security Constraint Detail.
-For the Portlet Names, click "Add" button > click the Browse button for the Name.
Can not see the existing portlets after Browse.
2.For liferay-hook.xml:
-Create a hook plugin project, double click the liferay-hook.xml
-Right click on the Filters and Mappings > Add > Servlet Filter, enter the servlet filter name and imolementation, then create the implementation.
-Right click on the Filters and Mappings > Add > Servlet Filter Mapping.
-For the Servlet Filter Name, click Browse.
Can not see the existing filter.