Page 1 of 1
Two Req
Posted: Thu May 07, 2009 3:49 pm
by SaschaF.
Hello,
I have two Requests.
1.
The first references to the problem, discussed in
this post.
I have the same problem with the new Schema-Editor. Drag'n'Drop only with pressed Shift/Ctrl-Key would be nice.
2.
It would be nice to have a confirmation-dialog, when trying to delete a node in the Schema-Editor.
I have deleted one by mistake, but recognized it first, when I opened the Schema the next time; so I can't undo this operation
Thanks.
Re: Two Req
Posted: Thu May 07, 2009 6:05 pm
by sorin_ristache
Hello,
SaschaF. wrote:The first references to the problem, discussed in
this post.
I have the same problem with the new Schema-Editor. Drag'n'Drop only with pressed Shift/Ctrl-Key would be nice.
Do you mean a copy action instead of move by drag and drop when Shift/Ctrl key is pressed? What action should be done when Ctrl/Shift is pressed?
SaschaF. wrote:It would be nice to have a confirmation-dialog, when trying to delete a node in the Schema-Editor.
I have deleted one by mistake, but recognized it first, when I opened the Schema the next time; so I can't undo this operation

You can save a backup of the file using the option
Make backup copy on save.
Regards,
Sorin
Re: Two Req
Posted: Thu May 07, 2009 9:15 pm
by SaschaF.
sorin wrote:
Do you mean a copy action instead of move by drag and drop when Shift/Ctrl key is pressed? What action should be done when Ctrl/Shift is pressed?
Drag with no key pressed => do nothing
Drag with Shift pressed => drop
Drag with Ctrl pressed => copy
Drag with Ctrl+Shift pressed => insert as a reference
Thanks. But it would be nice, to have a confirmation on deleting a node, though.
That does not cost much.
Re: Two Req
Posted: Fri May 08, 2009 11:08 am
by sorin_ristache
SaschaF. wrote:Drag with no key pressed => do nothing
Drag with Shift pressed => drop
Drag with Ctrl pressed => copy
Drag with Ctrl+Shift pressed => insert as a reference
You can
set a value of 20 or more pixels for the property
awt.dnd.drag.threshold (-Dawt.dnd.drag.threshold=20) if you want to avoid doing a drag and drop when you do not intend that. The drop and copy actions are already implemented. A reference to a declaration is inserted already on drop when you drag a declaration component to other component. The drag and drop action looks at the drag source and drop target components and if the drop is allowed it moves a component or just inserts a reference at the drop location depending on context.
SaschaF. wrote:Thanks. But it would be nice, to have a confirmation on deleting a node, though. That does not cost much.
We will consider that in a future version.
Thank you,
Sorin