Update personal license used in SDK

Post here questions and problems related to oXygen frameworks/document types.
sderrick
Posts: 264
Joined: Sat Jul 10, 2010 4:03 pm

Update personal license used in SDK

Post by sderrick »

We are using the SDK in a stand alone Java app. Some users use our floating license server, we also have some people use a personal license.

I would like the ones using a personal license to update the license used for the SDK when we get their SMP renewal. What is the API to force the SDK to ask for a license?

thanks,

Scott
Radu
Posts: 9059
Joined: Fri Jul 09, 2004 5:18 pm

Re: Update personal license used in SDK

Post by Radu »

Hi Scott,

By SDK do you mean our Author Component which can be embedded in a Java Swing application?
https://www.oxygenxml.com/doc/versions/ ... onent.html

I'm afraid there is no API to force the SDK to ask for a license once the personal license has been pasted by the end user and saved in the component's preferences folder.
The component should create a preferences folder located in "%APPDATA%\Roaming\com.oxygenxml.author.component" and inside it there should be a license.xml file containing the licensing details. Maybe you can look for that license file inside the component's preferences folder "AuthorComponentFactory.getInstance().getWorkspaceUtilities().getPreferencesDirectory()" and if it contains a personal license inside show the end user some kind of error dialog.

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