PsiFile & FileType association
Hi,
How can I associate a FileType and a PsiFile in order to use default manager to save the file?
Suppose I want to associate "*.ccc" files with XmlFile. So, I can open ccc in a custom editor (a extension og PerspectiveFileEditor) but use a xml manager to save modifications...
Is there a way?
Thanks,
Andre
Please sign in to leave a comment.
Hello Andre,
A> How can I associate a FileType and a PsiFile in order to use default
A> manager to save the file?
A>
A> Suppose I want to associate "*.ccc" files with XmlFile. So, I can
A> open ccc in a custom editor (a extension og PerspectiveFileEditor)
A> but use a xml manager to save modifications...
A>
A> Is there a way?
FileTypeManager.associateExtension(StdFileTypes.XML, "ccc");
--
Dmitry Jemerov
Software Developer
http://www.jetbrains.com/
"Develop with Pleasure!"
Thanks Dmitry!