Two Req

Are you missing a feature? Request its implementation here.
SaschaF.
Posts: 13
Joined: Wed Oct 29, 2008 9:32 am

Two Req

Post 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.
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Two Req

Post 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
SaschaF.
Posts: 13
Joined: Wed Oct 29, 2008 9:32 am

Re: Two Req

Post 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
sorin wrote: You can save a backup of the file using the option Make backup copy on save.
Thanks. But it would be nice, to have a confirmation on deleting a node, though.
That does not cost much.
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Two Req

Post 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
Post Reply