Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Help with IMoveDeleteHook
Help with IMoveDeleteHook [message #156014] Wed, 12 November 2003 16:03 Go to next message
Eclipse UserFriend
Originally posted by: mharp.seapine.com

Hey all,

Trying to implement a Team integration and for some reason my
IMoveDeleteHook is not getting used.

I have overridden the RepositoryProvider class and have it mapped to a
project.

I have overriden the following 2 methods among others...

public IFileModificationValidator getFileModificationValidator()
public IMoveDeleteHook getMoveDeleteHook()


The getFileModificationValidator method gets called just fine, but the
getMoveDeletHook never gets called. To test this, I right-click a file under
my project node and select Delete. Is this correct?

Is there something that has to go into the plugin.xml file? Looking at both
the CVS and Perforce plugins, I'm doing the exact same thing as them (as far
as I can tell) but myn isn't working...

For the FileModifcationValidator I had to add a few lines to the plugin.xml
to get it registered, but I can't seem to find anything like that for the
MoveDeleteHook, and neither Perforce nor CVS seem to do this.

I'm at a loss as to why it's not getting picked up. Any suggestions of ideas
would be greatly appreciated.

Thanks,

harpstein
Re: Help with IMoveDeleteHook [message #156030 is a reply to message #156014] Wed, 12 November 2003 17:04 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mharp.seapine.com

nevermind...

I did another search and found that it mimics the fileModificationValidator
stuff in the plugin.xml

-harpstein
"Harpstein" <mharp@seapine.com> wrote in message
news:bou70i$8q4$1@eclipse.org...
> Hey all,
>
> Trying to implement a Team integration and for some reason my
> IMoveDeleteHook is not getting used.
>
> I have overridden the RepositoryProvider class and have it mapped to a
> project.
>
> I have overriden the following 2 methods among others...
>
> public IFileModificationValidator getFileModificationValidator()
> public IMoveDeleteHook getMoveDeleteHook()
>
>
> The getFileModificationValidator method gets called just fine, but the
> getMoveDeletHook never gets called. To test this, I right-click a file
under
> my project node and select Delete. Is this correct?
>
> Is there something that has to go into the plugin.xml file? Looking at
both
> the CVS and Perforce plugins, I'm doing the exact same thing as them (as
far
> as I can tell) but myn isn't working...
>
> For the FileModifcationValidator I had to add a few lines to the
plugin.xml
> to get it registered, but I can't seem to find anything like that for the
> MoveDeleteHook, and neither Perforce nor CVS seem to do this.
>
> I'm at a loss as to why it's not getting picked up. Any suggestions of
ideas
> would be greatly appreciated.
>
> Thanks,
>
> harpstein
>
>
Re: Help with IMoveDeleteHook [message #156933 is a reply to message #156030] Fri, 14 November 2003 11:48 Go to previous message
Eclipse UserFriend
Originally posted by: Michael_Valenta.oti.com

The only xml you should need to add to your plugin.xml is the definition
of your RepositoryProvider. If you are contributing to the
org.eclipse.core.resources.fileModificationValidator or
org.eclipse.core.resources.moveDeleteHook extension points then you will
break all other repository providers. Overriding the methods on
RepositoryProvider should be all you need to do. Perhaps you have not
configured or mapped your RepositoryProvider class properly.

Michael.

Harpstein wrote:

> nevermind...
>
> I did another search and found that it mimics the fileModificationValidator
> stuff in the plugin.xml
>
> -harpstein
> "Harpstein" <mharp@seapine.com> wrote in message
> news:bou70i$8q4$1@eclipse.org...
>
>>Hey all,
>>
>>Trying to implement a Team integration and for some reason my
>>IMoveDeleteHook is not getting used.
>>
>>I have overridden the RepositoryProvider class and have it mapped to a
>>project.
>>
>>I have overriden the following 2 methods among others...
>>
>>public IFileModificationValidator getFileModificationValidator()
>>public IMoveDeleteHook getMoveDeleteHook()
>>
>>
>>The getFileModificationValidator method gets called just fine, but the
>>getMoveDeletHook never gets called. To test this, I right-click a file
>>
> under
>
>>my project node and select Delete. Is this correct?
>>
>>Is there something that has to go into the plugin.xml file? Looking at
>>
> both
>
>>the CVS and Perforce plugins, I'm doing the exact same thing as them (as
>>
> far
>
>>as I can tell) but myn isn't working...
>>
>>For the FileModifcationValidator I had to add a few lines to the
>>
> plugin.xml
>
>>to get it registered, but I can't seem to find anything like that for the
>>MoveDeleteHook, and neither Perforce nor CVS seem to do this.
>>
>>I'm at a loss as to why it's not getting picked up. Any suggestions of
>>
> ideas
>
>>would be greatly appreciated.
>>
>>Thanks,
>>
>>harpstein
>>
>>
>>
>
>
Previous Topic:cvs - edit plugin
Next Topic:displaying a dialog in IMoveDeleteHook?
Goto Forum:
  


Current Time: Fri May 09 06:55:54 EDT 2025

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

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

Back to the top