diff --git a/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Templates/Document/Database/AssetsDatabase.uexml b/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Templates/Document/Database/AssetsDatabase.uexml index fd3da35d..a3b0ff95 100644 --- a/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Templates/Document/Database/AssetsDatabase.uexml +++ b/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Templates/Document/Database/AssetsDatabase.uexml @@ -1,18 +1,20 @@  - - - + + \ No newline at end of file diff --git a/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Templates/Document/Database/ContactsDatabase.uexml b/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Templates/Document/Database/ContactsDatabase.uexml index 5bfeaa1d..01dc5afa 100644 --- a/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Templates/Document/Database/ContactsDatabase.uexml +++ b/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Templates/Document/Database/ContactsDatabase.uexml @@ -1,18 +1,20 @@  - - - + + \ No newline at end of file diff --git a/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Templates/Document/Database/EventsDatabase.uexml b/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Templates/Document/Database/EventsDatabase.uexml index bbe67ac3..c16fb02c 100644 --- a/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Templates/Document/Database/EventsDatabase.uexml +++ b/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Templates/Document/Database/EventsDatabase.uexml @@ -1,18 +1,20 @@  - - - + + \ No newline at end of file diff --git a/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Templates/Document/Database/FacultyDatabase.uexml b/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Templates/Document/Database/FacultyDatabase.uexml index 98c004c8..cdb5f04f 100644 --- a/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Templates/Document/Database/FacultyDatabase.uexml +++ b/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Templates/Document/Database/FacultyDatabase.uexml @@ -1,18 +1,20 @@  - - - + + \ No newline at end of file diff --git a/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Templates/Document/Database/IssuesDatabase.uexml b/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Templates/Document/Database/IssuesDatabase.uexml index 3aa03ba6..c480d2e2 100644 --- a/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Templates/Document/Database/IssuesDatabase.uexml +++ b/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Templates/Document/Database/IssuesDatabase.uexml @@ -1,18 +1,20 @@  - - - + + \ No newline at end of file diff --git a/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Templates/Document/Database/MarketingProjectsDatabase.uexml b/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Templates/Document/Database/MarketingProjectsDatabase.uexml index 002bd24a..1f448070 100644 --- a/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Templates/Document/Database/MarketingProjectsDatabase.uexml +++ b/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Templates/Document/Database/MarketingProjectsDatabase.uexml @@ -1,18 +1,20 @@  - - - + + \ No newline at end of file diff --git a/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Templates/Document/Database/NorthwindDatabase.uexml b/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Templates/Document/Database/NorthwindDatabase.uexml index 15cb6f6e..010ccb84 100644 --- a/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Templates/Document/Database/NorthwindDatabase.uexml +++ b/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Templates/Document/Database/NorthwindDatabase.uexml @@ -1,18 +1,20 @@  - - - + + \ No newline at end of file diff --git a/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Templates/Document/Database/ProjectsDatabase.uexml b/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Templates/Document/Database/ProjectsDatabase.uexml index 9715dae7..326d4743 100644 --- a/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Templates/Document/Database/ProjectsDatabase.uexml +++ b/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Templates/Document/Database/ProjectsDatabase.uexml @@ -1,18 +1,20 @@  - - - + + \ No newline at end of file diff --git a/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Templates/Document/Database/SalesPipelineDatabase.uexml b/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Templates/Document/Database/SalesPipelineDatabase.uexml index af37440c..25a4f7aa 100644 --- a/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Templates/Document/Database/SalesPipelineDatabase.uexml +++ b/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Templates/Document/Database/SalesPipelineDatabase.uexml @@ -1,18 +1,20 @@  - - - + + \ No newline at end of file diff --git a/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Templates/Document/Database/StudentsDatabase.uexml b/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Templates/Document/Database/StudentsDatabase.uexml index 79ad5417..6ea82504 100644 --- a/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Templates/Document/Database/StudentsDatabase.uexml +++ b/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Templates/Document/Database/StudentsDatabase.uexml @@ -1,18 +1,20 @@  - - - + + \ No newline at end of file diff --git a/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Templates/Document/Database/TasksDatabase.uexml b/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Templates/Document/Database/TasksDatabase.uexml index 1287661a..96e3ff7a 100644 --- a/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Templates/Document/Database/TasksDatabase.uexml +++ b/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Templates/Document/Database/TasksDatabase.uexml @@ -1,18 +1,20 @@  - - - + + \ No newline at end of file diff --git a/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Templates/Document/FileSystem/WindowsFileSystem.uexml b/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Templates/Document/FileSystem/WindowsFileSystem.uexml index 5e86b454..b9d1c0b3 100644 --- a/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Templates/Document/FileSystem/WindowsFileSystem.uexml +++ b/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Templates/Document/FileSystem/WindowsFileSystem.uexml @@ -1,7 +1,7 @@  - - - + + \ No newline at end of file diff --git a/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Templates/Document/Form/Asset Tracking.uexml b/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Templates/Document/Form/Asset Tracking.uexml index d8222f7e..f45bf2a6 100644 --- a/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Templates/Document/Form/Asset Tracking.uexml +++ b/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Templates/Document/Form/Asset Tracking.uexml @@ -1,7 +1,7 @@  - - - + + \ No newline at end of file diff --git a/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Templates/Document/Form/Expense Report.uexml b/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Templates/Document/Form/Expense Report.uexml index 375a5181..f86eb234 100644 --- a/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Templates/Document/Form/Expense Report.uexml +++ b/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Templates/Document/Form/Expense Report.uexml @@ -1,7 +1,7 @@  - - - + + \ No newline at end of file diff --git a/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Templates/Document/Form/Meeting Agenda.uexml b/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Templates/Document/Form/Meeting Agenda.uexml index 3718e644..0056db8a 100644 --- a/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Templates/Document/Form/Meeting Agenda.uexml +++ b/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Templates/Document/Form/Meeting Agenda.uexml @@ -1,7 +1,7 @@  - - - + + \ No newline at end of file diff --git a/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Templates/Document/Form/Status Report.uexml b/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Templates/Document/Form/Status Report.uexml index f6ec5539..ce072455 100644 --- a/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Templates/Document/Form/Status Report.uexml +++ b/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Templates/Document/Form/Status Report.uexml @@ -1,7 +1,7 @@  - - - + + \ No newline at end of file diff --git a/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Templates/Document/Form/Travel Request.uexml b/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Templates/Document/Form/Travel Request.uexml index 4b1fd1e3..7e59bc65 100644 --- a/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Templates/Document/Form/Travel Request.uexml +++ b/CSharp/Content/UniversalEditor.Content.PlatformIndependent/Templates/Document/Form/Travel Request.uexml @@ -1,7 +1,7 @@  - - - + + \ No newline at end of file diff --git a/CSharp/Libraries/UniversalEditor.Core/ObjectModelReference.cs b/CSharp/Libraries/UniversalEditor.Core/ObjectModelReference.cs index 25e929dc..c9ccff6b 100644 --- a/CSharp/Libraries/UniversalEditor.Core/ObjectModelReference.cs +++ b/CSharp/Libraries/UniversalEditor.Core/ObjectModelReference.cs @@ -220,7 +220,7 @@ namespace UniversalEditor { if (mvarType == null && mvarTypeName != null) { - mvarType = Type.GetType(mvarTypeName); + mvarType = MBS.Framework.Reflection.FindType(mvarTypeName); } if (mvarType != null) { diff --git a/CSharp/Libraries/UniversalEditor.Essential/DataFormats/UEPackage/UEPackageXMLDataFormat.cs b/CSharp/Libraries/UniversalEditor.Essential/DataFormats/UEPackage/UEPackageXMLDataFormat.cs index 550533f3..a8db2580 100644 --- a/CSharp/Libraries/UniversalEditor.Essential/DataFormats/UEPackage/UEPackageXMLDataFormat.cs +++ b/CSharp/Libraries/UniversalEditor.Essential/DataFormats/UEPackage/UEPackageXMLDataFormat.cs @@ -440,6 +440,20 @@ namespace UniversalEditor.DataFormats.UEPackage template.Description = tagInformation.Elements["Description"].Value; } + MarkupTagElement tagPath = (tagInformation.Elements["Path"] as MarkupTagElement); + if (tagPath != null) + { + List pathParts = new List(); + foreach (MarkupElement elPart in tagPath.Elements) + { + MarkupTagElement tagPart = (elPart as MarkupTagElement); + if (tagPart == null) continue; + if (tagPart.FullName != "Part") continue; + pathParts.Add(tagPart.Value); + } + template.Path = pathParts.ToArray(); + } + MarkupTagElement tagIconPath = (tagInformation.Elements["IconPath"] as MarkupTagElement); if (tagIconPath != null) { diff --git a/CSharp/Libraries/UniversalEditor.UserInterface/Dialogs/NewDialog.cs b/CSharp/Libraries/UniversalEditor.UserInterface/Dialogs/NewDialog.cs index fb42674f..f8711ace 100644 --- a/CSharp/Libraries/UniversalEditor.UserInterface/Dialogs/NewDialog.cs +++ b/CSharp/Libraries/UniversalEditor.UserInterface/Dialogs/NewDialog.cs @@ -370,8 +370,6 @@ namespace UniversalEditor.UserInterface.Dialogs private void InitializeObjectModelTreeView() { - tmObjectModel.Rows.Clear(); - ObjectModelReference[] omrs = UniversalEditor.Common.Reflection.GetAvailableObjectModels(); foreach (ObjectModelReference omr in omrs) { @@ -505,7 +503,7 @@ namespace UniversalEditor.UserInterface.Dialogs } } - if (tn == null || tvObjectModel.SelectedRows.Contains(tn)) + if (tn != null && tvObjectModel.SelectedRows.Contains(tn)) { TreeModelRow lvi = new TreeModelRow(new TreeModelRowColumn[] {