default option for MoveElementOperation (and others)

Having trouble installing <oXygen/>? Got a bug to report? Post it all here.
friedemann_bach
Posts: 48
Joined: Wed Oct 22, 2014 4:11 pm

default option for MoveElementOperation (and others)

Post by friedemann_bach » Wed Aug 09, 2017 7:02 pm

Dear developers,

I have a little issue here which I experienced in the Author action "MoveElementOperation". I defined insertPosition, sourceLocation and targetLocation, and the action worked fine. Then, returning to the dialog again to make some other changes, I (by mistake) clicked on deleteLocation, but did not enter anything. After saving all changes, the action now returned an "unexpected <eof>" error. I checked the action definition in my project file and I saw this:

Code: Select all

<field name="argValues">
<serializableOrderedMap>
<entry>
<String>deleteLocation</String>
<String></String>
</entry>
So the action just tried to parse that empty string there. I then deleted the entry from the project file, reloaded and everything was back to normal. Another way which I also tested was to repeat the sourceLocation, this also works fine but it would mean redundancy. Is this a bug? If not, it would be convenient if there was a "reset to default" button in the dialog.

Many thanks for your brilliant work!!

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

Re: default option for MoveElementOperation (and others)

Post by Radu » Thu Aug 10, 2017 9:31 am

Hi,

I understand, we'll consider adding in a future version a button to unset a parameter's value back to its default.
Also in Oxygen 19.1 (Autumn this year) we'll treat an empty xpath expression set on a parameter in the same way as an xpath expression that is not set at all.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

friedemann_bach
Posts: 48
Joined: Wed Oct 22, 2014 4:11 pm

Re: default option for MoveElementOperation (and others)

Post by friedemann_bach » Thu Aug 10, 2017 11:51 am

Great, thanks!

Post Reply