|
[EMF-RCP] Create Marker on a EObject -
09-16-2008, 05:27 AM
hello,
I spent lot of time for resolving my problem and unfortunately nothing was good.
In fact, I have my editor which contains a collection of EObject. I would like when i load a file in this editor, to check it and add some notifications in my problem view if there are some errors.
My problem is for creating the IMarker. For getting the "createMarker" function I need to have a IResource. And until now, the only way i found for getting a IResource is :"ResourcesPlugin.getWorkspace().getRoot()"
But if i click on my marker on the problem view, the resource is not filled, and the link with my object in my editor is not realised. My marker is free and not linked to a "real" resource.
I would like to add a marker, where when i click on it, select automatically my object in my editor. I believe that it can be done with the attribute resource of my Marker no ?
Have you got an idea about the creation of a marker ?
Thanks you for your help, i'm getting crazy with this problem !
Best regards
|