C# 클래스 MonoDevelop.XmlEditor.XmlTextEditorExtension

상속: MonoDevelop.XmlEditor.Gui.BaseXmlEditorExtension
파일 보기 프로젝트 열기: LogosBible/monodevelop 1 사용 예제들

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
GetAttributeCompletions ( IAttributedXObject attributedOb, string>.Dictionary existingAtts ) : CompletionDataList
GetAttributeValueCompletions ( IAttributedXObject attributedOb, XAttribute att ) : CompletionDataList
GetElementCompletions ( CompletionDataList list ) : void
OnParsedDocumentUpdated ( ) : void

비공개 메소드들

메소드 설명
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

메소드 상세

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

ExtendsEditor() 공개 메소드

public ExtendsEditor ( MonoDevelop doc, IEditableTextBuffer editor ) : bool
doc MonoDevelop
editor IEditableTextBuffer
리턴 bool

FindSchema() 공개 메소드

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
리턴 MonoDevelop.XmlEditor.Completion.XmlSchemaCompletionData

FindSchema() 공개 메소드

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

FindSchema() 공개 메소드

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

FindSchemaFromFileName() 공개 메소드

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

GetAttributeCompletions() 보호된 메소드

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

GetAttributeValueCompletions() 보호된 메소드

protected GetAttributeValueCompletions ( IAttributedXObject attributedOb, XAttribute att ) : CompletionDataList
attributedOb IAttributedXObject
att XAttribute
리턴 CompletionDataList

GetElementCompletions() 보호된 메소드

protected GetElementCompletions ( CompletionDataList list ) : void
list CompletionDataList
리턴 void

GetSchemaObjectSelected() 공개 메소드

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.
리턴 System.Xml.Schema.XmlSchemaObject

Initialize() 공개 메소드

public Initialize ( ) : void
리턴 void

KeyPress() 공개 메소드

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

OnParsedDocumentUpdated() 보호된 메소드

protected OnParsedDocumentUpdated ( ) : void
리턴 void