So trying to figure out how to write a plugin that wants to modify the code in the current editor. Needless to say I am pretty much stuck as I can't find any documentation for this. How does IntelliJ have all these plugins if the documentation is really horrible, how did everyone figure out how to do it? Am I just a retard or something??
What are all these "Psi" classes? PsiElementFactory appears to be what I want but I can't figure out how to get a reference to it. Saw some forumn post (from the FAQ) about PsiManager.getInstance(project).getElementFactory() but the "getElementFactory()" method doesn't appear to exist.
Is there some documentation I am missing somewhere? How do I even start to figure this out?
I have read everthing linked to on this page:
Everything on that page appears to tell you how to get started on a plugin (like how to add it to a menu and such) but nothing tells you how to do anything once you have the plugin all setup.