Ejemplo n.º 1
0
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";
};
Ejemplo n.º 2
0
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;
}
Ejemplo n.º 3
0
var ShellPlugin = module.exports = function(ide, workspace) {
    Plugin.call(this, ide, workspace);
    this.workspaceDir = workspace.workspaceDir;
    this.hooks = ["command"];
    this.name = "shell";
};
Ejemplo n.º 4
0
var cloud9StatePlugin = module.exports = function(ide, workspace) {
    Plugin.call(this, ide, workspace);
    this.hooks = ["connect", "command"];
    this.name = "state";
};
Ejemplo n.º 5
0
var AuthPlugin = module.exports = function(ide, workspace) {
    Plugin.call(this, ide, workspace);
    this.hooks = ["command"];
    this.name = "auth";
};
Ejemplo n.º 6
0
var ShellHgPlugin = module.exports = module.exports = function(ide, workspace) {
    Plugin.call(this, ide, workspace);
    this.hooks = ["command"];
    this.name = "hg";
    this.banned = ["serve"];
};