Browse Source
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5190 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61shortcuts
6 changed files with 93 additions and 37 deletions
@ -0,0 +1,27 @@ |
|||||||
|
// <file>
|
||||||
|
// <copyright see="prj:///doc/copyright.txt"/>
|
||||||
|
// <license see="prj:///doc/license.txt"/>
|
||||||
|
// <owner name="Siegfried Pammer" email="siegfriedpammer@gmail.com" />
|
||||||
|
// <version>$Revision$</version>
|
||||||
|
// </file>
|
||||||
|
|
||||||
|
using System; |
||||||
|
using ICSharpCode.SharpDevelop.Editor; |
||||||
|
|
||||||
|
namespace ICSharpCode.CppBinding |
||||||
|
{ |
||||||
|
/// <summary>
|
||||||
|
/// Formatting strategy for C++ (only implements insertion of comment tags).
|
||||||
|
/// </summary>
|
||||||
|
public class CppFormattingStrategy : DefaultFormattingStrategy |
||||||
|
{ |
||||||
|
public CppFormattingStrategy() |
||||||
|
{ |
||||||
|
} |
||||||
|
|
||||||
|
public override void SurroundSelectionWithComment(ITextEditor editor) |
||||||
|
{ |
||||||
|
SurroundSelectionWithSingleLineComment(editor, "//"); |
||||||
|
} |
||||||
|
} |
||||||
|
} |
@ -1,39 +1,20 @@ |
|||||||
/* |
// <file>
|
||||||
* Created by SharpDevelop. |
// <copyright see="prj:///doc/copyright.txt"/>
|
||||||
* User: trecio |
// <license see="prj:///doc/license.txt"/>
|
||||||
* Date: 2009-05-31 |
// <owner name="Siegfried Pammer" email="siegfriedpammer@gmail.com" />
|
||||||
* Time: 22:54 |
// <version>$Revision$</version>
|
||||||
* |
// </file>
|
||||||
* To change this template use Tools | Options | Coding | Edit Standard Headers. |
|
||||||
*/ |
using System; |
||||||
using ICSharpCode.CppBinding.Project; |
using ICSharpCode.SharpDevelop; |
||||||
using ICSharpCode.SharpDevelop.Internal.Templates; |
using ICSharpCode.SharpDevelop.Editor; |
||||||
using ICSharpCode.SharpDevelop.Project; |
|
||||||
|
|
||||||
namespace ICSharpCode.CppBinding |
namespace ICSharpCode.CppBinding |
||||||
{ |
{ |
||||||
/// <summary>
|
public class CppLanguageBinding : DefaultLanguageBinding |
||||||
/// Description of CppLanguageBinding.
|
|
||||||
/// </summary>
|
|
||||||
public class CppLanguageBinding : IProjectBinding |
|
||||||
{ |
{ |
||||||
public const string LanguageName = "C++"; |
public override IFormattingStrategy FormattingStrategy { |
||||||
|
get { return new CppFormattingStrategy(); } |
||||||
public string Language { |
|
||||||
get { |
|
||||||
return LanguageName; |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
public readonly static CppLanguageProperties LanguageProperties = new CppLanguageProperties(); |
|
||||||
|
|
||||||
public IProject LoadProject(ProjectLoadInformation info) { |
|
||||||
return new CppProject(info); |
|
||||||
} |
|
||||||
|
|
||||||
public IProject CreateProject(ProjectCreateInformation info) { |
|
||||||
info.Platform = "Win32"; |
|
||||||
return new CppProject(info); |
|
||||||
} |
} |
||||||
} |
} |
||||||
} |
} |
||||||
|
@ -0,0 +1,39 @@ |
|||||||
|
/* |
||||||
|
* Created by SharpDevelop. |
||||||
|
* User: trecio |
||||||
|
* Date: 2009-05-31 |
||||||
|
* Time: 22:54 |
||||||
|
* |
||||||
|
* To change this template use Tools | Options | Coding | Edit Standard Headers. |
||||||
|
*/ |
||||||
|
using ICSharpCode.CppBinding.Project; |
||||||
|
using ICSharpCode.SharpDevelop.Internal.Templates; |
||||||
|
using ICSharpCode.SharpDevelop.Project; |
||||||
|
|
||||||
|
namespace ICSharpCode.CppBinding |
||||||
|
{ |
||||||
|
/// <summary>
|
||||||
|
/// Description of CppProjectBinding.
|
||||||
|
/// </summary>
|
||||||
|
public class CppProjectBinding : IProjectBinding |
||||||
|
{ |
||||||
|
public const string LanguageName = "C++"; |
||||||
|
|
||||||
|
public string Language { |
||||||
|
get { |
||||||
|
return LanguageName; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
public readonly static CppLanguageProperties LanguageProperties = new CppLanguageProperties(); |
||||||
|
|
||||||
|
public IProject LoadProject(ProjectLoadInformation info) { |
||||||
|
return new CppProject(info); |
||||||
|
} |
||||||
|
|
||||||
|
public IProject CreateProject(ProjectCreateInformation info) { |
||||||
|
info.Platform = "Win32"; |
||||||
|
return new CppProject(info); |
||||||
|
} |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue