Ejemplo n.º 1
0
 public void ShowElementTypeFor(UML.Element element)
 {
     _element = element;
     _lblType.Text = (element == null ?
         String.Empty : element.GetType().Name.Substring(6));
     _btnGoUp.Sensitive = (element.Owner != null);
 }
Ejemplo n.º 2
0
 public void ShowCommentsFor(UML.Element element)
 {
     _umlElement = element;
     string[] commentList = new string[element.OwnedComment.Count];
     for(int i = 0; i < element.OwnedComment.Count; i ++)
     {
         commentList[i] = ((UML.Comment)element.OwnedComment[i]).Body;
     }
     base.ShowList(commentList);
 }
Ejemplo n.º 3
0
 private void ShowPropertiesFor(UML.Element element)
 {
     _currentElement = element;
     HideAllProperties();
     if (element == null)
     {
         return;
     }
     EnableElementProperties();
     if(element is UML.Association)
     {
         EnableAssociationProperties();
     }
     if(element is UML.BehavioredClassifier)
     {
         EnableBehavioredClassifierProperties();
     }
     if(element is UML.Classifier)
     {
         EnableClassifierProperties();
     }
     // this comes after Classifier because it may hide some viewers
     // (those corresponding to redefined attributes).
     if(element is UML.Class)
     {
         EnableClassProperties();
     }
     if(element is UML.Comment)
     {
         EnableCommentProperties();
     }
     if(element is UML.DataType)
     {
         EnableDataTypeProperties();
     }
     if(element is UML.Enumeration)
     {
         EnableEnumerationProperties();
     }
     if(element is UML.Extend)
     {
         EnableExtendProperties();
     }
     if(element is UML.Feature)
     {
         EnableFeatureProperties();
     }
     if(element is UML.Generalization)
     {
         EnableGeneralizationProperties();
     }
     if(element is UML.InterfaceRealization)
     {
         EnableInterfaceRealizationProperties();
     }
     if(element is UML.Include)
     {
         EnableIncludeProperties();
     }
     if(element is UML.Interface)
     {
         EnableInterfaceProperties();
     }
     if(element is UML.MultiplicityElement)
     {
         EnableMultiplicityElementProperties();
     }
     if(element is UML.NamedElement)
     {
         EnableNamedElementProperties();
     }
     if(element is UML.Namespace)
     {
         EnableNamespaceProperties();
     }
     if(element is UML.Operation)
     {
         EnableOperationProperties();
     }
     if(element is UML.Package)
     {
         EnablePackageProperties();
     }
     if(element is UML.Parameter)
     {
         EnableParameterProperties();
     }
     if(element is UML.Property)
     {
         EnablePropertyProperties();
     }
     if(element is UML.RedefinableElement)
     {
         EnableRedefinableElementProperties();
     }
     if(element is UML.StructuralFeature)
     {
         EnableStructuralFeatureProperties();
     }
     if(element is UML.TypedElement)
     {
         EnableTypedElementProperties();
     }
     if(element is UML.UseCase)
     {
         EnableUseCaseProperties();
     }
 }