Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » Drag and select the TreeItems in TreeViewer
Drag and select the TreeItems in TreeViewer [message #33833] Mon, 30 April 2007 10:58 Go to next message
Eclipse UserFriend
Originally posted by: swetha.yahoo.co.in

Hi,

Can anyone help in drag and selecting the GalleryItems in a
GalleryView..


Thanks ,
Swetha
Re: Drag and select the GalleryItems in GalleryViewer [message #33868 is a reply to message #33833] Mon, 30 April 2007 10:59 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: swetha.yahoo.co.in

Hi,

Its Gallery Items not Tree Items

Thanks,
Swetha
Re: Drag and select the GalleryItems in GalleryViewer [message #34228 is a reply to message #33868] Mon, 07 May 2007 03:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: swetha.yahoo.co.in

Hi,

Can anyone please let me know.. how to get this feature..

Thanks,
Swetha
Re: Drag and select the GalleryItems in GalleryViewer [message #34262 is a reply to message #34228] Mon, 07 May 2007 06:59 Go to previous messageGo to next message
Nicolas Richeton is currently offline Nicolas RichetonFriend
Messages: 179
Registered: July 2009
Senior Member
Hi,

If you want to drag items out of the gallery, just add a drag source on
the gallery, and use gallery.getSelection() within the dragsource
listener to get the items that are being dragged.

int operations = DND.DROP_COPY;
Transfer[] types = new Transfer[] { FileTransfer.getInstance() };

final DragSource source = new DragSource(gallery, operations);
source.setTransfer(types);
source.addDragListener(new DragSourceListener() {} );


There are several SWT drag and drop examples here :
http://www.eclipse.org/swt/snippets/

Currently, moving items in a single gallery is not supported.

--
Nicolas




Swetha a écrit :
> Hi,
>
> Can anyone please let me know.. how to get this feature..
>
> Thanks,
> Swetha
>
Re: Drag and select the GalleryItems in GalleryViewer [message #34296 is a reply to message #34262] Mon, 07 May 2007 11:50 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: swetha.yahoo.co.in

Hi,

Thanks for the reply...

I don't want the items to be dragged..
I want if we drag the mouse on Gallery screen, all the gallery items
which are in that area of mouse dragged area must be selected.. just like
in windows if we drag the mouse all the icons within that area will be
selected ..the same thing I wnat to implement for my Gallery View.


Thanks,
Swetha
Re: Drag and select the GalleryItems in GalleryViewer [message #34396 is a reply to message #34296] Tue, 08 May 2007 12:08 Go to previous message
Nicolas Richeton is currently offline Nicolas RichetonFriend
Messages: 179
Registered: July 2009
Senior Member
Hi,

This is not supported right now, but it is definitely on my todo list.
Please open a bugzilla entry for this.

Thanks
--
Nicolas


Swetha a écrit :
> Hi,
> Thanks for the reply...
> I don't want the items to be dragged..
> I want if we drag the mouse on Gallery screen, all the gallery items
> which are in that area of mouse dragged area must be selected.. just
> like in windows if we drag the mouse all the icons within that area
> will be selected ..the same thing I wnat to implement for my Gallery View.
>
>
> Thanks,
> Swetha
>
>
>
>
>
Re: Drag and select the GalleryItems in GalleryViewer [message #581605 is a reply to message #33833] Mon, 30 April 2007 10:59 Go to previous message
Swetha is currently offline SwethaFriend
Messages: 68
Registered: July 2009
Member
Hi,

Its Gallery Items not Tree Items

Thanks,
Swetha
Re: Drag and select the GalleryItems in GalleryViewer [message #581975 is a reply to message #33868] Mon, 07 May 2007 03:58 Go to previous message
Swetha is currently offline SwethaFriend
Messages: 68
Registered: July 2009
Member
Hi,

Can anyone please let me know.. how to get this feature..

Thanks,
Swetha
Re: Drag and select the GalleryItems in GalleryViewer [message #581990 is a reply to message #34228] Mon, 07 May 2007 06:59 Go to previous message
Nicolas Richeton is currently offline Nicolas RichetonFriend
Messages: 179
Registered: July 2009
Senior Member
Hi,

If you want to drag items out of the gallery, just add a drag source on
the gallery, and use gallery.getSelection() within the dragsource
listener to get the items that are being dragged.

int operations = DND.DROP_COPY;
Transfer[] types = new Transfer[] { FileTransfer.getInstance() };

final DragSource source = new DragSource(gallery, operations);
source.setTransfer(types);
source.addDragListener(new DragSourceListener() {} );


There are several SWT drag and drop examples here :
http://www.eclipse.org/swt/snippets/

Currently, moving items in a single gallery is not supported.

--
Nicolas




Swetha a écrit :
> Hi,
>
> Can anyone please let me know.. how to get this feature..
>
> Thanks,
> Swetha
>
Re: Drag and select the GalleryItems in GalleryViewer [message #582009 is a reply to message #34262] Mon, 07 May 2007 11:50 Go to previous message
Swetha is currently offline SwethaFriend
Messages: 68
Registered: July 2009
Member
Hi,

Thanks for the reply...

I don't want the items to be dragged..
I want if we drag the mouse on Gallery screen, all the gallery items
which are in that area of mouse dragged area must be selected.. just like
in windows if we drag the mouse all the icons within that area will be
selected ..the same thing I wnat to implement for my Gallery View.


Thanks,
Swetha
Re: Drag and select the GalleryItems in GalleryViewer [message #582063 is a reply to message #34296] Tue, 08 May 2007 12:08 Go to previous message
Nicolas Richeton is currently offline Nicolas RichetonFriend
Messages: 179
Registered: July 2009
Senior Member
Hi,

This is not supported right now, but it is definitely on my todo list.
Please open a bugzilla entry for this.

Thanks
--
Nicolas


Swetha a écrit :
> Hi,
> Thanks for the reply...
> I don't want the items to be dragged..
> I want if we drag the mouse on Gallery screen, all the gallery items
> which are in that area of mouse dragged area must be selected.. just
> like in windows if we drag the mouse all the icons within that area
> will be selected ..the same thing I wnat to implement for my Gallery View.
>
>
> Thanks,
> Swetha
>
>
>
>
>
Previous Topic:[CompositeTable] UI and design questions
Next Topic:CTableTree latest?
Goto Forum:
  


Current Time: Fri Apr 19 00:37:43 GMT 2024

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

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

Back to the top