I am an absolute newbie to Eclipse Plug-in development, so I would just like to ask for guidance. There are a lot of tutorials, but they all seem to contain a lot of information in which I get lost quite easily. My task is to make a plugin that will manipulate user's Java code; add it, change it, give him suggestions, etc.
So,
1) What type of plugin do I need to implement?
2) How do I get users editor and code inside it?
3) Is it possible to hook up to ctrl+space shortcut and add some entries to the menu that pops up?
Is all of this possible?
I am just asking for directions, so I hope you'll have understanding.
You would be developing an Eclipse plug-in. Eclipse plug-ins are OSGi bundles (information stored in the manifest.mf) with additional Eclipse specific settings added (specifically extensions which are stored inside plugin.xml). The PDE tool makes it easy to get started here, you can follow a tutorial, a cheatsheet or just try it out yourself (File > New > Plug-in Project.
2) How do I get users editor and code inside it?
Java Development Tools (JDT) provides APIs to interact with java classes and source. There are also many APIs to extend the editor. Try exploring their APIs, as they are well documented.
3) Is it possible to hook up to ctrl+space shortcut and add some entries to the menu that pops up?
I believe JDT has APIs to add additional options for code assist. You can also add code templates (ex. syso > System.out). For non-JDT editors you will have to write a builder that inspects the resources and creates problem markers.