CUSTOMIZE AUTHOR REVIEW ACCEPT/REVIEW ACTION

Post here questions and problems related to oXygen frameworks/document types.
Vangelis
Posts: 4

CUSTOMIZE AUTHOR REVIEW ACCEPT/REVIEW ACTION

Fri Jun 24, 2016 4:37 pm

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: 5217

Re: CUSTOMIZE AUTHOR REVIEW ACCEPT/REVIEW ACTION

Fri Jun 24, 2016 4:57 pm

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

Re: CUSTOMIZE AUTHOR REVIEW ACCEPT/REVIEW ACTION

Fri Jun 24, 2016 5:17 pm

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: 5217

Re: CUSTOMIZE AUTHOR REVIEW ACCEPT/REVIEW ACTION

Thu Oct 20, 2016 4:25 pm

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

Return to “SDK-API, Frameworks - Document Types”

Who is online

Users browsing this forum: No registered users and 0 guests