private void Generate()
 {
     Object.Generate()
     .Then(response => {
         compilationOutput = response.ErrorMessage;
         TreeView          = new ParseTreeView(Object);
         Repaint();
     })
     .Catch(OnRejected);
 }
 private void OnEnable()
 {
     TreeView = new ParseTreeView(Object);
 }