Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » How to use the IMoveDeleteHook
How to use the IMoveDeleteHook [message #148562] Thu, 23 October 2003 12:07 Go to next message
Eclipse UserFriend
Originally posted by: mharp.seapine.com

Can someone explain to me how to use this? It appears that the CVS plugin
supports it, but I do the same thing and my stuff never gets called.

I've got this block in my plugin.xml

<extension point="org.eclipse.core.resources.moveDeleteHook">
<moveDeleteHook class="com.foo.MyMoveDeleteHook" />
</extension>

and I return a static instance of com.foo.MyMoveDeleteHook from the
RepositoryProvider.getMoveDeleteHook() method, but that method never gets
called, and none of the IMoveDeleteHooks methods I override in
MyMoveDeleteHook get called either.

I'm not sure what else I'm supposed to be doing to get Eclipse 2.1.1 to
recognize my hook...


Any help would be greatly appreciated.

Thanks,

harpstein
Re: How to use the IMoveDeleteHook [message #149819 is a reply to message #148562] Mon, 27 October 2003 13:51 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Michael_Valenta.oti.com

This hook is only for use by repository providers. The requirments are

1) The repository provider returns the hook from getMoveDeleteHook()
(which you've done).

2) One or more projects hev been mapped to the repository provider using
the RepositoryProvider.map() static method.

One these two things are done, any move s or deletes in the mapped
project will invoke the move/delete hook for that provider.

Michael

Harpstein wrote:

> Can someone explain to me how to use this? It appears that the CVS plugin
> supports it, but I do the same thing and my stuff never gets called.
>
> I've got this block in my plugin.xml
>
> <extension point="org.eclipse.core.resources.moveDeleteHook">
> <moveDeleteHook class="com.foo.MyMoveDeleteHook" />
> </extension>
>
> and I return a static instance of com.foo.MyMoveDeleteHook from the
> RepositoryProvider.getMoveDeleteHook() method, but that method never gets
> called, and none of the IMoveDeleteHooks methods I override in
> MyMoveDeleteHook get called either.
>
> I'm not sure what else I'm supposed to be doing to get Eclipse 2.1.1 to
> recognize my hook...
>
>
> Any help would be greatly appreciated.
>
> Thanks,
>
> harpstein
>
>
>
Re: How to use the IMoveDeleteHook [message #149921 is a reply to message #149819] Mon, 27 October 2003 16:53 Go to previous message
Eclipse UserFriend
Originally posted by: mharp.seapine.com

Thanks for the reply. I was just about to say that I've done all that and it
still doesn't work, but then I realized I overrode the method on my
AbstractUIPlugin class instead of the RepositoryProvider.

Dumb me,

harpstein
"Michael Valenta" <Michael_Valenta@oti.com> wrote in message
news:3F9D6921.7050806@oti.com...
> This hook is only for use by repository providers. The requirments are
>
> 1) The repository provider returns the hook from getMoveDeleteHook()
> (which you've done).
>
> 2) One or more projects hev been mapped to the repository provider using
> the RepositoryProvider.map() static method.
>
> One these two things are done, any move s or deletes in the mapped
> project will invoke the move/delete hook for that provider.
>
> Michael
>
> Harpstein wrote:
>
> > Can someone explain to me how to use this? It appears that the CVS
plugin
> > supports it, but I do the same thing and my stuff never gets called.
> >
> > I've got this block in my plugin.xml
> >
> > <extension point="org.eclipse.core.resources.moveDeleteHook">
> > <moveDeleteHook class="com.foo.MyMoveDeleteHook" />
> > </extension>
> >
> > and I return a static instance of com.foo.MyMoveDeleteHook from the
> > RepositoryProvider.getMoveDeleteHook() method, but that method never
gets
> > called, and none of the IMoveDeleteHooks methods I override in
> > MyMoveDeleteHook get called either.
> >
> > I'm not sure what else I'm supposed to be doing to get Eclipse 2.1.1 to
> > recognize my hook...
> >
> >
> > Any help would be greatly appreciated.
> >
> > Thanks,
> >
> > harpstein
> >
> >
> >
>
Previous Topic:NoClassDefFound
Next Topic:Class not found
Goto Forum:
  


Current Time: Tue Jul 15 13:25:48 EDT 2025

Powered by FUDForum. Page generated in 0.33356 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top