EAImvertor.EAImvertorJob.viewWarnings C# (CSharp) Method

viewWarnings() public method

public viewWarnings ( ) : void
return void
        public void viewWarnings()
        {
            var outputItems = new List<UML.Extended.UMLModelOutPutItem>();
             List<EAImvertorException> exceptions = new List<EAImvertorException>(this.warnings);
             exceptions.AddRange(this.errors);
            foreach (var exception in exceptions)
            {
                var outputItem = ((UTF_EA.Package)this._sourcePackage).model.getItemFromGUID(exception.guid);
                string outputItemName = "-";
                if (outputItem != null) outputItemName = outputItem.name;
                outputItems.Add( new UML.Extended.UMLModelOutPutItem(outputItem,
                                                                     new List<string>(new []{outputItemName,exception.exceptionType,exception.message,exception.construct})));
            }
            //create the search output
            var searchOutPut = new EASearchOutput("Imvertor Messages"
                                                  ,new List<string>(new string[] {"Name","Message Type","Message","Path"})
                                                  ,outputItems
                                                  ,((UTF_EA.Package)this._sourcePackage).model);
            //show the output
            searchOutPut.show();
        }