Inheritance: MonoDevelop.Ide.Editor.Extension.TextEditorExtension
コード例 #1
0
        public CodeActionWidget(CodeActionEditorExtension ext, MonoDevelop.Ide.Gui.Document document)
        {
//			this.ext = ext;
            this.document = document;
            Events        = Gdk.EventMask.AllEventsMask;
            icon          = ImageService.GetPixbuf("md-text-quickfix", Gtk.IconSize.Menu);
            SetSizeRequest(Math.Max((int)document.Editor.LineHeight, icon.Width) + 4, (int)document.Editor.LineHeight + 4);
            document.Editor.Parent.EditorOptionsChanged += HandleDocumentEditorParentEditorOptionsChanged;
        }
コード例 #2
0
		public CodeActionWidget (CodeActionEditorExtension ext, MonoDevelop.Ide.Gui.Document document)
		{
//			this.ext = ext;
			this.document = document;
			Events = Gdk.EventMask.AllEventsMask;
			icon = ImageService.GetPixbuf ("md-text-quickfix", Gtk.IconSize.Menu);
			SetSizeRequest (Math.Max ((int)document.Editor.LineHeight , icon.Width) + 4, (int)document.Editor.LineHeight + 4);
			document.Editor.Parent.EditorOptionsChanged += HandleDocumentEditorParentEditorOptionsChanged;
		}
コード例 #3
0
			public SmartTagMarker (int offset, CodeActionEditorExtension codeActionEditorExtension, List<CodeAction> fixes, DocumentLocation loc) : base (offset, 0)
			{
				this.codeActionEditorExtension = codeActionEditorExtension;
				this.fixes = fixes;
				this.loc = loc;
			}
コード例 #4
0
 public SmartTagMarker(int offset, CodeActionEditorExtension codeActionEditorExtension, List <CodeAction> fixes, DocumentLocation loc) : base(offset, 0)
 {
     this.codeActionEditorExtension = codeActionEditorExtension;
     this.fixes = fixes;
     this.loc   = loc;
 }