[oXygen-sdk] Refreshing conref/keyref programatically

Radu Coravu radu_coravu at sync.ro
Mon Aug 4 03:42:31 CDT 2014


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 at 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 at oxygenxml.com
>> http://www.oxygenxml.com/mailman/listinfo/oxygen-sdk
>
>
>
> _______________________________________________
> oXygen-sdk mailing list
> oXygen-sdk at oxygenxml.com
> http://www.oxygenxml.com/mailman/listinfo/oxygen-sdk
>






More information about the oXygen-sdk mailing list