afryca.ase.Snippet
Library
BIRTChartManager
BIRTChart manager
var BIRTChartManager = (typeof exports === "undefined")?(function BIRTChartManager() {}):(exports);
if(typeof global !== "undefined") { global.BIRTChartManager = BIRTChartManager; }
BIRTChartManager.sync = function(func, description, composite) {
var Runnable = Java.type('java.lang.Runnable');
var runner = new Runnable() {
run: function() {
func(composite);
}
}
ui.asyncExec(runner);
return description;
}
BIRTChartManager.call = function(bindings, validBindings, create, update, method, composite) {
if ('create' == method) {
return BIRTChartManager.sync(create, method, composite);
} else if ('update' == method) {
return BIRTChartManager.sync(update, method, composite);
} else if ('getBindings' == method) {
return Java.to(bindings, 'java.lang.String[]');
} else if ('validBindings' == method) {
return validBindings();
} else {
return null;
}
}
BIRTChartManager