/// <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> /// Reset. /// </summary> protected override void Reset() { this.SelectedElementType = SelectedElementEnum.___None___; base.Reset(); }
/// <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> /// Called if the hosted element was deleted. /// </summary> /// <param name="args">Data</param> protected override void OnHostedElementDeleted(DslModeling::ElementDeletedEventArgs args) { base.OnHostedElementDeleted(args); this.SelectedElementType = SelectedElementEnum.___None___; }
/// <summary> /// Reset. /// </summary> protected override void Reset() { this.SelectedElementType = SelectedElementEnum.___None___; base.Reset(); }
/// <summary> /// Called if the hosted element was deleted. /// </summary> /// <param name="args">Data</param> protected override void OnHostedElementDeleted(DslModeling::ElementDeletedEventArgs args) { base.OnHostedElementDeleted(args); this.SelectedElementType = SelectedElementEnum.___None___; }