Community
Participate
Working Groups
var createFunction = function(name, url) {
if (name && url) {
var deferred = fileClient.createProject(explorer.treeRoot.ChildrenLocation, name, url, true);
var ex = explorer;
progressService.showWhile(deferred, i18nUtil.formatMessage(messages["Linking to ${0}"], url)).then(function(newFolder) {
progressService.showWhile(deferred, i18nUtil.formatMessage(messages["Linking to ${0}"], url)).then(function() {
dispatchModelEventOn(explorer, {type: "create", parent: explorer.treeRoot, newValue: newFolder });
ex.loadResourceList(ex.treeRoot.Path, true); // refresh the root
}, errorHandler);
}
};
-