anyone can tell me how to get the current project and the current file in the editor.
I'm using to get the project:
And for the editor:
FileEditorManager manager = FileEditorManager.getInstance(ModificationsPlugin.myProject);
VirtualFile files = manager.getSelectedFiles();
and then the files is the current one.
The problem with the project is when i have more than one Intellij instance running.
The problem with the editor file is that it works with Idea 4.5 but in 5.0 has some problems(only when i close the project and open again it works).
Any ideas? Thanks in advance.