bootstrap
.startup()
.then(
function(core) {
installPlugin = core.pluginRegistry
.installPlugin(
"http://localhost:9090/plugins/fileClientPlugin.html")
.then(
function(plugin) {
plugin
.start()
.then(
function() {
var fileService = core.serviceRegistry
.getService("orion.core.file");
fileService.read(uri).then(function(content){
modelManager.modelFiles["bla"] = data;
modelManager.uploadModelFileContent(
successCallback, errorCallback);
}, function(error){
Utils
.debug("Content retrieval failed:");
Utils
.debug(error);
});
},
function(error) {
Utils
.debug("Plugin Start failed:");
Utils
.debug(error);
});
},
function(error) {
Utils
.debug("Plugin Install failed:");
Utils.debug(error);
});
}, function(error) {
Utils.debug("Startup failed");
Utils.debug(error);
});
};
]]>