Good idea, it would be nice to have parity between the plugin and the editor. However, you may want other information too, especially for runtimes, such as a serial number for security? An easy way to do this would be to add a method to your plugin called something like js_setSolutionName and have a javascript method pass it the solution name.
In plugin:
- Code: Select all
public String js_setSolutionName (String solution){
return solution;
}
Then in maybe a startup method in Servoy runtime:
- Code: Select all
var solution_name = application.getSolutionName();
plugins.your_plugin.setSolutionName(solution_name)