public void Begin() { _property = Uml2.Create.Property (); _property.Name = _fieldInfo.Name; AssemblyHelper.SetParameter (_property, _fieldInfo.FieldType, _importer); if (_fieldInfo.IsFamily) { _property.Visibility = ExpertCoder.Uml2.VisibilityKind.@protected; } else if (_fieldInfo.IsPrivate) { _property.Visibility = ExpertCoder.Uml2.VisibilityKind.@private; } else if (_fieldInfo.IsPublic) { _property.Visibility = ExpertCoder.Uml2.VisibilityKind.@public; } else if (_fieldInfo.IsAssembly) { _property.Visibility = ExpertCoder.Uml2.VisibilityKind.@package; } _property.IsStatic = _fieldInfo.IsStatic; }
public UMLAssociationEnd(UMLDiagram ownerDiagram, DI.GraphNode graphNode) : base(ownerDiagram, graphNode) { _circle = new CanvasEllipse (ownerDiagram.CanvasRoot); _circle.OutlineColorGdk = UMLEdge.HIGHLIGHTED_OUTLINE_COLOR; _graphNode = graphNode; _modelElement = (UML.Property) MonoUML.Widgets.Helper.GetSemanticElement (graphNode); DI.SimpleSemanticModelElement bridge; foreach (DI.GraphNode gn in graphNode.Contained) { bridge = gn.SemanticModel as DI.SimpleSemanticModelElement; switch (bridge.TypeInfo) { case "Name": _name = new UMLEntry (this, gn, ownerDiagram.CanvasRoot, true, _modelElement.Name); _name.TextChanged += new UMLElementNameChangedHandler (BroadcastNameChange); base.AddFreeEntry (_name); _name.Show (); break; case "Visibility": break; case "Multiplicity": _multiplicity = new UMLEntry (this, gn, ownerDiagram.CanvasRoot, true, GetMultiplicity ()); _multiplicity.TextChanged += new UMLElementNameChangedHandler (ApplyMultiplicityChange); base.AddFreeEntry (_multiplicity); _multiplicity.Show (); break; } } }
public void ShowAggregationFor(UML.Property element) { _property = element; this.Value = _property.Aggregation; }
public new void Hide() { _property = null; base.Hide(); }