Eugene,
I can't see anything wrong with your fix. It does look like a copy and
paste from CVS. SVN can handle IContainers just fine.
Applied patch as r1444.
Thanks!
Eugene Kuleshov wrote:
> Hi,
>
> I've noticed that drag-n-drop to SVN History view does not work for
> projects and folders.
>
> The fix is very simple. In a HistoryDropAdapter class the following
> method should not check the instance of IResource, so I've commented
> one line, which was probably copied from similar class from CVS plugin.
>
> public boolean performDrop(Object data) {
> if (data == null) return false;
> if(data instanceof IResource[]) {
> IResource[] sources = (IResource[])data;
> if (sources.length == 0) return false;
> IResource resource = sources[0];
> // ---> if (!(resource instanceof IFile)) return false;
> view.showHistory(resource, true /* fetch */);
> return true;
> } else if( data instanceof ISVNRemoteResource) {
> view.showHistory((ISVNRemoteResource) data, null); // true
> /* fetch */);
> return true;
> }
> return false;
> }
>
>
> regards,
> Eugene
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subclipse.tigris.org
> For additional commands, e-mail: dev-help@subclipse.tigris.org
>
>
>
Received on Sat Jul 23 10:17:49 2005