C# Class MonoDevelop.XmlEditor.XmlTextEditorExtension

Inheritance: MonoDevelop.XmlEditor.Gui.BaseXmlEditorExtension
Show file Open project: LogosBible/monodevelop Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void
ExtendsEditor ( MonoDevelop doc, IEditableTextBuffer editor ) : bool
FindSchema ( IXmlSchemaCompletionDataCollection schemaCompletionDataItems, MonoDevelop.XmlEditor.XmlElementPath path ) : MonoDevelop.XmlEditor.Completion.XmlSchemaCompletionData

Finds the schema given the xml element path.

FindSchema ( MonoDevelop.XmlEditor.XmlElementPath path ) : MonoDevelop.XmlEditor.Completion.XmlSchemaCompletionData
FindSchema ( string namespaceUri ) : MonoDevelop.XmlEditor.Completion.XmlSchemaCompletionData
FindSchemaFromFileName ( string fileName ) : MonoDevelop.XmlEditor.Completion.XmlSchemaCompletionData
GetSchemaObjectSelected ( MonoDevelop.XmlEditor.Completion.XmlSchemaCompletionData currentSchemaCompletionData ) : XmlSchemaObject

Gets the XmlSchemaObject that defines the currently selected xml element or attribute.

Initialize ( ) : void
KeyPress ( Gdk key, char keyChar, Gdk modifier ) : bool

Protected Methods

Method Description
GetAttributeCompletions ( IAttributedXObject attributedOb, string>.Dictionary existingAtts ) : CompletionDataList
GetAttributeValueCompletions ( IAttributedXObject attributedOb, XAttribute att ) : CompletionDataList
GetElementCompletions ( CompletionDataList list ) : void
OnParsedDocumentUpdated ( ) : void

Private Methods

Method Description
AssignStylesheetCommand ( ) : void
ConvertPath ( IList path ) : MonoDevelop.XmlEditor.XmlElementPath
CreateSchemaCommand ( ) : void
FindSchemaObjectReference ( string name, MonoDevelop.XmlEditor.Completion.XmlSchemaCompletionData schemaCompletionData, string elementName ) : XmlSchemaObject

Attempts to locate the reference name in the specified schema.

FindSchemaObjectType ( string name, MonoDevelop.XmlEditor.Completion.XmlSchemaCompletionData schemaCompletionData, string elementName ) : XmlSchemaObject

Attempts to locate the type name in the specified schema.

GetElementPath ( ) : MonoDevelop.XmlEditor.XmlElementPath
GetFileContent ( string fileName ) : string
GetPositionIndent ( int position ) : string
GetSchemaObjectReferenced ( MonoDevelop.XmlEditor.Completion.XmlSchemaCompletionData currentSchemaCompletionData, XmlSchemaElement element, XmlSchemaAttribute attribute ) : XmlSchemaObject

If the attribute value found references another item in the schema return this instead of the attribute schema object. For example, if the user can select the attribute value and the code will work out the schema object pointed to by the ref or type attribute: xs:element ref="ref-name" xs:attribute type="type-name"

GoToSchemaDefinitionCommand ( ) : void
HandleXmlFileAssociationChanged ( object sender, MonoDevelop.XmlEditor.XmlFileAssociationChangedEventArgs e ) : void
IsFileNameHandled ( string fileName ) : bool

Determines whether the file can be displayed by the xml editor.

IsMimeTypeHandled ( string mimeType ) : bool
IsXmlSchemaNamespace ( XmlSchemaElement element ) : bool

Checks whether the element belongs to the XSD namespace.

OpenStylesheetCommand ( ) : void
QueueInference ( ) : void
RunXslTransformCommand ( ) : void
SetDefaultSchema ( ) : void
SmartIndentLine ( int line ) : void
ToggleCodeCommentCommand ( ) : void
ToggleCodeCommentCommandUpdate ( MonoDevelop.Components.Commands.CommandInfo info ) : void
UpdateOpenStylesheetCommand ( MonoDevelop.Components.Commands.CommandInfo info ) : void
UserSchemaAdded ( object source, EventArgs e ) : void
UserSchemaRemoved ( object source, EventArgs e ) : void
ValidateCommand ( ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

ExtendsEditor() public method

public ExtendsEditor ( MonoDevelop doc, IEditableTextBuffer editor ) : bool
doc MonoDevelop
editor IEditableTextBuffer
return bool

FindSchema() public method

Finds the schema given the xml element path.
public FindSchema ( IXmlSchemaCompletionDataCollection schemaCompletionDataItems, MonoDevelop.XmlEditor.XmlElementPath path ) : MonoDevelop.XmlEditor.Completion.XmlSchemaCompletionData
schemaCompletionDataItems IXmlSchemaCompletionDataCollection
path MonoDevelop.XmlEditor.XmlElementPath
return MonoDevelop.XmlEditor.Completion.XmlSchemaCompletionData

FindSchema() public method

public FindSchema ( MonoDevelop.XmlEditor.XmlElementPath path ) : MonoDevelop.XmlEditor.Completion.XmlSchemaCompletionData
path MonoDevelop.XmlEditor.XmlElementPath
return MonoDevelop.XmlEditor.Completion.XmlSchemaCompletionData

FindSchema() public method

public FindSchema ( string namespaceUri ) : MonoDevelop.XmlEditor.Completion.XmlSchemaCompletionData
namespaceUri string
return MonoDevelop.XmlEditor.Completion.XmlSchemaCompletionData

FindSchemaFromFileName() public method

public FindSchemaFromFileName ( string fileName ) : MonoDevelop.XmlEditor.Completion.XmlSchemaCompletionData
fileName string
return MonoDevelop.XmlEditor.Completion.XmlSchemaCompletionData

GetAttributeCompletions() protected method

protected GetAttributeCompletions ( IAttributedXObject attributedOb, string>.Dictionary existingAtts ) : CompletionDataList
attributedOb IAttributedXObject
existingAtts string>.Dictionary
return CompletionDataList

GetAttributeValueCompletions() protected method

protected GetAttributeValueCompletions ( IAttributedXObject attributedOb, XAttribute att ) : CompletionDataList
attributedOb IAttributedXObject
att XAttribute
return CompletionDataList

GetElementCompletions() protected method

protected GetElementCompletions ( CompletionDataList list ) : void
list CompletionDataList
return void

GetSchemaObjectSelected() public method

Gets the XmlSchemaObject that defines the currently selected xml element or attribute.
public GetSchemaObjectSelected ( MonoDevelop.XmlEditor.Completion.XmlSchemaCompletionData currentSchemaCompletionData ) : XmlSchemaObject
currentSchemaCompletionData MonoDevelop.XmlEditor.Completion.XmlSchemaCompletionData This is the schema completion data for the schema currently being /// displayed. This can be null if the document is not a schema.
return System.Xml.Schema.XmlSchemaObject

Initialize() public method

public Initialize ( ) : void
return void

KeyPress() public method

public KeyPress ( Gdk key, char keyChar, Gdk modifier ) : bool
key Gdk
keyChar char
modifier Gdk
return bool

OnParsedDocumentUpdated() protected method

protected OnParsedDocumentUpdated ( ) : void
return void