public void loadMappingSet(MappingFramework.MappingSet mappingSet)
 {
     //temporary code to show mapping in a simple textbox.
     _mappingSet = mappingSet;
     this.tempTextBox.Clear();
     string mappingString = string.Empty;
     foreach (var mapping in mappingSet.mappings)
     {
         mappingString += "From: " + mapping.source.fullMappingPath
         + " To: " + mapping.target.fullMappingPath  + Environment.NewLine;
     }
     this.tempTextBox.Text = mappingString;
 }
 private MappingFramework.MappingSet getCurrentMappingSet(bool source)
 {
     var selectedItem = model.selectedItem;
     var selectedPackage = selectedItem as UML.Classes.Kernel.Package;
     //check if package is selected
     if (selectedPackage != null)
     {
         _currentMappingSet = getCurrentMappingSet(selectedPackage, source);
     }
     else
     {
         //check if element is selected
         var selectedElement = selectedItem as TSF_EA.ElementWrapper;
         if (selectedElement != null)
         {
             _currentMappingSet = getCurrentMappingSet(selectedElement, source);
         }
     }
     return _currentMappingSet;
 }