/// <summary> /// Parse the text. /// </summary> private void Parse() { ParseResult result = Project.Language.ParseApex( String.Format("public class WalliSnippetPlaceHolder52724597325 {{ public void f() {{ \n{0}\n }} }}", View.Text), true, false, false); result.ApplyLineOffset(-1); View.ParseData = result; App.Instance.UpdateWorkspaces(); }