Пример #1
0
        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);
        }
Пример #2
0
        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;
 }
Пример #4
0
 public CodeCompletionProvider(IntellisenseForm iForm)
 {
     _iForm = iForm;
 }
Пример #5
0
 public static void Register(IntellisenseForm iForm)
 {
     HostCallback.GetCurrentProjectContent = () => iForm.ProjectContent;
 }
Пример #6
0
        public static void Attach(IntellisenseForm iForm, TextEditor.TextEditorControl editor)
        {
            var tp = new ToolTipProvider(iForm, editor);

            editor.ActiveTextAreaControl.TextArea.ToolTipRequest += tp.OnToolTipRequest;
        }
Пример #7
0
 private ToolTipProvider(IntellisenseForm iForm, TextEditor.TextEditorControl editor)
 {
     _iForm  = iForm;
     _editor = editor;
 }
Пример #8
0
 private CodeCompletionKeyHandler(IntellisenseForm iForm, TextEditorControl editor)
 {
     this.iForm  = iForm;
     this.editor = editor;
 }