本文整理汇总了C#中MonoDevelop.CodeGeneration.CodeGenerationOptions类的典型用法代码示例。如果您正苦于以下问题:C# CodeGenerationOptions类的具体用法?C# CodeGenerationOptions怎么用?C# CodeGenerationOptions使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
CodeGenerationOptions类属于MonoDevelop.CodeGeneration命名空间,在下文中一共展示了CodeGenerationOptions类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: InitalizeSelection
public IGenerateAction InitalizeSelection (CodeGenerationOptions options, Gtk.TreeView treeView)
{
PropertyGenerator.CreateProperty createProperty = new PropertyGenerator.CreateProperty (options);
createProperty.ReadOnly = true;
createProperty.Initialize (treeView);
return createProperty;
}
开发者ID:transformersprimeabcxyz,项目名称:monodevelop-1,代码行数:7,代码来源:ReadonlyPropertyGenerator.cs
示例2: PartialMethods
public PartialMethods (CodeGenerationOptions options) : base (options)
{
}
开发者ID:Kalnor,项目名称:monodevelop,代码行数:3,代码来源:PartialGenerator.cs
示例3: InitalizeSelection
public IGenerateAction InitalizeSelection (CodeGenerationOptions options, Gtk.TreeView treeView)
{
OverrideMethods overrideMethods = new OverrideMethods (options);
overrideMethods.Initialize (treeView);
return overrideMethods;
}
开发者ID:llucenic,项目名称:monodevelop,代码行数:6,代码来源:ImplementInterfaceMembersGenerator.cs
示例4: CreateToString
public CreateToString (CodeGenerationOptions options) : base (options)
{
}
开发者ID:Tak,项目名称:monodevelop-novell,代码行数:3,代码来源:ToStringGenerator.cs
示例5: IsValid
public bool IsValid (CodeGenerationOptions options)
{
return new CreateToString (options).IsValid ();
}
开发者ID:Tak,项目名称:monodevelop-novell,代码行数:4,代码来源:ToStringGenerator.cs
示例6: InitalizeSelection
public IGenerateAction InitalizeSelection (CodeGenerationOptions options, Gtk.TreeView treeView)
{
var createEventMethod = new CreateEventMethod (options);
createEventMethod.Initialize (treeView);
return createEventMethod;
}
开发者ID:FreeBSD-DotNet,项目名称:monodevelop,代码行数:6,代码来源:RaiseEventMethodGenerator.cs
示例7: CreateCodeGenerationOptions
public static CodeGenerationOptions CreateCodeGenerationOptions (Document document)
{
document.UpdateParseDocument ();
var options = new CodeGenerationOptions {
Document = document
};
if (document.ParsedDocument != null && document.ParsedDocument.ParsedFile != null) {
options.EnclosingPart = document.ParsedDocument.ParsedFile.GetInnermostTypeDefinition (document.Editor.Caret.Location);
if (options.EnclosingPart != null)
options.EnclosingType = options.EnclosingPart.Resolve (document.Project).GetDefinition ();
if (options.EnclosingType != null) {
options.EnclosingMember = options.EnclosingType.Members.FirstOrDefault (m => !m.IsSynthetic && m.Region.FileName == document.FileName && m.Region.IsInside (document.Editor.Caret.Location));
}
}
return options;
}
开发者ID:telebovich,项目名称:monodevelop,代码行数:16,代码来源:CodeGenerationOptions.cs
示例8: IsValid
public bool IsValid (CodeGenerationOptions options)
{
return new CreateEquality (options).IsValid ();
}
开发者ID:sandyarmstrong,项目名称:monodevelop,代码行数:4,代码来源:EqualityMembersGenerator.cs
示例9: InitalizeSelection
public IGenerateAction InitalizeSelection (CodeGenerationOptions options, Gtk.TreeView treeView)
{
CreateConstructor createConstructor = new CreateConstructor (options);
createConstructor.Initialize (treeView);
return createConstructor;
}
开发者ID:transformersprimeabcxyz,项目名称:monodevelop-1,代码行数:6,代码来源:CreateConstructorGenerator.cs
示例10: IsValid
public bool IsValid (CodeGenerationOptions options)
{
CreateConstructor createConstructor = new CreateConstructor (options);
return createConstructor.IsValid ();
}
开发者ID:transformersprimeabcxyz,项目名称:monodevelop-1,代码行数:5,代码来源:CreateConstructorGenerator.cs
示例11: ExportMethods
IGenerateAction ICodeGenerator.InitalizeSelection (CodeGenerationOptions options, TreeView treeView)
{
var exportMethods = new ExportMethods (this, options);
exportMethods.Initialize (treeView);
return exportMethods;
}
开发者ID:riverans,项目名称:monodevelop,代码行数:6,代码来源:ExportCodeGenerator.cs
示例12: AbstractGenerateAction
public AbstractGenerateAction (CodeGenerationOptions options)
{
this.options = options;
}
开发者ID:yayanyang,项目名称:monodevelop,代码行数:4,代码来源:AbstractGenerateAction.cs
示例13: GenerateCodeWindow
GenerateCodeWindow (CodeGenerationOptions options, MonoDevelop.Ide.CodeCompletion.CodeCompletionContext completionContext) : base(Gtk.WindowType.Toplevel)
{
this.options = options;
this.Build ();
scrolledwindow1.Child = treeviewGenerateActions;
scrolledwindow1.ShowAll ();
scrolledwindow2.Child = treeviewSelection;
scrolledwindow2.ShowAll ();
treeviewGenerateActions.Cancel += delegate {
Destroy ();
};
treeviewGenerateActions.Submit += delegate {
treeviewSelection.GrabFocus ();
};
treeviewSelection.Cancel += delegate {
treeviewGenerateActions.GrabFocus ();
};
treeviewSelection.Submit += delegate {
if (curInitializeObject != null) {
curInitializeObject.GenerateCode ();
curInitializeObject = null;
}
Destroy ();
};
WindowTransparencyDecorator.Attach (this);
treeviewSelection.HeadersVisible = false;
treeviewGenerateActions.HeadersVisible = false;
treeviewGenerateActions.Model = generateActionsStore;
TreeViewColumn column = new TreeViewColumn ();
var pixbufRenderer = new CellRendererImage ();
column.PackStart (pixbufRenderer, false);
column.AddAttribute (pixbufRenderer, "image", 0);
CellRendererText textRenderer = new CellRendererText ();
column.PackStart (textRenderer, true);
column.AddAttribute (textRenderer, "text", 1);
column.Expand = true;
treeviewGenerateActions.AppendColumn (column);
treeviewGenerateActions.Selection.Changed += TreeviewGenerateActionsSelectionChanged;
this.Remove (this.vbox1);
BorderBox messageArea = new BorderBox ();
messageArea.Add (vbox1);
this.Add (messageArea);
this.ShowAll ();
int x = completionContext.TriggerXCoord;
int y = completionContext.TriggerYCoord;
int w, h;
GetSize (out w, out h);
int myMonitor = Screen.GetMonitorAtPoint (x, y);
Gdk.Rectangle geometry = DesktopService.GetUsableMonitorGeometry (Screen, myMonitor);
if (x + w > geometry.Right)
x = geometry.Right - w;
if (y + h > geometry.Bottom)
y = y - completionContext.TriggerTextHeight - h;
Move (x, y);
}
开发者ID:Kalnor,项目名称:monodevelop,代码行数:70,代码来源:GenerateCodeWindow.cs
示例14: IsValid
public bool IsValid (CodeGenerationOptions options)
{
return new CreateWriteLine (options).IsValid ();
}
开发者ID:RainsSoft,项目名称:playscript-monodevelop,代码行数:4,代码来源:WriteLineGenerator.cs
示例15: CreateWriteLine
public CreateWriteLine (CodeGenerationOptions options) : base (options)
{
}
开发者ID:RainsSoft,项目名称:playscript-monodevelop,代码行数:3,代码来源:WriteLineGenerator.cs
示例16: CreateConstructor
public CreateConstructor (CodeGenerationOptions options) : base (options)
{
}
开发者ID:transformersprimeabcxyz,项目名称:monodevelop-1,代码行数:3,代码来源:CreateConstructorGenerator.cs
示例17: CreateEquality
public CreateEquality (CodeGenerationOptions options) : base (options)
{
}
开发者ID:sandyarmstrong,项目名称:monodevelop,代码行数:3,代码来源:EqualityMembersGenerator.cs
示例18: InitalizeSelection
public IGenerateAction InitalizeSelection (CodeGenerationOptions options, Gtk.TreeView treeView)
{
CreateProperty createProperty = new CreateProperty (options);
createProperty.Initialize (treeView);
return createProperty;
}
开发者ID:Kalnor,项目名称:monodevelop,代码行数:6,代码来源:PropertyGenerator.cs
示例19: IsValid
public bool IsValid (CodeGenerationOptions options)
{
return new CreateEventMethod (options).IsValid ();
}
开发者ID:FreeBSD-DotNet,项目名称:monodevelop,代码行数:4,代码来源:RaiseEventMethodGenerator.cs
示例20: CreateProperty
public CreateProperty (CodeGenerationOptions options) : base (options)
{
}
开发者ID:Kalnor,项目名称:monodevelop,代码行数:3,代码来源:PropertyGenerator.cs
注:本文中的MonoDevelop.CodeGeneration.CodeGenerationOptions类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论