CUSTOMIZE AUTHOR REVIEW ACCEPT/REVIEW ACTION

Post here questions and problems related to oXygen frameworks/document types.
Vangelis
Posts: 4
Joined: Fri Jun 24, 2016 4:21 pm

CUSTOMIZE AUTHOR REVIEW ACCEPT/REVIEW ACTION

Post by Vangelis »

Dear Support,

Is-it possible to customize the action behind the command accept/reject in the review panel.

We would like add some additional attribute on the xml when action is "accept".

Thanks a lot.
Radu
Posts: 9055
Joined: Fri Jul 09, 2004 5:18 pm

Re: CUSTOMIZE AUTHOR REVIEW ACCEPT/REVIEW ACTION

Post by Radu »

Hi,

In 17.1 we added a little bit of API for controlling the contextual menu for the review panel, it is something like:

Code: Select all

		authorAccess.getReviewController().getAuthorReviewViewController().addReviewActionsProvider(new ReviewActionsProvider() {
@Override
public void customizeContextualMenuActions(
AuthorAccess authorAccess,
AuthorPersistentHighlight[] selectedHighlights,
Object popupMenu) {
//Here you can obtain the JPopupMenu and possibly get to the action and change it with a new action which delegates to the original one...
}
});
but somehow we seem to have missed adding API to control the link actions (Accept/Reject/Remove) which can be directly clicked in the Review panel.
We'll try to add some API for this as well. Hopefully it will be included in Oxygen 18.1 (Autumn this year).

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Vangelis
Posts: 4
Joined: Fri Jun 24, 2016 4:21 pm

Re: CUSTOMIZE AUTHOR REVIEW ACCEPT/REVIEW ACTION

Post by Vangelis »

Thanks a lot, it will be a big help for us if the accept/reject/remove could be customized in 18.1.

Best regards.
Radu
Posts: 9055
Joined: Fri Jul 09, 2004 5:18 pm

Re: CUSTOMIZE AUTHOR REVIEW ACCEPT/REVIEW ACTION

Post by Radu »

Hi,

We released Oxygen 18.1 and it has a new API "ro.sync.ecss.extensions.api.review.ReviewActionsProvider.customizeHoverActions" which allows you to control the hover inline actions which appear in the review panel.

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