Skip to content

Commit

Permalink
extract default plugins into a static field
Browse files Browse the repository at this point in the history
  • Loading branch information
fjakobs committed Feb 8, 2011
1 parent bed6903 commit 6b431d4
Showing 1 changed file with 33 additions and 33 deletions.
66 changes: 33 additions & 33 deletions server/cloud9/ide.js
Expand Up @@ -31,39 +31,7 @@ module.exports = Ide = function(options, httpServer, exts) {
workspaceId: options.workspaceId || "ide",
settingsFile: options.settingsFile || ".settings.xml",
db: options.db || null,
plugins: options.plugins || [
"ext/filesystem/filesystem",
"ext/settings/settings",
"ext/editors/editors",
"ext/themes/themes",
"ext/themes_default/themes_default",
"ext/panels/panels",
"ext/dockpanel/dockpanel",
"ext/tree/tree",
"ext/save/save",
"ext/gotofile/gotofile",
"ext/newresource/newresource",
"ext/undo/undo",
"ext/clipboard/clipboard",
"ext/searchinfiles/searchinfiles",
"ext/searchreplace/searchreplace",
"ext/quickwatch/quickwatch",
"ext/quicksearch/quicksearch",
"ext/gotoline/gotoline",
"ext/html/html",
"ext/browser/browser",
"ext/code/code",
"ext/extmgr/extmgr",
"ext/run/run", //Add location rule
"ext/debugger/debugger", //Add location rule
"ext/noderunner/noderunner", //Add location rule
"ext/console/console",
"ext/tabbehaviors/tabbehaviors",
"ext/keybindings/keybindings",
"ext/watcher/watcher",
"ext/collaborate/collaborate",
"ext/todo/todo"
]
plugins: options.plugins || Ide.DEFAULT_PLUGINS
};

this.$users = {};
Expand All @@ -74,6 +42,38 @@ module.exports = Ide = function(options, httpServer, exts) {

sys.inherits(Ide, EventEmitter);

Ide.DEFAULT_PLUGINS = [
"ext/filesystem/filesystem",
"ext/settings/settings",
"ext/editors/editors",
"ext/themes/themes",
"ext/themes_default/themes_default",
"ext/panels/panels",
"ext/dockpanel/dockpanel",
"ext/tree/tree",
"ext/save/save",
"ext/gotofile/gotofile",
"ext/newresource/newresource",
"ext/undo/undo",
"ext/clipboard/clipboard",
"ext/searchinfiles/searchinfiles",
"ext/searchreplace/searchreplace",
"ext/quickwatch/quickwatch",
"ext/quicksearch/quicksearch",
"ext/gotoline/gotoline",
"ext/html/html",
"ext/browser/browser",
"ext/code/code",
"ext/extmgr/extmgr",
"ext/run/run", //Add location rule
"ext/debugger/debugger", //Add location rule
"ext/noderunner/noderunner", //Add location rule
"ext/console/console",
"ext/tabbehaviors/tabbehaviors",
"ext/keybindings/keybindings",
"ext/watcher/watcher"
];

(function () {

this.handle = function(req, res, next) {
Expand Down

0 comments on commit 6b431d4

Please sign in to comment.