예제 #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;
                }
            }
        }
		/// <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;
				}
			}
		}