I m trying to implement a HyperlinkDetector for an Eclipse plug-in and the callback method is giving me an ITextViewer to work with.
How do i get the project, IPath or IFile of the viewer s IDocument?
Apparently the concept of an IDocument is to only allow access to the content regardless of the source. All i can come up with is to check the active editor part in the workbench...
Since it s Java code i m working on, the actual type is a JavaSourceViewer if that helps.