var SettingsPlugin = module.exports = function(ide, workspace) { Plugin.call(this, ide, workspace); this.hooks = ["command"]; this.name = "settings"; this.settingsPath = ide.options.mountDir + "/.settings.xml"; };
var cloud9WatcherPlugin = module.exports = function(ide, workspace) { Plugin.call(this, ide, workspace); ide.davServer.plugins['watcher'] = function (handler) { handler.addEventListener('beforeWriteContent', function (e, uri) { var path = handler.server.tree.basePath + '/' + uri; // console.log('Detected save', path); ignoredPaths[path] = 1; e.next(); }); }; this.hooks = ["disconnect", "command"]; this.name = "watcher"; this.filenames = {}; this.basePath = ide.workspaceDir; }
var ShellPlugin = module.exports = function(ide, workspace) { Plugin.call(this, ide, workspace); this.workspaceDir = workspace.workspaceDir; this.hooks = ["command"]; this.name = "shell"; };
var cloud9StatePlugin = module.exports = function(ide, workspace) { Plugin.call(this, ide, workspace); this.hooks = ["connect", "command"]; this.name = "state"; };
var AuthPlugin = module.exports = function(ide, workspace) { Plugin.call(this, ide, workspace); this.hooks = ["command"]; this.name = "auth"; };
var ShellHgPlugin = module.exports = module.exports = function(ide, workspace) { Plugin.call(this, ide, workspace); this.hooks = ["command"]; this.name = "hg"; this.banned = ["serve"]; };