C# 클래스 nHydrate.DslPackage.nHydrateDocDataBase

Class which represents a nHydrate document in memory.
상속: DslShell::ModelingDocData
파일 보기 프로젝트 열기: nHydrate/nHydrate 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
diagramDocumentLockHolder DslShell::SubordinateDocumentLockHolder
diagramPartitionId global::System.Guid

공개 메소드들

메소드 설명
Initialize ( global::Microsoft.VisualStudio.Modeling sharedStore ) : void

Initialize the doc data

MarkDocumentChangedForBackup ( ) : void

Mark that the document has changed and thus a new backup should be created

Call this method when you change the document's content

보호된 메소드들

메소드 설명
CreateExtensionLocator ( ) : DslModeling::IExtensionLocator

Factory method to create an ExtensionLocator.

CreateSerializerLocator ( ) : DslModeling::ISerializerLocator

Factory method to create a SerializerLocator.

CreateStore ( ) : DslModeling::Store

Create and return a new store

Override the default behaviour to put the doc data's composition container into the store's property bag. By default, the runtime will add the CompositionService from the DslShell ModelingCompositionContainer if the property has not already been set.

CreateValidationController ( ) : DslShell::VsValidationController

Factory method to create a VSValidationController.

Dispose ( bool disposing ) : void

When the doc data is closed, make sure we reset the valiation messages (if there's any) from the ErrorList window.

GetDiagramPartition ( ) : DslModeling::Partition

Get the Partition where diagram data will be loaded into. Base implementation returns the default partition of the store.

GetDomainModels ( ) : global::System.Collections.Generic.IList

Returns a collection of domain models to load into the store.

The default implementation includes any extension domain models returned by the call to GetExtensionDomainModels().

GetExtensionDomainModels ( ) : global::System.Collections.Generic.IEnumerable

Returns the list of extension domain models to be loaded

This method is called by "GetDomainModels", which aggregates the returned lists.

GetModelPartition ( ) : DslModeling::Partition

Get the Partition where model data will be loaded into. Base implementation returns the default partition of the store.

HandleBindingFailure ( global exception ) : bool

Handles exceptions that occurred during binding.

If the exception is not handled (i.e. the method returns false), it will be re-thrown by the calling method. This method will be called for all types of exception.

InitializeComposition ( ) : void

Satisfy Imports in DocData object

Load ( string fileName, bool isReload ) : void

Loads the given file.

NotifySubordinateDocumentSaved ( string oldFileName, string newFileName ) : void

Notify the RDT that the sub-ordinate document has been saved, assuming saved to the same file as registered in the RDT

OnDocumentLoaded ( ) : void

Called on both document load and reload.

OnDocumentLoaded ( global e ) : void

Called after the document is opened.

OnDocumentReloaded ( global e ) : void

Called after the document is reloaded.

OnDocumentSaved ( global e ) : void

Handle when document has been saved

Save ( string fileName ) : void

Saves the given file.

SaveSubordinateFile ( global::Microsoft.VisualStudio.Modeling.Shell subordinateDocument, string fileName ) : void

Save the given document that is subordinate to this document.

nHydrateDocDataBase ( global serviceProvider, global editorFactoryId ) : global::System.Linq

Constructs a new nHydrateDocDataBase.

비공개 메소드들

메소드 설명
SetValidationExtensionRegistrar ( global::Microsoft.VisualStudio.Modeling.Validation validationController ) : void

Add ValidationExtensionRegistrar to the ValidationController and handle related MEF Initialization operations

메소드 상세

CreateExtensionLocator() 보호된 메소드

Factory method to create an ExtensionLocator.
protected CreateExtensionLocator ( ) : DslModeling::IExtensionLocator
리턴 DslModeling::IExtensionLocator

CreateSerializerLocator() 보호된 메소드

Factory method to create a SerializerLocator.
protected CreateSerializerLocator ( ) : DslModeling::ISerializerLocator
리턴 DslModeling::ISerializerLocator

CreateStore() 보호된 메소드

Create and return a new store
Override the default behaviour to put the doc data's composition container into the store's property bag. By default, the runtime will add the CompositionService from the DslShell ModelingCompositionContainer if the property has not already been set.
protected CreateStore ( ) : DslModeling::Store
리턴 DslModeling::Store

CreateValidationController() 보호된 메소드

Factory method to create a VSValidationController.
protected CreateValidationController ( ) : DslShell::VsValidationController
리턴 DslShell::VsValidationController

Dispose() 보호된 메소드

When the doc data is closed, make sure we reset the valiation messages (if there's any) from the ErrorList window.
protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

GetDiagramPartition() 보호된 메소드

Get the Partition where diagram data will be loaded into. Base implementation returns the default partition of the store.
protected GetDiagramPartition ( ) : DslModeling::Partition
리턴 DslModeling::Partition

GetDomainModels() 보호된 메소드

Returns a collection of domain models to load into the store.
The default implementation includes any extension domain models returned by the call to GetExtensionDomainModels().
protected GetDomainModels ( ) : global::System.Collections.Generic.IList
리턴 global::System.Collections.Generic.IList

GetExtensionDomainModels() 보호된 메소드

Returns the list of extension domain models to be loaded
This method is called by "GetDomainModels", which aggregates the returned lists.
protected GetExtensionDomainModels ( ) : global::System.Collections.Generic.IEnumerable
리턴 global::System.Collections.Generic.IEnumerable

GetModelPartition() 보호된 메소드

Get the Partition where model data will be loaded into. Base implementation returns the default partition of the store.
protected GetModelPartition ( ) : DslModeling::Partition
리턴 DslModeling::Partition

HandleBindingFailure() 보호된 메소드

Handles exceptions that occurred during binding.
If the exception is not handled (i.e. the method returns false), it will be re-thrown by the calling method. This method will be called for all types of exception.
protected HandleBindingFailure ( global exception ) : bool
exception global The exception that occured
리턴 bool

Initialize() 공개 메소드

Initialize the doc data
public Initialize ( global::Microsoft.VisualStudio.Modeling sharedStore ) : void
sharedStore global::Microsoft.VisualStudio.Modeling
리턴 void

InitializeComposition() 보호된 메소드

Satisfy Imports in DocData object
protected InitializeComposition ( ) : void
리턴 void

Load() 보호된 메소드

Loads the given file.
protected Load ( string fileName, bool isReload ) : void
fileName string
isReload bool
리턴 void

MarkDocumentChangedForBackup() 공개 메소드

Mark that the document has changed and thus a new backup should be created
Call this method when you change the document's content
public MarkDocumentChangedForBackup ( ) : void
리턴 void

NotifySubordinateDocumentSaved() 보호된 메소드

Notify the RDT that the sub-ordinate document has been saved, assuming saved to the same file as registered in the RDT
protected NotifySubordinateDocumentSaved ( string oldFileName, string newFileName ) : void
oldFileName string
newFileName string
리턴 void

OnDocumentLoaded() 보호된 메소드

Called on both document load and reload.
protected OnDocumentLoaded ( ) : void
리턴 void

OnDocumentLoaded() 보호된 메소드

Called after the document is opened.
protected OnDocumentLoaded ( global e ) : void
e global Event Args.
리턴 void

OnDocumentReloaded() 보호된 메소드

Called after the document is reloaded.
protected OnDocumentReloaded ( global e ) : void
e global
리턴 void

OnDocumentSaved() 보호된 메소드

Handle when document has been saved
protected OnDocumentSaved ( global e ) : void
e global
리턴 void

Save() 보호된 메소드

Saves the given file.
protected Save ( string fileName ) : void
fileName string
리턴 void

SaveSubordinateFile() 보호된 메소드

Save the given document that is subordinate to this document.
protected SaveSubordinateFile ( global::Microsoft.VisualStudio.Modeling.Shell subordinateDocument, string fileName ) : void
subordinateDocument global::Microsoft.VisualStudio.Modeling.Shell
fileName string
리턴 void

nHydrateDocDataBase() 보호된 메소드

Constructs a new nHydrateDocDataBase.
protected nHydrateDocDataBase ( global serviceProvider, global editorFactoryId ) : global::System.Linq
serviceProvider global
editorFactoryId global
리턴 global::System.Linq

프로퍼티 상세

diagramDocumentLockHolder 보호되어 있는 프로퍼티

Document lock holder registered for the subordinate .diagram file.
protected DslShell::SubordinateDocumentLockHolder diagramDocumentLockHolder
리턴 DslShell::SubordinateDocumentLockHolder

diagramPartitionId 보호되어 있는 프로퍼티

Id of the partition that contains diagram elements.
protected global::System.Guid diagramPartitionId
리턴 global::System.Guid