Exemplo n.º 1
0
        /// <summary>
        /// Updates the view based on the current selection.
        /// </summary>
        protected virtual void UpdateView()
        {
            if (this.SelectedItemsCollection.Count != 1)
            {
                return;
            }

            DslEditorModeling::DomainModelElement element = this.SelectedItemsCollection[0] as DslEditorModeling::DomainModelElement;

            if (element != null)
            {
                if (element is global::Tum.PDE.VSPluginDSL.DomainClass2)
                {
                    this.SelectedElementType = SelectedElementEnum.DomainClass2;
                    HostedElement            = new DslEditorViewModels::BaseModelElementViewModel(this.ViewModelStore, element, true);

                    return;
                }
            }
        }
Exemplo n.º 2
0
 /// <summary>
 /// Constuctor.
 /// </summary>
 /// <param name="viewModelStore">The store this view model belongs to.</param>
 /// <param name="element">Element.</param>
 protected VSPluginDSLModalDiagramTemplateSurfaceViewModelBase(DslEditorViewModels.Data.ViewModelStore viewModelStore, DslEditorModeling::DomainModelElement element)
     : base(viewModelStore, element)
 {
 }