Browse Source
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@375 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61shortcuts
11 changed files with 137 additions and 53 deletions
@ -0,0 +1,51 @@ |
|||||||
|
/* |
||||||
|
* Created by SharpDevelop. |
||||||
|
* User: Daniel Grunwald |
||||||
|
* Date: 16.08.2005 |
||||||
|
* Time: 21:40 |
||||||
|
*/ |
||||||
|
|
||||||
|
using System; |
||||||
|
using System.ComponentModel.Design.Serialization; |
||||||
|
using ICSharpCode.TextEditor; |
||||||
|
using ICSharpCode.NRefactory.Parser; |
||||||
|
|
||||||
|
namespace ICSharpCode.FormDesigner |
||||||
|
{ |
||||||
|
public interface IDesignerLoaderProvider |
||||||
|
{ |
||||||
|
DesignerLoader CreateLoader(); |
||||||
|
} |
||||||
|
|
||||||
|
public class NRefactoryDesignerLoaderProvider : IDesignerLoaderProvider |
||||||
|
{ |
||||||
|
SupportedLanguages language; |
||||||
|
TextEditorControl textEditorControl; |
||||||
|
|
||||||
|
public NRefactoryDesignerLoaderProvider(SupportedLanguages language, TextEditorControl textEditorControl) |
||||||
|
{ |
||||||
|
this.language = language; |
||||||
|
this.textEditorControl = textEditorControl; |
||||||
|
} |
||||||
|
|
||||||
|
public DesignerLoader CreateLoader() |
||||||
|
{ |
||||||
|
return new NRefactoryDesignerLoader(language, textEditorControl); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
public class XmlDesignerLoaderProvider : IDesignerLoaderProvider |
||||||
|
{ |
||||||
|
TextEditorControl textEditorControl; |
||||||
|
|
||||||
|
public XmlDesignerLoaderProvider(TextEditorControl textEditorControl) |
||||||
|
{ |
||||||
|
this.textEditorControl = textEditorControl; |
||||||
|
} |
||||||
|
|
||||||
|
public DesignerLoader CreateLoader() |
||||||
|
{ |
||||||
|
return new XmlDesignerLoader(textEditorControl); |
||||||
|
} |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue