C# Class MonoDevelop.Xml.Editor.BaseXmlEditorExtension

Inheritance: MonoDevelop.Ide.Gui.Content.CompletionTextEditorExtension, IPathedDocument, IOutlinedDocument
Mostra file Open project: powerumc/monodevelop_korean Class Usage Examples

Public Methods

Method Description
CodeCompletionCommand ( MonoDevelop.Ide.CodeCompletion.CodeCompletionContext completionContext ) : Task
CreatePathWidget ( int index ) : Control
Dispose ( ) : void
GetCompletionCommandOffset ( int &cpos, int &wlen ) : bool
HandleCodeCompletionAsync ( MonoDevelop.Ide.CodeCompletion.CodeCompletionContext completionContext, char completionChar, CancellationToken token = default(CancellationToken) ) : Task
IsValidInContext ( DocumentContext context ) : bool
KeyPress ( KeyDescriptor descriptor ) : bool
SelectNode ( MonoDevelop.Xml.Dom.XNode n ) : void
SelectPath ( int depth ) : void
SelectPathContents ( int depth ) : void

Protected Methods

Method Description
AddCloseTag ( CompletionDataList completionList, NodeStack stack ) : void
AddMiscBeginTags ( CompletionDataList list ) : void

Adds CDATA and comment begin tags.

ClosingTagCompletion ( TextEditor buf, Mono.TextEditor.DocumentLocation currentLocation ) : ICompletionDataList
CreateRootState ( ) : MonoDevelop.Xml.Parser.XmlRootState
EditorSelect ( DocumentRegion region ) : void
GetAttributeCompletions ( IAttributedXObject attributedOb, string>.Dictionary existingAtts, CancellationToken token ) : Task
GetAttributeValueCompletions ( IAttributedXObject attributedOb, MonoDevelop.Xml.Dom.XAttribute att, CancellationToken token ) : Task
GetBufferText ( DocumentRegion region ) : string
GetCompleteName ( ) : XName
GetCurrentPath ( ) : List
GetDocTypeCompletions ( CancellationToken token ) : Task
GetElementCompletions ( CancellationToken token ) : Task
GetEntityCompletions ( CancellationToken token ) : Task
GetLineIndent ( int line ) : string
GetParentElement ( int skip ) : MonoDevelop.Xml.Dom.XElement
GetParentElementName ( int skip ) : XName
GetParentElementNames ( int skip ) : IEnumerable
HandleCodeCompletion ( MonoDevelop.Ide.CodeCompletion.CodeCompletionContext completionContext, bool forced, CancellationToken token ) : Task
Initialize ( ) : void
InitializeOutlineColumns ( MonoDevelop outlineTree ) : void
OnDocTypeChanged ( ) : void
OnParsedDocumentUpdated ( ) : void
OnPathChanged ( PathEntry oldPath ) : void
OutlineSelectionChanged ( object selection ) : void
RefillOutlineStore ( ParsedDocument doc, TreeStore store ) : void

Private Methods

Method Description
AddCodeCommentCommand ( ) : void
BuildTreeChildren ( TreeStore store, Gtk.TreeIter parent, MonoDevelop.Xml.Dom.XContainer p ) : void
GetAttributeIndentDepth ( NodeStack nodes ) : int
GetElementIndentDepth ( NodeStack nodes ) : int
HandleCaretPositionChanged ( object sender, EventArgs e ) : void
HandleProjectChanged ( object sender, MonoDevelop.Projects.ProjectFileEventArgs e ) : void
IOutlinedDocument ( ) : IEnumerable
IOutlinedDocument ( ) : Gtk.Widget
IOutlinedDocument ( ) : void
IsInComment ( ) : bool
RefreshOutline ( ) : void
RemoveCodeCommentCommand ( ) : void
SelectPath ( int depth, bool contents ) : void
ToggleCodeCommentCommand ( ) : void
ToggleCodeCommentCommandInternal ( bool remove ) : void
ToggleCodeCommentCommandUpdate ( CommandInfo info ) : void
UpdateOwnerProjects ( ) : void
UpdateParsedDocument ( object sender, EventArgs args ) : void
UpdatePath ( ) : void
outlineTreeDataFunc ( Gtk.TreeViewColumn column, Gtk.CellRenderer cell, TreeModel model, Gtk.TreeIter iter ) : void
refillOutlineStore ( ) : void
refillOutlineStoreIdleHandler ( ) : bool

Method Details

AddCloseTag() protected static method

protected static AddCloseTag ( CompletionDataList completionList, NodeStack stack ) : void
completionList CompletionDataList
stack NodeStack
return void

AddMiscBeginTags() protected static method

Adds CDATA and comment begin tags.
protected static AddMiscBeginTags ( CompletionDataList list ) : void
list CompletionDataList
return void

ClosingTagCompletion() protected method

protected ClosingTagCompletion ( TextEditor buf, Mono.TextEditor.DocumentLocation currentLocation ) : ICompletionDataList
buf TextEditor
currentLocation Mono.TextEditor.DocumentLocation
return ICompletionDataList

CodeCompletionCommand() public method

public CodeCompletionCommand ( MonoDevelop.Ide.CodeCompletion.CodeCompletionContext completionContext ) : Task
completionContext MonoDevelop.Ide.CodeCompletion.CodeCompletionContext
return Task

CreatePathWidget() public method

public CreatePathWidget ( int index ) : Control
index int
return Control

CreateRootState() protected method

protected CreateRootState ( ) : MonoDevelop.Xml.Parser.XmlRootState
return MonoDevelop.Xml.Parser.XmlRootState

Dispose() public method

public Dispose ( ) : void
return void

EditorSelect() protected method

protected EditorSelect ( DocumentRegion region ) : void
region DocumentRegion
return void

GetAttributeCompletions() protected method

protected GetAttributeCompletions ( IAttributedXObject attributedOb, string>.Dictionary existingAtts, CancellationToken token ) : Task
attributedOb IAttributedXObject
existingAtts string>.Dictionary
token CancellationToken
return Task

GetAttributeValueCompletions() protected method

protected GetAttributeValueCompletions ( IAttributedXObject attributedOb, MonoDevelop.Xml.Dom.XAttribute att, CancellationToken token ) : Task
attributedOb IAttributedXObject
att MonoDevelop.Xml.Dom.XAttribute
token CancellationToken
return Task

GetBufferText() protected method

protected GetBufferText ( DocumentRegion region ) : string
region DocumentRegion
return string

GetCompleteName() protected method

protected GetCompleteName ( ) : XName
return XName

GetCompletionCommandOffset() public method

public GetCompletionCommandOffset ( int &cpos, int &wlen ) : bool
cpos int
wlen int
return bool

GetCurrentPath() protected method

protected GetCurrentPath ( ) : List
return List

GetDocTypeCompletions() protected method

protected GetDocTypeCompletions ( CancellationToken token ) : Task
token CancellationToken
return Task

GetElementCompletions() protected method

protected GetElementCompletions ( CancellationToken token ) : Task
token CancellationToken
return Task

GetEntityCompletions() protected method

protected GetEntityCompletions ( CancellationToken token ) : Task
token CancellationToken
return Task

GetLineIndent() protected method

protected GetLineIndent ( int line ) : string
line int
return string

GetParentElement() protected method

protected GetParentElement ( int skip ) : MonoDevelop.Xml.Dom.XElement
skip int
return MonoDevelop.Xml.Dom.XElement

GetParentElementName() protected method

protected GetParentElementName ( int skip ) : XName
skip int
return XName

GetParentElementNames() protected method

protected GetParentElementNames ( int skip ) : IEnumerable
skip int
return IEnumerable

HandleCodeCompletion() protected method

protected HandleCodeCompletion ( MonoDevelop.Ide.CodeCompletion.CodeCompletionContext completionContext, bool forced, CancellationToken token ) : Task
completionContext MonoDevelop.Ide.CodeCompletion.CodeCompletionContext
forced bool
token CancellationToken
return Task

HandleCodeCompletionAsync() public method

public HandleCodeCompletionAsync ( MonoDevelop.Ide.CodeCompletion.CodeCompletionContext completionContext, char completionChar, CancellationToken token = default(CancellationToken) ) : Task
completionContext MonoDevelop.Ide.CodeCompletion.CodeCompletionContext
completionChar char
token CancellationToken
return Task

Initialize() protected method

protected Initialize ( ) : void
return void

InitializeOutlineColumns() protected method

protected InitializeOutlineColumns ( MonoDevelop outlineTree ) : void
outlineTree MonoDevelop
return void

IsValidInContext() public method

public IsValidInContext ( DocumentContext context ) : bool
context DocumentContext
return bool

KeyPress() public method

public KeyPress ( KeyDescriptor descriptor ) : bool
descriptor KeyDescriptor
return bool

OnDocTypeChanged() protected method

protected OnDocTypeChanged ( ) : void
return void

OnParsedDocumentUpdated() protected method

protected OnParsedDocumentUpdated ( ) : void
return void

OnPathChanged() protected method

protected OnPathChanged ( PathEntry oldPath ) : void
oldPath MonoDevelop.Components.PathEntry
return void

OutlineSelectionChanged() protected method

protected OutlineSelectionChanged ( object selection ) : void
selection object
return void

RefillOutlineStore() protected method

protected RefillOutlineStore ( ParsedDocument doc, TreeStore store ) : void
doc ParsedDocument
store Gtk.TreeStore
return void

SelectNode() public method

public SelectNode ( MonoDevelop.Xml.Dom.XNode n ) : void
n MonoDevelop.Xml.Dom.XNode
return void

SelectPath() public method

public SelectPath ( int depth ) : void
depth int
return void

SelectPathContents() public method

public SelectPathContents ( int depth ) : void
depth int
return void