From 0a31a6ee30d13dd1cae48f2b2ef39c7e1e289a83 Mon Sep 17 00:00:00 2001 From: Matt Ward Date: Sat, 24 Jan 2009 12:44:25 +0000 Subject: [PATCH] Snippet Compiler sample now compiles. git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@3778 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61 --- .../SharpSnippetCompiler.Core/MainViewContent.cs | 5 +++++ .../SharpSnippetCompiler.Core/Workbench.cs | 9 +++++++++ .../SharpSnippetCompiler/WorkbenchLayout.cs | 5 +++++ .../SharpSnippetCompiler/WorkbenchWindow.cs | 8 ++------ 4 files changed, 21 insertions(+), 6 deletions(-) diff --git a/samples/SharpSnippetCompiler/SharpSnippetCompiler.Core/MainViewContent.cs b/samples/SharpSnippetCompiler/SharpSnippetCompiler.Core/MainViewContent.cs index 322a53952a..c180a0c301 100644 --- a/samples/SharpSnippetCompiler/SharpSnippetCompiler.Core/MainViewContent.cs +++ b/samples/SharpSnippetCompiler/SharpSnippetCompiler.Core/MainViewContent.cs @@ -215,6 +215,11 @@ namespace ICSharpCode.SharpSnippetCompiler.Core { } + public IDocument GetDocumentForFile(OpenedFile file) + { + return null; + } + public void JumpTo(int line, int column) { textEditor.ActiveTextAreaControl.JumpTo(line, column); diff --git a/samples/SharpSnippetCompiler/SharpSnippetCompiler.Core/Workbench.cs b/samples/SharpSnippetCompiler/SharpSnippetCompiler.Core/Workbench.cs index 49014ecbbc..21133f5290 100644 --- a/samples/SharpSnippetCompiler/SharpSnippetCompiler.Core/Workbench.cs +++ b/samples/SharpSnippetCompiler/SharpSnippetCompiler.Core/Workbench.cs @@ -48,6 +48,10 @@ namespace ICSharpCode.SharpSnippetCompiler.Core get { return views; } } + public ICollection PrimaryViewContents { + get { return views.AsReadOnly(); } + } + public IList WorkbenchWindowCollection { get { throw new NotImplementedException(); @@ -95,6 +99,11 @@ namespace ICSharpCode.SharpSnippetCompiler.Core throw new NotImplementedException(); } + public void ShowView(IViewContent content, bool switchToOpenedView) + { + throw new NotImplementedException(); + } + public void UnloadPad(PadDescriptor content) { throw new NotImplementedException(); diff --git a/samples/SharpSnippetCompiler/SharpSnippetCompiler/WorkbenchLayout.cs b/samples/SharpSnippetCompiler/SharpSnippetCompiler/WorkbenchLayout.cs index 14840f9b10..cc343a6aa3 100644 --- a/samples/SharpSnippetCompiler/SharpSnippetCompiler/WorkbenchLayout.cs +++ b/samples/SharpSnippetCompiler/SharpSnippetCompiler/WorkbenchLayout.cs @@ -108,6 +108,11 @@ namespace ICSharpCode.SharpSnippetCompiler throw new NotImplementedException(); } + public IWorkbenchWindow ShowView(IViewContent content, bool switchToOpenedView) + { + throw new NotImplementedException(); + } + public void LoadConfiguration() { Console.WriteLine("WorkbenchLayout.LoadConfiguration not implemented"); diff --git a/samples/SharpSnippetCompiler/SharpSnippetCompiler/WorkbenchWindow.cs b/samples/SharpSnippetCompiler/SharpSnippetCompiler/WorkbenchWindow.cs index 5242154421..62e220b0ef 100644 --- a/samples/SharpSnippetCompiler/SharpSnippetCompiler/WorkbenchWindow.cs +++ b/samples/SharpSnippetCompiler/SharpSnippetCompiler/WorkbenchWindow.cs @@ -64,12 +64,8 @@ namespace ICSharpCode.SharpSnippetCompiler } public IViewContent ActiveViewContent { - get { - throw new NotImplementedException(); - } - set { - throw new NotImplementedException(); - } + get { return null; } + set { } } public Icon Icon {