public MainViewContent(string fileName, SharpSnippetCompilerControl snippetControl, IWorkbenchWindow workbenchWindow)
 {
     file = new SnippetFile(fileName);
     this.snippetControl  = snippetControl;
     this.textEditor      = snippetControl.TextEditor;
     this.workbenchWindow = workbenchWindow;
 }
		public MainViewContent(string fileName, SharpSnippetCompilerControl snippetControl, IWorkbenchWindow workbenchWindow)
		{
			file = new SnippetFile(fileName);
			this.snippetControl = snippetControl;
			this.textEditor = snippetControl.TextEditor;
			this.workbenchWindow = workbenchWindow;
		}
Example #3
0
        public void LoadFile(string fileName)
        {
            file = new SnippetFile(fileName);

            if (completionWindow != null)
            {
                completionWindow.Close();
            }
            if (insightWindow != null)
            {
                insightWindow.Close();
            }

            textEditor.Load(fileName);
            textEditor.Document.FileName = fileName;

            adapter.LoadFile(fileName);
        }
		public void LoadFile(string fileName)
		{
			this.file = new SnippetFile(fileName);
			adapter.LoadFile(fileName);
		}
 public void LoadFile(string fileName)
 {
     this.file = new SnippetFile(fileName);
     adapter.LoadFile(fileName);
 }
        public void LoadFile(string fileName)
        {
            file = new SnippetFile(fileName);

            if (completionWindow != null)
                completionWindow.Close();
            if (insightWindow != null)
                insightWindow.Close();

            textEditor.Load(fileName);
            textEditor.Document.FileName = fileName;

            adapter.LoadFile(fileName);
        }