Esempio n. 1
0
 public MainViewContent(string fileName, SharpSnippetCompilerControl snippetControl, IWorkbenchWindow workbenchWindow)
 {
     file = new SnippetFile(fileName);
     this.snippetControl  = snippetControl;
     this.textEditor      = snippetControl.TextEditor;
     this.workbenchWindow = workbenchWindow;
 }
Esempio n. 2
0
		public MainViewContent(string fileName, SharpSnippetCompilerControl snippetControl, IWorkbenchWindow workbenchWindow)
		{
			file = new SnippetFile(fileName);
			this.snippetControl = snippetControl;
			this.textEditor = snippetControl.TextEditor;
			this.workbenchWindow = workbenchWindow;
		}
Esempio n. 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);
        }
Esempio n. 4
0
		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);
        }