Structure-/Treeview: Drag & Drop multiple nodes

Are you missing a feature? Request its implementation here.
spyro
Posts: 11
Joined: Fri Jan 16, 2009 1:16 pm

Structure-/Treeview: Drag & Drop multiple nodes

Post by spyro »

Hi,

it seems not possible to move more then one node individually in the structure view. In the TreeView (CTRL+T) more then one node can be selected but nothing happens when I try to move them to a new place.

Image
Image

This is very critical for use because we need a way to to simply restrucurize large documents in short amounts time. All selected nodes are in a simple range after another so there is no break in the selection. So it shouldn't be to hard to support this in the future.

This drag & drop actions are possible without problems in the source code but this is very uncomfortable because you have to scroll thousands of lines each time.

spyro
adrian
Posts: 2885
Joined: Tue May 17, 2005 4:01 pm

Re: Structure-/Treeview: Drag & Drop multiple nodes

Post by adrian »

Hello,

This is not possible in the Tree Editor(no drag and drop with multiple selection) or in the Outline view from the Text mode(no multiple selection). It's a bit more difficult to implement this in Text mode(especially non-contiguous selection). I've logged your feature request to our issue tracking tool and we will analyze and implement it in a future version.

However, the Outline view from the Author(visual editing) mode(Document > Edit Mode > Author) allows multiple selection and also copy/paste and drag and drop with multiple selection. If you don't have a CSS for the XML file, the document will look garbled in the editor, but you should still be able to use it for its Outline view.
Note that when editing in the Author mode, the modified region of the XML document is formatted when saving or switching back to Text mode(because of the switch between text -> XML model -> text).

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
spyro
Posts: 11
Joined: Fri Jan 16, 2009 1:16 pm

Re: Structure-/Treeview: Drag & Drop multiple nodes

Post by spyro »

Hello adrian,

thanks for your quick answer. I tried your solution and it works. I didn't realize that the outline view acts different when switching in author mode.

Just one more question: You wrote, the document will be reformatted when the user moves any nodes in the outline view. Does this affect the handling of the whitespace in mixed-content-elements?

spyro
Radu
Posts: 9473
Joined: Fri Jul 09, 2004 5:18 pm

Re: Structure-/Treeview: Drag & Drop multiple nodes

Post by Radu »

Hi,

If the XML is loaded without a CSS in the Author page then its entire content is regarded as space preserve so you should have no problem with whitespaces in mixed content.

Even if the XML is loaded with a specific CSS Oxygen has lots of ways in which it tries to determine if an element has mixed content or not (by looking at the associated grammar for example).

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
spyro
Posts: 11
Joined: Fri Jan 16, 2009 1:16 pm

Re: Structure-/Treeview: Drag & Drop multiple nodes

Post by spyro »

Hi radu,

Thank you. Very glad to hear that.

Greetings,
spyro
patrick
Posts: 96
Joined: Mon May 09, 2011 11:54 am

Re: Structure-/Treeview: Drag & Drop multiple nodes

Post by patrick »

We need this feature in the text view, too. We use an Stylesheet but its faster to change the structure without waiting for css rendering.
Radu
Posts: 9473
Joined: Fri Jul 09, 2004 5:18 pm

Re: Structure-/Treeview: Drag & Drop multiple nodes

Post by Radu »

Hi Patrick,

So do I understand correctly that you need support inside the Text page for allowing multiple selection in the Outline view for cut/copy/paste/delete/drag and drop operations?
I added your request to our internal issues list and this thread will be updated when it gets implemented.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
patrick
Posts: 96
Joined: Mon May 09, 2011 11:54 am

Re: Structure-/Treeview: Drag & Drop multiple nodes

Post by patrick »

Right, this is exactly what we need. Thanks for adding it!
spyro
Posts: 11
Joined: Fri Jan 16, 2009 1:16 pm

Re: Structure-/Treeview: Drag & Drop multiple nodes

Post by spyro »

Thanks, this would be VERY helpful for us.
Post Reply