Page 1 of 1

Renaming operation?

Posted: Wed Aug 13, 2014 5:35 am
by stephen.perkins
Hi,
Is there an operation that performs the same function as the Refactoring->Rename Element contextual menu? Many thanks.

Re: Renaming operation?

Posted: Wed Aug 13, 2014 7:57 am
by Radu
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

Re: Renaming operation?

Posted: Wed Aug 13, 2014 4:57 pm
by stephen.perkins
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. . . .

Re: Renaming operation?

Posted: Wed Oct 08, 2014 10:49 am
by Radu
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