Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Sapphire » Questions on Drag-n-Drop in Forms
Questions on Drag-n-Drop in Forms [message #1145331] Sat, 19 October 2013 12:33 Go to next message
Uli B is currently offline Uli BFriend
Messages: 36
Registered: January 2012
Member
I have two questions on the drag-n-drop in an outline.

1. Dropping a node as a child of another node seems to be possible only if there's already a child. Can this be changed, so that a node can be dropped as the first child of anode?

2. I would also like to copy nodes with drag-n-drop. Is there a way to implement this?
Re: Questions on Drag-n-Drop in Forms [message #1145561 is a reply to message #1145331] Sat, 19 October 2013 16:14 Go to previous messageGo to next message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 1077
Registered: July 2009
Senior Member
Quote:
1. Dropping a node as a child of another node seems to be possible only if there's already a child. Can this be changed, so that a node can be dropped as the first child of anode?


In addition to dropping between nodes in a list, you can also drop onto a node. That will add the dropped to the end of the node's child list. Also works if the node has no children yet.

Quote:
2. I would also like to copy nodes with drag-n-drop. Is there a way to implement this?


There is no facility to customize drag-n-drop behavior in the master details outline. I can see enhancing drag-n-drop with modifiers. Maybe holding down the shift key turns a move into a copy. Please open an enhancement request.
Re: Questions on Drag-n-Drop in Forms [message #1145654 is a reply to message #1145561] Sat, 19 October 2013 17:42 Go to previous messageGo to next message
Uli B is currently offline Uli BFriend
Messages: 36
Registered: January 2012
Member
1. No, whatever I try, I cannot drop onto a node. There is always the black line above or below the node, and on drop, the node is inserted above or below the destination node, on the same level (Sapphire 0.6.6).

2. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=419913
Re: Questions on Drag-n-Drop in Forms [message #1148604 is a reply to message #1145654] Mon, 21 October 2013 16:25 Go to previous messageGo to next message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 1077
Registered: July 2009
Senior Member
Quote:
1. No, whatever I try, I cannot drop onto a node. There is always the black line above or below the node, and on drop, the node is inserted above or below the destination node, on the same level (Sapphire 0.6.6).


It sounds like you have trouble with the case where a node with a child node factory is itself a direct product of a child node factory. So a list within a list without intermediary static nodes. I will try to setup a repro for this scenario. I don't believe any of the existing samples do this.
Re: Questions on Drag-n-Drop in Forms [message #1148757 is a reply to message #1148604] Mon, 21 October 2013 18:27 Go to previous messageGo to next message
Uli B is currently offline Uli BFriend
Messages: 36
Registered: January 2012
Member
Yes, all nodes are a direct product of a child node factory.

Re: Questions on Drag-n-Drop in Forms [message #1148882 is a reply to message #1148757] Mon, 21 October 2013 20:17 Go to previous messageGo to next message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 1077
Registered: July 2009
Senior Member
Both of the issues have been resolved. Please verify and confirm in bugzilla.
Re: Questions on Drag-n-Drop in Forms [message #1148883 is a reply to message #1148882] Mon, 21 October 2013 20:18 Go to previous messageGo to next message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 1077
Registered: July 2009
Senior Member
Copy modifier is not supported for DND in forms
https://bugs.eclipse.org/bugs/show_bug.cgi?id=419913

Unable to drop onto a node if the node is itself part of a list
https://bugs.eclipse.org/bugs/show_bug.cgi?id=420021
Re: Questions on Drag-n-Drop in Forms [message #1150430 is a reply to message #1148883] Tue, 22 October 2013 19:28 Go to previous messageGo to next message
Uli B is currently offline Uli BFriend
Messages: 36
Registered: January 2012
Member
Tried both. Works perfect. Many thanks, also for your fast response.

Now, may I kindly ask for a backport to 0.6.x? The reason is, the Eclipse 3rd party product we are targeting with the Sapphire plugin is still Helios/3.6, and there seem to be no real plans to move forward. According to your announcement, 0.7.x requires at least Indigo/3.7. If so, having the two changes also in 0.6.x would be more than helpful.
Re: Questions on Drag-n-Drop in Forms [message #1150952 is a reply to message #1150430] Wed, 23 October 2013 03:41 Go to previous messageGo to next message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 1077
Registered: July 2009
Senior Member
Ok. I have backported the fixes to 0.6.x line. Please verify.

https://hudson.eclipse.org/sapphire/job/0.6.x/
Re: Questions on Drag-n-Drop in Forms [message #1151557 is a reply to message #1150952] Wed, 23 October 2013 12:35 Go to previous messageGo to next message
Uli B is currently offline Uli BFriend
Messages: 36
Registered: January 2012
Member
Hello Konstantin, works perfectly. Many thanks again.
Re: Questions on Drag-n-Drop in Forms [message #1151756 is a reply to message #1151557] Wed, 23 October 2013 15:28 Go to previous messageGo to next message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 1077
Registered: July 2009
Senior Member
You are welcome. Could you add a node regarding verification on 0.6.x line to the two bugs, so that I can close them again?
Re: Questions on Drag-n-Drop in Forms [message #1151928 is a reply to message #1151756] Wed, 23 October 2013 17:57 Go to previous message
Uli B is currently offline Uli BFriend
Messages: 36
Registered: January 2012
Member
Done for both.
Previous Topic:Property depending on path property not refreshed after Browse dialog closes
Next Topic:Delegated Implementation
Goto Forum:
  


Current Time: Sat Apr 20 09:57:51 GMT 2024

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

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

Back to the top