C# Class Company.OrmLanguage.OrmLanguageDiagram

Inheritance: DslDiagrams::Diagram
Exibir arquivo Open project: thabart/SimpleOrm Class Usage Examples

Public Properties

Property Type Description
DomainClassId global::System.Guid

Public Methods

Method Description
OnViewMouseEnter ( global::Microsoft.VisualStudio.Modeling.Diagrams pointArgs ) : void

Override to provide the right mouse action when trying to create links on the diagram

OnViewMouseEnter ( DslDiagrams::DiagramPointEventArgs pointArgs ) : void

Override to provide the right mouse action when trying to create links on the diagram

OrmLanguageDiagram ( DslModeling::Partition partition )

Constructor

OrmLanguageDiagram ( DslModeling::Store store )

Constructor

OrmLanguageDiagram ( global::Microsoft.VisualStudio.Modeling store )

Constructor

SubscribeCompartmentItemsEvents ( ) : void

Subscribe to events fired when compartment items changes.

UnsubscribeCompartmentItemsEvents ( ) : void

Unsubscribe to events fired when compartment items changes.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Dispose of connect actions.

InitializeShapeFields ( global::System.Collections.Generic.IList shapeFields ) : void

Initialize shape decorator mappings. This is done here rather than in individual shapes because decorator maps are defined per diagram type rather than per shape type.

InitializeShapeFields ( global shapeFields ) : void

Initialize shape decorator mappings. This is done here rather than in individual shapes because decorator maps are defined per diagram type rather than per shape type.

OnChildConfiguring ( global::Microsoft.VisualStudio.Modeling.Diagrams child, bool createdDuringViewFixup ) : void

Called during view fixup to configure the given child element, after it has been created.

Custom code for choosing the shapes attached to either end of a connector is called from here.

OnChildConfiguring ( DslDiagrams::ShapeElement child, bool createdDuringViewFixup ) : void

Called during view fixup to configure the given child element, after it has been created.

Custom code for choosing the shapes attached to either end of a connector is called from here.

OnMouseActionDeactivated ( ) : void

Overridable method to manage the mouse deactivation. The default implementation snap stoolbox selection back to regular pointer after using a custom connect action.

SelectedToolboxItemSupportsFilterString ( global::Microsoft.VisualStudio.Modeling.Diagrams activeView, string filter ) : bool

Virtual method to provide a filter when to select the mouse action

SelectedToolboxItemSupportsFilterString ( DslDiagrams::DiagramView activeView, string filter ) : bool

Virtual method to provide a filter when to select the mouse action

ShouldAddShapeForElement ( DslModeling::ModelElement element ) : bool

Called during view fixup to ask the parent whether a shape should be created for the given child element.

Always return true, since we assume there is only one diagram per model file for DSL scenarios.

ShouldAddShapeForElement ( global::Microsoft.VisualStudio.Modeling element ) : bool

Called during view fixup to ask the parent whether a shape should be created for the given child element.

Always return true, since we assume there is only one diagram per model file for DSL scenarios.

Private Methods

Method Description
CompartmentItemAdded ( object sender, DslModeling::ElementAddedEventArgs e ) : void

Event for element added.

CompartmentItemAdded ( object sender, global::Microsoft.VisualStudio.Modeling e ) : void

Event for element added.

CompartmentItemDeleted ( object sender, DslModeling::ElementDeletedEventArgs e ) : void

Event for element deleted.

CompartmentItemDeleted ( object sender, global::Microsoft.VisualStudio.Modeling e ) : void

Event for element deleted.

CompartmentItemPropertyChanged ( object sender, DslModeling::ElementPropertyChangedEventArgs e ) : void

Event for element property changed.

CompartmentItemPropertyChanged ( object sender, global::Microsoft.VisualStudio.Modeling e ) : void

Event for element property changed.

CompartmentItemRolePlayerChanged ( object sender, DslModeling::RolePlayerChangedEventArgs e ) : void

Event for role-player changed.

CompartmentItemRolePlayerChanged ( object sender, global::Microsoft.VisualStudio.Modeling e ) : void

Event for role-player changed.

CompartmentItemRolePlayerOrderChanged ( object sender, DslModeling::RolePlayerOrderChangedEventArgs e ) : void

Event for role-player order changed.

CompartmentItemRolePlayerOrderChanged ( object sender, global::Microsoft.VisualStudio.Modeling e ) : void

Event for role-player order changed.

CreateChildShape ( DslModeling::ModelElement element ) : DslDiagrams::ShapeElement
CreateChildShape ( global::Microsoft.VisualStudio.Modeling element ) : DslDiagrams::ShapeElement
GetEndShapesForConnector ( global::Microsoft.VisualStudio.Modeling.Diagrams connector ) : DslDiagrams::NodeShape[]

Helper method to find shapes for either end of a connector by looking for shapes associated with either end of the relationship mapped to the connector.

GetEndShapesForConnector ( DslDiagrams::BinaryLinkShape connector ) : DslDiagrams::NodeShape[]

Helper method to find shapes for either end of a connector by looking for shapes associated with either end of the relationship mapped to the connector.

GetSourceAndTargetForConnector ( global::Microsoft.VisualStudio.Modeling.Diagrams connector, global::Microsoft.VisualStudio.Modeling.Diagrams &sourceShape, global::Microsoft.VisualStudio.Modeling.Diagrams &targetShape ) : void
GetSourceAndTargetForConnector ( DslDiagrams::BinaryLinkShape connector, DslDiagrams::NodeShape &sourceShape, DslDiagrams::NodeShape &targetShape ) : void
OnConnectActionDeactivated ( object sender, global::Microsoft.VisualStudio.Modeling.Diagrams e ) : void

Snap toolbox selection back to regular pointer after using a custom connect action.

OnConnectActionDeactivated ( object sender, DslDiagrams::DiagramEventArgs e ) : void

Snap toolbox selection back to regular pointer after using a custom connect action.

Method Details

Dispose() protected method

Dispose of connect actions.
protected Dispose ( bool disposing ) : void
disposing bool
return void

InitializeShapeFields() protected method

Initialize shape decorator mappings. This is done here rather than in individual shapes because decorator maps are defined per diagram type rather than per shape type.
protected InitializeShapeFields ( global::System.Collections.Generic.IList shapeFields ) : void
shapeFields global::System.Collections.Generic.IList
return void

InitializeShapeFields() protected method

Initialize shape decorator mappings. This is done here rather than in individual shapes because decorator maps are defined per diagram type rather than per shape type.
protected InitializeShapeFields ( global shapeFields ) : void
shapeFields global
return void

OnChildConfiguring() protected method

Called during view fixup to configure the given child element, after it has been created.
Custom code for choosing the shapes attached to either end of a connector is called from here.
protected OnChildConfiguring ( global::Microsoft.VisualStudio.Modeling.Diagrams child, bool createdDuringViewFixup ) : void
child global::Microsoft.VisualStudio.Modeling.Diagrams
createdDuringViewFixup bool
return void

OnChildConfiguring() protected method

Called during view fixup to configure the given child element, after it has been created.
Custom code for choosing the shapes attached to either end of a connector is called from here.
protected OnChildConfiguring ( DslDiagrams::ShapeElement child, bool createdDuringViewFixup ) : void
child DslDiagrams::ShapeElement
createdDuringViewFixup bool
return void

OnMouseActionDeactivated() protected method

Overridable method to manage the mouse deactivation. The default implementation snap stoolbox selection back to regular pointer after using a custom connect action.
protected OnMouseActionDeactivated ( ) : void
return void

OnViewMouseEnter() public method

Override to provide the right mouse action when trying to create links on the diagram
public OnViewMouseEnter ( global::Microsoft.VisualStudio.Modeling.Diagrams pointArgs ) : void
pointArgs global::Microsoft.VisualStudio.Modeling.Diagrams
return void

OnViewMouseEnter() public method

Override to provide the right mouse action when trying to create links on the diagram
public OnViewMouseEnter ( DslDiagrams::DiagramPointEventArgs pointArgs ) : void
pointArgs DslDiagrams::DiagramPointEventArgs
return void

OrmLanguageDiagram() public method

Constructor
public OrmLanguageDiagram ( DslModeling::Partition partition )
partition DslModeling::Partition Partition where new element is to be created.

OrmLanguageDiagram() public method

Constructor
public OrmLanguageDiagram ( DslModeling::Store store )
store DslModeling::Store Store where new element is to be created.

OrmLanguageDiagram() public method

Constructor
public OrmLanguageDiagram ( global::Microsoft.VisualStudio.Modeling store )
store global::Microsoft.VisualStudio.Modeling Store where new element is to be created.

SelectedToolboxItemSupportsFilterString() protected method

Virtual method to provide a filter when to select the mouse action
protected SelectedToolboxItemSupportsFilterString ( global::Microsoft.VisualStudio.Modeling.Diagrams activeView, string filter ) : bool
activeView global::Microsoft.VisualStudio.Modeling.Diagrams Currently active view
filter string filter string used to filter the toolbox items
return bool

SelectedToolboxItemSupportsFilterString() protected method

Virtual method to provide a filter when to select the mouse action
protected SelectedToolboxItemSupportsFilterString ( DslDiagrams::DiagramView activeView, string filter ) : bool
activeView DslDiagrams::DiagramView Currently active view
filter string filter string used to filter the toolbox items
return bool

ShouldAddShapeForElement() protected method

Called during view fixup to ask the parent whether a shape should be created for the given child element.
Always return true, since we assume there is only one diagram per model file for DSL scenarios.
protected ShouldAddShapeForElement ( DslModeling::ModelElement element ) : bool
element DslModeling::ModelElement
return bool

ShouldAddShapeForElement() protected method

Called during view fixup to ask the parent whether a shape should be created for the given child element.
Always return true, since we assume there is only one diagram per model file for DSL scenarios.
protected ShouldAddShapeForElement ( global::Microsoft.VisualStudio.Modeling element ) : bool
element global::Microsoft.VisualStudio.Modeling
return bool

SubscribeCompartmentItemsEvents() public method

Subscribe to events fired when compartment items changes.
public SubscribeCompartmentItemsEvents ( ) : void
return void

UnsubscribeCompartmentItemsEvents() public method

Unsubscribe to events fired when compartment items changes.
public UnsubscribeCompartmentItemsEvents ( ) : void
return void

Property Details

DomainClassId public_oe static_oe property

OrmLanguageDiagram domain class Id.
public static global::System.Guid DomainClassId
return global::System.Guid