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 @@
@@ -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 @@
@@ -1,39 +1,20 @@
|
||||
/* |
||||
* 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; |
||||
// <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; |
||||
using ICSharpCode.SharpDevelop.Editor; |
||||
|
||||
namespace ICSharpCode.CppBinding |
||||
{ |
||||
/// <summary>
|
||||
/// Description of CppLanguageBinding.
|
||||
/// </summary>
|
||||
public class CppLanguageBinding : IProjectBinding |
||||
public class CppLanguageBinding : DefaultLanguageBinding |
||||
{ |
||||
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); |
||||
public override IFormattingStrategy FormattingStrategy { |
||||
get { return new CppFormattingStrategy(); } |
||||
} |
||||
} |
||||
} |
||||
|
@ -0,0 +1,39 @@
@@ -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