Hi,
We created a project which should help you write a plugin. You will find the code here
www.manictime.com/code/ManicTimePluginTester.zipIt is a Visual Studio 2010 project and Express edition (free) should be enough to use it.
As an example there is a sample plugin for Notepad. Notepad has titles like 'filename - Notepad'. So for this plugin we just parse the title and take the first part as filename. You can use almost the same code for what you are trying to do.
The main project is there just so you can test it, you don't need to look a it.
We also copied all ManicTime plugins in the project so by default it will track all apps that MT does. Plugins are in ManicTimePluginTester\bin\Debug\Plugins\
For Eclipse just add another project (class library) and name it 'Plugins.Eclipse'. How you name it is not important, this is the way we name them.
Once you are done, you need to copy the dll to Plugins folder in ManicTimePluginTester\bin\Debug\Plugins\
Main project will go through all dlls in this folder and load all with Plugin attribute. When you are done you also add a plugin to ManicTime by copying it to ManicTime/Plugins folder.
Let me know what you think.
Andrej