There is an article on eclipse.org that shows how to create project
facets. While the article is phrased as an "extending WTP" topic, the API
overview that it gives is very relevant outside of WTP.
This tutorial can also be found in ISV docs that come with Faceted Project
Framework SDK and it will be updated to reflect any changes to the
framework as it gets established as an independent project.