Refreshing conref/keyref programatically

Hi Is there a way to refresh conrefs/keyrefs inside a document programatically? In our plugin we have a custom menu item which should also trigger this action. Thanks in advance Kind regards Jan Bevers | Developer | SDL | +32 (0)15 400 970 | jbevers@sdl.com </pre><font face="arial" size="2" color="#736F6E"> <a href="http://www.sdl.com/?utm_source=Email&utm_medium=Email%2BSignature&utm_campaign=SDL%2BStandard%2BEmail%2BSignature"> <img src="http://www.sdl.com/Content/images/SDLlogo2014.png" border=0><br>www.sdl.com </a><br><br> <font face="arial" size="1" color="#736F6E"> <b>SDL PLC confidential, all rights reserved.</b> If you are not the intended recipient of this mail SDL requests and requires that you delete it without acting upon or copying any of its contents, and we further request that you advise us.<BR> SDL PLC is a public limited company registered in England and Wales. Registered number: 02675207.<BR> Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, UK. </font> This message has been scanned for malware by Websense. www.websense.com

Hi, You can invoke the "Refresh References" action, like this: AuthorActionsProvider actionsProvider = authorAccess.getEditorAccess().getActionsProvider(); Map<String, Object> authorCommonActions = actionsProvider.getAuthorCommonActions(); Object refreshRefAction = authorCommonActions.get("Author/Refresh_references"); actionsProvider.invokeAction(refreshRefAction); Best regards, Alex -- Alex Jitianu <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com On 7/28/2014 11:34 AM, Jan Bevers wrote:
Hi
Is there a way to refresh conrefs/keyrefs inside a document programatically? In our plugin we have a custom menu item which should also trigger this action.
Thanks in advance
Kind regards
*Jan Bevers |* Developer *|* SDL *| *+32 (0)15 400 970 *|* jbevers@sdl.com
www.sdl.com <http://www.sdl.com/?utm_source=Email&utm_medium=Email%2BSignature&utm_campaign=SDL%2BStandard%2BEmail%2BSignature>
*SDL PLC confidential, all rights reserved.* If you are not the intended recipient of this mail SDL requests and requires that you delete it without acting upon or copying any of its contents, and we further request that you advise us. SDL PLC is a public limited company registered in England and Wales. Registered number: 02675207. Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, UK.
This message has been scanned for malware by Websense. www.websense.com <http://www.websense.com/>
_______________________________________________ oXygen-sdk mailing list oXygen-sdk@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-sdk

Hi, We also have this API (version 15.2 or newer):
ro.sync.ecss.extensions.api.AuthorDocumentController.refreshNodeReferences(AuthorNode)
if you want to refresh references on particular nodes. Regards, Radu Radu Coravu <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com On 7/28/2014 12:21 PM, Alex Jitianu wrote:
Hi,
You can invoke the "Refresh References" action, like this:
AuthorActionsProvider actionsProvider = authorAccess.getEditorAccess().getActionsProvider(); Map<String, Object> authorCommonActions = actionsProvider.getAuthorCommonActions(); Object refreshRefAction = authorCommonActions.get("Author/Refresh_references"); actionsProvider.invokeAction(refreshRefAction);
Best regards, Alex -- Alex Jitianu <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com
On 7/28/2014 11:34 AM, Jan Bevers wrote:
Hi
Is there a way to refresh conrefs/keyrefs inside a document programatically? In our plugin we have a custom menu item which should also trigger this action.
Thanks in advance
Kind regards
*Jan Bevers |* Developer *|* SDL *| *+32 (0)15 400 970 *|* jbevers@sdl.com
www.sdl.com <http://www.sdl.com/?utm_source=Email&utm_medium=Email%2BSignature&utm_campaign=SDL%2BStandard%2BEmail%2BSignature>
*SDL PLC confidential, all rights reserved.* If you are not the intended recipient of this mail SDL requests and requires that you delete it without acting upon or copying any of its contents, and we further request that you advise us. SDL PLC is a public limited company registered in England and Wales. Registered number: 02675207. Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, UK.
This message has been scanned for malware by Websense. www.websense.com <http://www.websense.com/>
_______________________________________________ oXygen-sdk mailing list oXygen-sdk@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-sdk
_______________________________________________ oXygen-sdk mailing list oXygen-sdk@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-sdk
participants (3)
-
Alex Jitianu
-
Jan Bevers
-
Radu Coravu