Override the "accept" action in Manage Reviews panel
Post here questions and problems related to oXygen frameworks/document types.
Override the "accept" action in Manage Reviews panel
Hello,
We use oxygen-18.1.0.0.jar, and we need to execute a specific action each time users accept a review in our application.
In fact, this action will update a "table of modification" in the document.
I success to override "Edit/Accept_Change" in the Review toolbar but we also need to override the "accept" action in the Manage Reviews panel.
I don't find how to do that.
Can you explain me how can I improve this "accept" action, please ?
Thanks.
Regards,
Isabelle
We use oxygen-18.1.0.0.jar, and we need to execute a specific action each time users accept a review in our application.
In fact, this action will update a "table of modification" in the document.
I success to override "Edit/Accept_Change" in the Review toolbar but we also need to override the "accept" action in the Manage Reviews panel.
I don't find how to do that.
Can you explain me how can I improve this "accept" action, please ?
Thanks.
Regards,
Isabelle
-
- Posts: 1008
- Joined: Wed Nov 16, 2005 11:11 am
Re: Override the "accept" action in Manage Reviews panel
Post by alex_jitianu »
Hello,
You can customize the actions in the Review panel using an ReviewActionsProvider. You can set one line this:
Best regards,
Alex
You can customize the actions in the Review panel using an ReviewActionsProvider. You can set one line this:
Code: Select all
if (EditorPageConstants.PAGE_AUTHOR.equals(editorComponent.getWSEditorAccess().getCurrentPageID())) {
WSAuthorComponentEditorPage page = (WSAuthorComponentEditorPage) editorComponent.getWSEditorAccess().getCurrentPage();
AuthorReviewController reviewController = page.getAuthorAccess().getReviewController();
AuthorReviewViewController authorReviewViewController = reviewController.getAuthorReviewViewController();
authorReviewViewController.addReviewActionsProvider(new ReviewActionsProvider() {
@Override
public void customizeContextualMenuActions(
AuthorAccess authorAccess,
AuthorPersistentHighlight[] selectedHighlights,
Object popupMenu) {
}
@Override
public void customizeHoverActions(AuthorAccess authorAccess,
AuthorPersistentHighlight authorPersistentHighlight,
List actions) {
}
});
}
Alex
Re: Override the "accept" action in Manage Reviews panel
Hello Alex,
Thanks for your answer but I don't understand how it could solve my issue.
The 2 methods you provide only allow to customize the contextual menu actions and the hover actions.
But I need to customize the "accept" action in the Review Panel.
Is it possible ?
Regards,
Isabelle
Thanks for your answer but I don't understand how it could solve my issue.
The 2 methods you provide only allow to customize the contextual menu actions and the hover actions.
But I need to customize the "accept" action in the Review Panel.
Is it possible ?
Regards,
Isabelle
-
- Posts: 1008
- Joined: Wed Nov 16, 2005 11:11 am
Re: Override the "accept" action in Manage Reviews panel
Post by alex_jitianu »
Hello Isabelle,
The "Accept" action appears only when you hover an entry in the Review panel. This means that you can intercept it on the customizeHoverActions() callback:
Best regards,
Alex
customizeHoverActions
The "Accept" action appears only when you hover an entry in the Review panel. This means that you can intercept it on the customizeHoverActions() callback:
Code: Select all
public void customizeHoverActions(AuthorAccess authorAccess,
AuthorPersistentHighlight authorPersistentHighlight,
List actions) {
if (actions != null) {
for (Iterator iterator = actions.iterator(); iterator.hasNext();) {
javax.swing.Action action = (javax.swing.Action) iterator.next();
String oxygenActionID = ((StandalonePluginWorkspace) PluginWorkspaceProvider.getPluginWorkspace()).getOxygenActionID(action);
if ("Review/Accept".equals(oxygenActionID)) {
// TODO This is the accept action. You can replace it with another one.
}
}
}
}
Alex
customizeHoverActions
Return to “SDK-API, Frameworks - Document Types”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service