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 »

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: 9057
Joined: Fri Jul 09, 2004 5:18 pm

Re: default option for MoveElementOperation (and others)

Post by Radu »

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 »

Great, thanks!
Post Reply