Renaming operation?

Post here questions and problems related to oXygen frameworks/document types.
stephen.perkins
Posts: 6
Joined: Wed Aug 06, 2014 7:46 pm
Contact:

Renaming operation?

Post by stephen.perkins » Wed Aug 13, 2014 5:35 am

Hi,
Is there an operation that performs the same function as the Refactoring->Rename Element contextual menu? Many thanks.
Cheers,
Stephen

Stephen Perkins
Infoset Digital Publishing
stephen@infoset.io
http://www.infoset.io

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

Re: Renaming operation?

Post by Radu » Wed Aug 13, 2014 7:57 am

Hi Stephen,

We have API for it:

ro.sync.ecss.extensions.api.AuthorDocumentController.renameElement(AuthorElement, String)

but we do not have a predefined Author Operation which could receive as parameters the name of the element for example and call the API to make the rename. I will add an improvement request to add such an operation in a future version.

So if you have some knowledge of Java you can add a custom operation which does this:

http://www.oxygenxml.com/doc/ug-oxygen/ ... HowTo.html

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

stephen.perkins
Posts: 6
Joined: Wed Aug 06, 2014 7:46 pm
Contact:

Re: Renaming operation?

Post by stephen.perkins » Wed Aug 13, 2014 4:57 pm

Thanks Radu. I'll use this as motivator to increase my knowledge of Java ;).

Aside: oXygen has come so far. It's great. I'm prototyping a framework that replicates a fairly sophisticated customization of a competing product and finding the capabilities of oXygen simply astounding. Thanks to you and the team. I look forward to doing a lot of this. . . .
Cheers,
Stephen

Stephen Perkins
Infoset Digital Publishing
stephen@infoset.io
http://www.infoset.io

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

Re: Renaming operation?

Post by Radu » Wed Oct 08, 2014 10:49 am

Hi,

Oxygen 16.1 which was just released comes with a built-in operation for the Author visual editing mode called ro.sync.ecss.extensions.commons.operations.RenameElementOperation.

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

Post Reply