SaveParticipant for multiple plugins? [message #306303] |
Wed, 26 July 2006 12:38  |
Eclipse User |
|
|
|
Originally posted by: blackdrag.gmx.org
hi,
I am currently thinking about creating a plugin. For this I need to
parse the constents of ceretain file types and then display my results
in a view. I think I can get the files, but I need to know when they are
changed. Or at last, when they are saved.
I found out I may have to register a ISaveParticipant like
ResourcesPlugin.getWorkspace().addSaveParticipant(plugin, saveParticipant);
but then I need to know the plugin. But maybe I need only one plugin,
and just need to know which one. Maybe someone could be of help here. Or
maybe that is totaly wrong to do?
bye blackdrag
|
|
|
|
|
|
|
|
Re: SaveParticipant for multiple plugins? [message #306516 is a reply to message #306473] |
Tue, 01 August 2006 06:02  |
Eclipse User |
|
|
|
Originally posted by: blackdrag.gmx.org
Paul Webster schrieb:
> Jochen Theodorou wrote:
>>
>> ok, so I make something like this:
>>
>> IResourceChangeListener listener = new MyResourceChangeReporter();
>> ResourcesPlugin.getWorkspace().addResourceChangeListener(lis tener);
>>
>> then I start a new workbench, I see that these lines are executed, I
>> open a file, I change it, I save it... and nothing.
>>
>> So what am I doing wrong?
>
> Dunno ...
stupid me, I do always forget that workspace centric view of eclipse. No
workspaces, no listener. After making a new project and adding a file
there it worked like a charm! thx for the help
bye blackdrag
|
|
|
Powered by
FUDForum. Page generated in 0.05848 seconds