Community
Participate
Working Groups
}
/**
* <p>
* Determines whether the specified project is faceted. Returns
* <code>false</code> if the project is not accessible or the project is not
* faceted.
* </p>
*
* This method is explicitly designed to avoid activation of the Faceted
* Project Framework if the project is not faceted.
* @param project
* the project to check for the facet presence
* @throws CoreException
* if failed while reading faceted project metadata
*/
public static boolean isFaceted(final IProject project) throws CoreException {
if (project.isAccessible() && project.isNatureEnabled(FacetedProjectNature.NATURE_ID)) {
initialize();
final IFacetedProject fproj = ProjectFacetsManager.create(project);
if (fproj != null) {
return true;
return false;
* Adds a faceted project listener that will be notified when the selected events in the faceted
* project life cycle occur. The listener will apply to all faceted projects that exist in the
* workspace now and in the future (until the listener is removed or the workspace is closed).