summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorsfranklin2013-02-21 15:26:50 (EST)
committer Mark Macdonald2013-02-21 15:26:50 (EST)
commitbebc3eec566ffb287d4edf3bcd6abc01e42b2f39 (patch)
tree9b013a0c6f3f098a5f92ca159eaafca6d9c7aca8
parentc4453209b033650e63b0c50c3cb4a3c9b51d38bd (diff)
downloadorg.eclipse.orion.client-bebc3eec566ffb287d4edf3bcd6abc01e42b2f39.zip
org.eclipse.orion.client-bebc3eec566ffb287d4edf3bcd6abc01e42b2f39.tar.gz
org.eclipse.orion.client-bebc3eec566ffb287d4edf3bcd6abc01e42b2f39.tar.bz2
Bug 401449 - fileCommands patch one of two
-rw-r--r--bundles/org.eclipse.orion.client.ui/web/orion/fileCommands.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/bundles/org.eclipse.orion.client.ui/web/orion/fileCommands.js b/bundles/org.eclipse.orion.client.ui/web/orion/fileCommands.js
index d76e90d..cf3be91 100644
--- a/bundles/org.eclipse.orion.client.ui/web/orion/fileCommands.js
+++ b/bundles/org.eclipse.orion.client.ui/web/orion/fileCommands.js
@@ -977,6 +977,8 @@ define(['i18n!orion/navigate/nls/messages', 'require', 'orion/webui/littlelib',
};
fileCommandUtils.createAndPlaceFileCommandsExtension = function(serviceRegistry, commandService, explorer, toolbarId, selectionToolbarId, commandGroup) {
+
+ var done = new Deferred();
// Note that the shape of the "orion.navigate.command" extension is not in any shape or form that could be considered final.
// We've included it to enable experimentation. Please provide feedback on IRC or bugzilla.
@@ -1066,9 +1068,11 @@ define(['i18n!orion/navigate/nls/messages', 'require', 'orion/webui/littlelib',
Deferred.all(commandDeferreds, function(error) {return {_error: error};}).then(function(errorOrResultArray){
fileCommandUtils.updateNavTools(serviceRegistry, explorer, toolbarId, selectionToolbarId, explorer.treeRoot);
explorer.updateCommands();
+ done.resolve({});
});
});
+ return done;
};
return fileCommandUtils;