Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [pdt-dev] track changes made before activation of plugin

as far as I can see in that article, you can register ISaveParticipant
with following Java code:

ResourcesPlugin.getWorkspace().addSaveParticipant(Activator.PLUGIN_ID,
new ISaveParticipant() {

...

});

On Thu, Jan 31, 2013 at 10:56 AM, Krishnaveni Sankaranarayanan
<mailtoveni@xxxxxxxxx> wrote:
> Hi,
>
> I saw in article (below link) that we can use ISaveParticipant  to achieve
> what i m looking for. But not sure how to use it. Can anyone give an
> example.
> http://www.eclipse.org/articles/Article-Resource-deltas/resource-deltas.html
>
>
> On Thu, Jan 31, 2013 at 3:07 PM, Jacek Pospychała
> <jacek.pospychala@xxxxxxxxx> wrote:
>>
>> Krishnaveni,
>> what you can do is auto-activate your plugin on startup - see
>> org.eclipse.ui.startup extension point.
>> This has drawback that your plugin activation may affect Eclipse
>> startup time and users can disable your plugin activation in
>> Preferences->Startup and Shutdown.
>>
>> Note that this is Eclipse PDT developers mailing list, so this advice
>> might not be the best one, as your question is more related to general
>> Eclipse RCP development :-)
>> You could try asking it on eclipse RCP forum:
>> http://www.eclipse.org/forums/index.php?t=thread&frm_id=106
>>
>> good luck!
>>
>> Jacek
>>
>>
>> On Thu, Jan 31, 2013 at 10:26 AM, Krishnaveni Sankaranarayanan
>> <mailtoveni@xxxxxxxxx> wrote:
>> > Hi,
>> >
>> > I have an eclipse plugin. My plugin needs to keep track of the files
>> > changed/created from the plugin or files/classes created from eclipse. I
>> > have added the Resource change Listener in the Activator of the plugin.
>> >  But this will track the changes only after the plugin is activated. In
>> > the
>> > mean while if any changes were made from other eclipse menus, i am not
>> > able
>> > to track them. Is there any
>> >   way to handle the changes that happen before the activation of my
>> > plugin?
>> >
>> > --
>> > Regards,
>> > Krishnaveni S
>> > _______________________________________________
>> > pdt-dev mailing list
>> > pdt-dev@xxxxxxxxxxx
>> > https://dev.eclipse.org/mailman/listinfo/pdt-dev
>> >
>> _______________________________________________
>> pdt-dev mailing list
>> pdt-dev@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/pdt-dev
>
>
>
>
> --
> Regards,
> Krishnaveni S
>
> _______________________________________________
> pdt-dev mailing list
> pdt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/pdt-dev
>


Back to the top