Is there a way to detect if a file is part of a facet?

I have an XmlFile (and through it its corresponding VirtualFile) and would like to know if that file is part of a facet, i.e. I'm looking for the facet containing the file in question (if any).

2 comments
Comment actions Permalink

Can you take a look at WicketForge? and I think you just want WicketForgeFacet.isPresent(psiElement) validation.
WicketClassAnnotator java file in http://code.google.com/p/wicketforge/source/browse

0
Comment actions Permalink

Thanks, helped.

0

Please sign in to leave a comment.