public static CodeCompletionKeyHandler Attach(IntellisenseForm iForm, TextEditorControl editor) { CodeCompletionKeyHandler h = new CodeCompletionKeyHandler(iForm, editor); editor.ActiveTextAreaControl.TextArea.KeyEventHandler += h.TextAreaKeyEventHandler; // When the editor is disposed, close the code completion window editor.Disposed += h.CloseCodeCompletionWindow; return(h); }
public static void Register(IntellisenseForm iForm) { // Must be implemented. Gets the project content of the active project. HostCallback.GetCurrentProjectContent = () => iForm.ProjectContent; // The default implementation just logs to Log4Net. We want to display a MessageBox. // Note that we use += here - in this case, we want to keep the default Log4Net implementation. //HostCallback.ShowError += delegate(string message, Exception ex) { //MessageBox.Show(message + Environment.NewLine + ex.ToString()); //}; //HostCallback.ShowMessage += delegate(string message) { //MessageBox.Show(message); //}; //HostCallback.ShowAssemblyLoadError += delegate(string fileName, string include, string message) { /*MessageBox.Show("Error loading code-completion information for " + include + " from " + fileName + ":\r\n" + message + "\r\n");*/ //}; }
public MethodInsightDataProvider(IntellisenseForm iForm) { _iForm = iForm; }
public CodeCompletionProvider(IntellisenseForm iForm) { _iForm = iForm; }
public static void Register(IntellisenseForm iForm) { HostCallback.GetCurrentProjectContent = () => iForm.ProjectContent; }
public static void Attach(IntellisenseForm iForm, TextEditor.TextEditorControl editor) { var tp = new ToolTipProvider(iForm, editor); editor.ActiveTextAreaControl.TextArea.ToolTipRequest += tp.OnToolTipRequest; }
private ToolTipProvider(IntellisenseForm iForm, TextEditor.TextEditorControl editor) { _iForm = iForm; _editor = editor; }
private CodeCompletionKeyHandler(IntellisenseForm iForm, TextEditorControl editor) { this.iForm = iForm; this.editor = editor; }