public EditorHandler(string rootPath, OpenIDE.Core.EditorEngineIntegration.ILocateEditorEngine editorFactory, EnvironmentService environment, Action<string> dispatch) { _rootPath = rootPath; _editorFactory = editorFactory; _environment = environment; _dispatch = dispatch; }
public EnvironmentHandler(Action<string> dispatch, ICodeEngineLocator locator, ILocateEditorEngine editorLocator, EnvironmentService environment) { _dispatch = dispatch; _locator = locator; _editorLocator = editorLocator; _environment = environment; }
public IEnumerable<ICommandHandler> GetDefaultHandlers() { var handlers = new List<ICommandHandler>(); var configHandler = new ConfigurationHandler(PluginLocator(), EventDispatcher); var environment = new EnvironmentService( _settings.DefaultLanguage, _settings.EnabledLanguages, PluginLocator, ICodeEngineLocator(), ILocateEditorEngine()); handlers.AddRange( new ICommandHandler[] { new InitHandler(configHandler), new ProfileHandler(configHandler, EventDispatcher), configHandler, new EditorHandler(_settings.RootPath, ILocateEditorEngine(), environment), new TouchHandler(dispatchMessage), new HandleScriptHandler(_settings.RootPath, dispatchMessage, PluginLocator), new HandleReactiveScriptHandler(_settings.RootPath, dispatchMessage, PluginLocator, ICodeEngineLocator()), new HandleSnippetHandler(ICodeEngineLocator()), new HandleLanguageHandler(_settings.RootPath, dispatchMessage, PluginLocator), new CodeModelQueryHandler(ICodeEngineLocator(), ILocateEditorEngine()), new ProcessStartHandler(), new EventListener(_settings.RootPath), new PackageHandler(_settings.RootPath, dispatchMessage, PluginLocator), new EnvironmentHandler(dispatchMessage, ICodeEngineLocator(), ILocateEditorEngine(), environment), new ShutdownHandler(_settings.RootPath, dispatchMessage, environment), new GetCommandsHandler(), new RunCommandHandler(), new HelpHandler() }); return handlers; }
public ShutdownHandler(string rootPath, Action<string> dispatch, EnvironmentService environment) { _rootPath = rootPath; _dispatch = dispatch; _environment = environment; }