The facets tutorial has a section on constraints:
http://www.eclipse.org/articles/Article-BuildingProjectFacets/tutorial.html#specifying.constraints
- Konstantin