Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » [DND] RAP 3.0 SR1 Drag Modifiers(Cannot make DND.DROP_COPY default and modify to DND.DROP_MOVE)
[DND] RAP 3.0 SR1 Drag Modifiers [message #1725274] Wed, 02 March 2016 08:50 Go to next message
Tiber Sept is currently offline Tiber SeptFriend
Messages: 32
Registered: February 2010
Member
Hi,

I have the following:


  • DragSource
    DND.DROP_MOVE | DND.DROP_COPY | DND.DROP_DEFAULT 

  • DropTarget
    DND.DROP_MOVE | DND.DROP_COPY | DND.DROP_DEFAULT 



In my drop target listener DropTargetAdapter on dragEnter I have
event.detail = DND.DROP_COPY


My goal is to make DND.DROP_COPY the default operation, and modify the operation to DND.DROP_MOVE via SHIFT-key.

I see that the JS code in DragAndDropHandler._evalNewActions does exactly that. But it's not working because __actions doesn't contain "move" as an operation when the SHIFT key is pressed. dragOperationChanged is never fired.

Any help much appreciated!

[Updated on: Wed, 02 March 2016 08:56]

Report message to a moderator

Re: [DND] RAP 3.0 SR1 Drag Modifiers [message #1725277 is a reply to message #1725274] Wed, 02 March 2016 08:55 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2427
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi,
does your code work in SWT? If yes, please open a bugzilla about this issue.
Thanks,
Ivan

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: [DND] RAP 3.0 SR1 Drag Modifiers [message #1725313 is a reply to message #1725277] Wed, 02 March 2016 13:05 Go to previous message
Tiber Sept is currently offline Tiber SeptFriend
Messages: 32
Registered: February 2010
Member
I attached an example, it's all ok in SWT. I think on the JS side DragAndDropHandler.clearActions just erases too much too often. I would be happy with a workaround, if there is any.

Link to the bug

Thanks!
Previous Topic:Perspective Placeholder
Next Topic:Unable to export product from warproduct file
Goto Forum:
  


Current Time: Mon Sep 23 21:17:25 GMT 2024

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

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

Back to the top