FINALLY got around to fixing document template loader
This commit is contained in:
parent
70dd7a163d
commit
daca9b763a
@ -1,18 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<UniversalEditor Version="2.0">
|
||||
<Templates>
|
||||
<Template ID="{86F141C1-A729-4092-A883-CDBEF377FF47}">
|
||||
<DocumentTemplates>
|
||||
<DocumentTemplate ID="{86F141C1-A729-4092-A883-CDBEF377FF47}">
|
||||
<Information>
|
||||
<Title>Assets</Title>
|
||||
<Description>Keep track of assets, including asset details and owners.</Description>
|
||||
<IconPath FileName="database.ico" />
|
||||
<CategoryParts>
|
||||
<CategoryPart>Business</CategoryPart>
|
||||
</CategoryParts>
|
||||
<Path>
|
||||
<Part>General</Part>
|
||||
<Part>Database</Part>
|
||||
<Part>Business</Part>
|
||||
</Path>
|
||||
</Information>
|
||||
<Content ObjectModelType="UniversalEditor.ObjectModels.DatabaseManagement.DatabaseObjectModel">
|
||||
<Content ObjectModelType="UniversalEditor.ObjectModels.Database.DatabaseObjectModel">
|
||||
|
||||
</Content>
|
||||
</Template>
|
||||
</Templates>
|
||||
</DocumentTemplate>
|
||||
</DocumentTemplates>
|
||||
</UniversalEditor>
|
||||
@ -1,18 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<UniversalEditor Version="2.0">
|
||||
<Templates>
|
||||
<Template ID="{C507C886-6D3B-4B58-9C42-94A35152E4A6}">
|
||||
<DocumentTemplates>
|
||||
<DocumentTemplate ID="{C507C886-6D3B-4B58-9C42-94A35152E4A6}">
|
||||
<Information>
|
||||
<Title>Contacts</Title>
|
||||
<Description>Manage information about people that your team works with, such as customers and partners.</Description>
|
||||
<IconPath FileName="database.ico" />
|
||||
<CategoryParts>
|
||||
<CategoryPart>Business</CategoryPart>
|
||||
</CategoryParts>
|
||||
<Path>
|
||||
<Part>General</Part>
|
||||
<Part>Database</Part>
|
||||
<Part>Business</Part>
|
||||
</Path>
|
||||
</Information>
|
||||
<Content ObjectModelType="UniversalEditor.ObjectModels.DatabaseManagement.DatabaseObjectModel">
|
||||
<Content ObjectModelType="UniversalEditor.ObjectModels.Database.DatabaseObjectModel">
|
||||
|
||||
</Content>
|
||||
</Template>
|
||||
</Templates>
|
||||
</DocumentTemplate>
|
||||
</DocumentTemplates>
|
||||
</UniversalEditor>
|
||||
@ -1,18 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<UniversalEditor Version="2.0">
|
||||
<Templates>
|
||||
<Template ID="{74EBA601-237F-428D-B02D-141805348209}">
|
||||
<DocumentTemplates>
|
||||
<DocumentTemplate ID="{74EBA601-237F-428D-B02D-141805348209}">
|
||||
<Information>
|
||||
<Title>Events</Title>
|
||||
<Description>Track upcoming meetings, deadlines, and other important events.</Description>
|
||||
<IconPath FileName="database.ico" />
|
||||
<CategoryParts>
|
||||
<CategoryPart>Business</CategoryPart>
|
||||
</CategoryParts>
|
||||
<Path>
|
||||
<Part>General</Part>
|
||||
<Part>Database</Part>
|
||||
<Part>Business</Part>
|
||||
</Path>
|
||||
</Information>
|
||||
<Content ObjectModelType="UniversalEditor.ObjectModels.DatabaseManagement.DatabaseObjectModel">
|
||||
<Content ObjectModelType="UniversalEditor.ObjectModels.Database.DatabaseObjectModel">
|
||||
|
||||
</Content>
|
||||
</Template>
|
||||
</Templates>
|
||||
</DocumentTemplate>
|
||||
</DocumentTemplates>
|
||||
</UniversalEditor>
|
||||
@ -1,18 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<UniversalEditor Version="2.0">
|
||||
<Templates>
|
||||
<Template ID="{DCEB4CE5-2832-42A9-BA61-8682926ED629}">
|
||||
<DocumentTemplates>
|
||||
<DocumentTemplate ID="{DCEB4CE5-2832-42A9-BA61-8682926ED629}">
|
||||
<Information>
|
||||
<Title>Faculty</Title>
|
||||
<Description>Keep track of information about faculty members, including emergency contacts and information about their education history.</Description>
|
||||
<IconPath FileName="database.ico" />
|
||||
<CategoryParts>
|
||||
<CategoryPart>Education</CategoryPart>
|
||||
</CategoryParts>
|
||||
<Path>
|
||||
<Part>General</Part>
|
||||
<Part>Database</Part>
|
||||
<Part>Education</Part>
|
||||
</Path>
|
||||
</Information>
|
||||
<Content ObjectModelType="UniversalEditor.ObjectModels.DatabaseManagement.DatabaseObjectModel">
|
||||
<Content ObjectModelType="UniversalEditor.ObjectModels.Database.DatabaseObjectModel">
|
||||
|
||||
</Content>
|
||||
</Template>
|
||||
</Templates>
|
||||
</DocumentTemplate>
|
||||
</DocumentTemplates>
|
||||
</UniversalEditor>
|
||||
@ -1,18 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<UniversalEditor Version="2.0">
|
||||
<Templates>
|
||||
<Template ID="{4A16562A-8D1A-46B7-A0BF-AFBF759EB439}">
|
||||
<DocumentTemplates>
|
||||
<DocumentTemplate ID="{4A16562A-8D1A-46B7-A0BF-AFBF759EB439}">
|
||||
<Information>
|
||||
<Title>Issues</Title>
|
||||
<Description>Manage a set of issues or problems. Assign, prioritize, and follow the progress of issues from start to finish.</Description>
|
||||
<IconPath FileName="database.ico" />
|
||||
<CategoryParts>
|
||||
<CategoryPart>Business</CategoryPart>
|
||||
</CategoryParts>
|
||||
<Path>
|
||||
<Part>General</Part>
|
||||
<Part>Database</Part>
|
||||
<Part>Business</Part>
|
||||
</Path>
|
||||
</Information>
|
||||
<Content ObjectModelType="UniversalEditor.ObjectModels.DatabaseManagement.DatabaseObjectModel">
|
||||
<Content ObjectModelType="UniversalEditor.ObjectModels.Database.DatabaseObjectModel">
|
||||
|
||||
</Content>
|
||||
</Template>
|
||||
</Templates>
|
||||
</DocumentTemplate>
|
||||
</DocumentTemplates>
|
||||
</UniversalEditor>
|
||||
@ -1,18 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<UniversalEditor Version="2.0">
|
||||
<Templates>
|
||||
<Template ID="{7ABE2F3D-B169-47D2-95F1-92571A8AEB32}">
|
||||
<DocumentTemplates>
|
||||
<DocumentTemplate ID="{7ABE2F3D-B169-47D2-95F1-92571A8AEB32}">
|
||||
<Information>
|
||||
<Title>Marketing Projects</Title>
|
||||
<Description>Track time-sensitive deliverables and vendor status for projects.</Description>
|
||||
<IconPath FileName="database.ico" />
|
||||
<CategoryParts>
|
||||
<CategoryPart>Business</CategoryPart>
|
||||
</CategoryParts>
|
||||
<Path>
|
||||
<Part>General</Part>
|
||||
<Part>Database</Part>
|
||||
<Part>Business</Part>
|
||||
</Path>
|
||||
</Information>
|
||||
<Content ObjectModelType="UniversalEditor.ObjectModels.DatabaseManagement.DatabaseObjectModel">
|
||||
<Content ObjectModelType="UniversalEditor.ObjectModels.Database.DatabaseObjectModel">
|
||||
|
||||
</Content>
|
||||
</Template>
|
||||
</Templates>
|
||||
</DocumentTemplate>
|
||||
</DocumentTemplates>
|
||||
</UniversalEditor>
|
||||
@ -1,18 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<UniversalEditor Version="2.0">
|
||||
<Templates>
|
||||
<Template ID="{8A945438-2E6E-4647-8108-CC5960417DF0}">
|
||||
<DocumentTemplates>
|
||||
<DocumentTemplate ID="{8A945438-2E6E-4647-8108-CC5960417DF0}">
|
||||
<Information>
|
||||
<Title>Northwind 2007</Title>
|
||||
<Description>Northwind Sample</Description>
|
||||
<IconPath FileName="database.ico" />
|
||||
<CategoryParts>
|
||||
<CategoryPart>Samples</CategoryPart>
|
||||
</CategoryParts>
|
||||
<Path>
|
||||
<Part>General</Part>
|
||||
<Part>Database</Part>
|
||||
<Part>Samples</Part>
|
||||
</Path>
|
||||
</Information>
|
||||
<Content ObjectModelType="UniversalEditor.ObjectModels.DatabaseManagement.DatabaseObjectModel">
|
||||
<Content ObjectModelType="UniversalEditor.ObjectModels.Database.DatabaseObjectModel">
|
||||
|
||||
</Content>
|
||||
</Template>
|
||||
</Templates>
|
||||
</DocumentTemplate>
|
||||
</DocumentTemplates>
|
||||
</UniversalEditor>
|
||||
@ -1,18 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<UniversalEditor Version="2.0">
|
||||
<Templates>
|
||||
<Template ID="{58874798-2E63-4C2B-8C93-C31FCFA29AD7}">
|
||||
<DocumentTemplates>
|
||||
<DocumentTemplate ID="{58874798-2E63-4C2B-8C93-C31FCFA29AD7}">
|
||||
<Information>
|
||||
<Title>Projects</Title>
|
||||
<Description>Track multiple projects and assign tasks to different people.</Description>
|
||||
<IconPath FileName="database.ico" />
|
||||
<CategoryParts>
|
||||
<CategoryPart>Business</CategoryPart>
|
||||
</CategoryParts>
|
||||
<Path>
|
||||
<Part>General</Part>
|
||||
<Part>Database</Part>
|
||||
<Part>Business</Part>
|
||||
</Path>
|
||||
</Information>
|
||||
<Content ObjectModelType="UniversalEditor.ObjectModels.DatabaseManagement.DatabaseObjectModel">
|
||||
<Content ObjectModelType="UniversalEditor.ObjectModels.Database.DatabaseObjectModel">
|
||||
|
||||
</Content>
|
||||
</Template>
|
||||
</Templates>
|
||||
</DocumentTemplate>
|
||||
</DocumentTemplates>
|
||||
</UniversalEditor>
|
||||
@ -1,18 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<UniversalEditor Version="2.0">
|
||||
<Templates>
|
||||
<Template ID="{A7B4581E-94F1-4FF0-935E-5B5BB80E3F38}">
|
||||
<DocumentTemplates>
|
||||
<DocumentTemplate ID="{A7B4581E-94F1-4FF0-935E-5B5BB80E3F38}">
|
||||
<Information>
|
||||
<Title>Sales Pipeline</Title>
|
||||
<Description>Track the progress of prospective sales within a small group of sales professionals.</Description>
|
||||
<IconPath FileName="database.ico" />
|
||||
<CategoryParts>
|
||||
<CategoryPart>Business</CategoryPart>
|
||||
</CategoryParts>
|
||||
<Path>
|
||||
<Part>General</Part>
|
||||
<Part>Database</Part>
|
||||
<Part>Business</Part>
|
||||
</Path>
|
||||
</Information>
|
||||
<Content ObjectModelType="UniversalEditor.ObjectModels.DatabaseManagement.DatabaseObjectModel">
|
||||
<Content ObjectModelType="UniversalEditor.ObjectModels.Database.DatabaseObjectModel">
|
||||
|
||||
</Content>
|
||||
</Template>
|
||||
</Templates>
|
||||
</DocumentTemplate>
|
||||
</DocumentTemplates>
|
||||
</UniversalEditor>
|
||||
@ -1,18 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<UniversalEditor Version="2.0">
|
||||
<Templates>
|
||||
<Template ID="{5A9DF75F-123E-4AF9-96BE-1FC9CF1E0CB9}">
|
||||
<DocumentTemplates>
|
||||
<DocumentTemplate ID="{5A9DF75F-123E-4AF9-96BE-1FC9CF1E0CB9}">
|
||||
<Information>
|
||||
<Title>Students</Title>
|
||||
<Description>Keep track of information about your students, including emergency contacts, medical information, and information about their guardians.</Description>
|
||||
<IconPath FileName="database.ico" />
|
||||
<CategoryParts>
|
||||
<CategoryPart>Education</CategoryPart>
|
||||
</CategoryParts>
|
||||
<Path>
|
||||
<Part>General</Part>
|
||||
<Part>Database</Part>
|
||||
<Part>Education</Part>
|
||||
</Path>
|
||||
</Information>
|
||||
<Content ObjectModelType="UniversalEditor.ObjectModels.DatabaseManagement.DatabaseObjectModel">
|
||||
<Content ObjectModelType="UniversalEditor.ObjectModels.Database.DatabaseObjectModel">
|
||||
|
||||
</Content>
|
||||
</Template>
|
||||
</Templates>
|
||||
</DocumentTemplate>
|
||||
</DocumentTemplates>
|
||||
</UniversalEditor>
|
||||
@ -1,18 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<UniversalEditor Version="2.0">
|
||||
<Templates>
|
||||
<Template ID="{C70DFF06-DF83-45EB-9891-CEF6BF253C2F}">
|
||||
<DocumentTemplates>
|
||||
<DocumentTemplate ID="{C70DFF06-DF83-45EB-9891-CEF6BF253C2F}">
|
||||
<Information>
|
||||
<Title>Tasks</Title>
|
||||
<Description>Track a group of work items that you or your team need to complete.</Description>
|
||||
<IconPath FileName="database.ico" />
|
||||
<CategoryParts>
|
||||
<CategoryPart>Business</CategoryPart>
|
||||
</CategoryParts>
|
||||
<Path>
|
||||
<Part>General</Part>
|
||||
<Part>Database</Part>
|
||||
<Part>Business</Part>
|
||||
</Path>
|
||||
</Information>
|
||||
<Content ObjectModelType="UniversalEditor.ObjectModels.DatabaseManagement.DatabaseObjectModel">
|
||||
<Content ObjectModelType="UniversalEditor.ObjectModels.Database.DatabaseObjectModel">
|
||||
|
||||
</Content>
|
||||
</Template>
|
||||
</Templates>
|
||||
</DocumentTemplate>
|
||||
</DocumentTemplates>
|
||||
</UniversalEditor>
|
||||
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<UniversalEditor Version="2.0">
|
||||
<Templates>
|
||||
<Template ID="{F63140FB-C539-45b0-8045-506397ADE75B}">
|
||||
<DocumentTemplates>
|
||||
<DocumentTemplate ID="{F63140FB-C539-45b0-8045-506397ADE75B}">
|
||||
<Information>
|
||||
<Title>Windows filesystem</Title>
|
||||
<Description>Creates a standard Windows NT file structure.</Description>
|
||||
@ -58,6 +58,6 @@
|
||||
</Folder>
|
||||
</Folders>
|
||||
</Content>
|
||||
</Template>
|
||||
</Templates>
|
||||
</DocumentTemplate>
|
||||
</DocumentTemplates>
|
||||
</UniversalEditor>
|
||||
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<UniversalEditor Version="2.0">
|
||||
<Templates>
|
||||
<Template ID="{25CCF4D0-9DBD-40D2-936D-4F0BEA4FCC7D}">
|
||||
<DocumentTemplates>
|
||||
<DocumentTemplate ID="{25CCF4D0-9DBD-40D2-936D-4F0BEA4FCC7D}">
|
||||
<Information>
|
||||
<Title>Asset Tracking</Title>
|
||||
<IconPath LargeFileName="icon_32x32.png" SmallFileName="icon_16x16.png" />
|
||||
@ -57,6 +57,6 @@
|
||||
</Folder>
|
||||
</Folders>
|
||||
</Content>
|
||||
</Template>
|
||||
</Templates>
|
||||
</DocumentTemplate>
|
||||
</DocumentTemplates>
|
||||
</UniversalEditor>
|
||||
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<UniversalEditor Version="2.0">
|
||||
<Templates>
|
||||
<Template ID="{DD66CB5B-9B3F-47CB-B71C-9BB70E7BA5AA}">
|
||||
<DocumentTemplates>
|
||||
<DocumentTemplate ID="{DD66CB5B-9B3F-47CB-B71C-9BB70E7BA5AA}">
|
||||
<Information>
|
||||
<Title>Expense Report</Title>
|
||||
<IconPath LargeFileName="icon_32x32.png" SmallFileName="icon_16x16.png" />
|
||||
@ -57,6 +57,6 @@
|
||||
</Folder>
|
||||
</Folders>
|
||||
</Content>
|
||||
</Template>
|
||||
</Templates>
|
||||
</DocumentTemplate>
|
||||
</DocumentTemplates>
|
||||
</UniversalEditor>
|
||||
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<UniversalEditor Version="2.0">
|
||||
<Templates>
|
||||
<Template ID="{B8F7B746-8F5D-48E3-8977-89EE39362A6A}">
|
||||
<DocumentTemplates>
|
||||
<DocumentTemplate ID="{B8F7B746-8F5D-48E3-8977-89EE39362A6A}">
|
||||
<Information>
|
||||
<Title>Meeting Agenda</Title>
|
||||
<IconPath LargeFileName="icon_32x32.png" SmallFileName="icon_16x16.png" />
|
||||
@ -57,6 +57,6 @@
|
||||
</Folder>
|
||||
</Folders>
|
||||
</Content>
|
||||
</Template>
|
||||
</Templates>
|
||||
</DocumentTemplate>
|
||||
</DocumentTemplates>
|
||||
</UniversalEditor>
|
||||
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<UniversalEditor Version="2.0">
|
||||
<Templates>
|
||||
<Template ID="{170F4DB0-57BA-4B89-BD13-4B05473455A1}">
|
||||
<DocumentTemplates>
|
||||
<DocumentTemplate ID="{170F4DB0-57BA-4B89-BD13-4B05473455A1}">
|
||||
<Information>
|
||||
<Title>Status Report</Title>
|
||||
<IconPath LargeFileName="icon_32x32.png" SmallFileName="icon_16x16.png" />
|
||||
@ -57,6 +57,6 @@
|
||||
</Folder>
|
||||
</Folders>
|
||||
</Content>
|
||||
</Template>
|
||||
</Templates>
|
||||
</DocumentTemplate>
|
||||
</DocumentTemplates>
|
||||
</UniversalEditor>
|
||||
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<UniversalEditor Version="2.0">
|
||||
<Templates>
|
||||
<Template ID="{3C01AD64-A0C1-4A4E-9952-2E1002DDB206}">
|
||||
<DocumentTemplates>
|
||||
<DocumentTemplate ID="{3C01AD64-A0C1-4A4E-9952-2E1002DDB206}">
|
||||
<Information>
|
||||
<Title>Travel Request</Title>
|
||||
<IconPath LargeFileName="icon_32x32.png" SmallFileName="icon_16x16.png" />
|
||||
@ -9,6 +9,6 @@
|
||||
<Content ObjectModelType="UniversalEditor.ObjectModels.RIFF.RIFFObjectModel">
|
||||
|
||||
</Content>
|
||||
</Template>
|
||||
</Templates>
|
||||
</DocumentTemplate>
|
||||
</DocumentTemplates>
|
||||
</UniversalEditor>
|
||||
@ -220,7 +220,7 @@ namespace UniversalEditor
|
||||
{
|
||||
if (mvarType == null && mvarTypeName != null)
|
||||
{
|
||||
mvarType = Type.GetType(mvarTypeName);
|
||||
mvarType = MBS.Framework.Reflection.FindType(mvarTypeName);
|
||||
}
|
||||
if (mvarType != null)
|
||||
{
|
||||
|
||||
@ -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<string> pathParts = new List<string>();
|
||||
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)
|
||||
{
|
||||
|
||||
@ -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[]
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user