Beispiel #1
0
 public bool CtrlSpace(ITextEditor editor)
 {
     if (MatchesExtension(editor))
     {
         return(binding.CtrlSpace(editor));
     }
     else
     {
         return(false);
     }
 }
        public bool CtrlSpace(SharpDevelopTextAreaControl editor)
        {
            string ext = Path.GetExtension(editor.FileName);

            foreach (string extension in extensions)
            {
                if (ext.Equals(extension, StringComparison.OrdinalIgnoreCase))
                {
                    if (binding == null)
                    {
                        binding = (ICodeCompletionBinding)codon.AddIn.CreateObject(codon.Properties["class"]);
                    }
                    return(binding.CtrlSpace(editor));
                }
            }
            return(false);
        }