예제 #1
0
 public BooFileNode(ProjectNode root, ProjectElement e)
     : base(root, e)
 {
     results = new CompileResults(() => Url, GetCompilerInput, ()=>GlobalServices.LanguageService.GetLanguagePreferences().TabSize);
     languageService = (BooLanguageService)GetService(typeof(BooLanguageService));
     hidden = true;
 }
예제 #2
0
 public static CompileResults RunCompiler(string source)
 {
     var results = new CompileResults(
         () => "Test",
         () => source,
         () => 4
         );
     CompilerManager.Compile(4, new[] { typeof(SerializableAttribute).Assembly }, new[] { results });
     return results;
 }
예제 #3
0
 public void SetCompilerResults(CompileResults newResults)
 {
     results.HideMessages(((BooProjectNode)ProjectMgr).RemoveTask);
     results = newResults;
     if (!hidden)
         results.ShowMessages(((BooProjectNode)ProjectMgr).AddTask, Navigate);
     if (Recompiled != null)
         Recompiled(this, EventArgs.Empty);
 }