diff --git a/CSharp/Libraries/UniversalEditor.Core/Association.cs b/CSharp/Libraries/UniversalEditor.Core/Association.cs new file mode 100644 index 00000000..d0d3e040 --- /dev/null +++ b/CSharp/Libraries/UniversalEditor.Core/Association.cs @@ -0,0 +1,49 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace UniversalEditor +{ + /// + /// Associates s, s, and other related Universal Editor objects. + /// + public class Association + { + public class AssociationCollection + : System.Collections.ObjectModel.Collection + { + + } + + private string mvarTitle = String.Empty; + /// + /// The title of this ; for example, "JPEG images". + /// + public string Title { get { return mvarTitle; } set { mvarTitle = value; } } + + private DataFormatFilter.DataFormatFilterCollection mvarFilters = new DataFormatFilter.DataFormatFilterCollection(); + /// + /// The filters that are used to determine which documents can be handled by this . + /// + public DataFormatFilter.DataFormatFilterCollection Filters { get { return mvarFilters; } } + + private string mvarExternalCommandLine = String.Empty; + /// + /// The command line of an external application to launch when a file handled by this association is opened. + /// + public string ExternalCommandLine { get { return mvarExternalCommandLine; } set { mvarExternalCommandLine = value; } } + + private ObjectModelReference.ObjectModelReferenceCollection mvarObjectModels = new ObjectModelReference.ObjectModelReferenceCollection(); + /// + /// The s which refer to s that are included in this . + /// + public ObjectModelReference.ObjectModelReferenceCollection ObjectModels { get { return mvarObjectModels; } } + + private DataFormatReference.DataFormatReferenceCollection mvarDataFormats = new DataFormatReference.DataFormatReferenceCollection(); + /// + /// The s which refer to s that are included in this . + /// + public DataFormatReference.DataFormatReferenceCollection DataFormats { get { return mvarDataFormats; } } + } +} diff --git a/CSharp/Libraries/UniversalEditor.Core/UniversalEditor.Core.csproj b/CSharp/Libraries/UniversalEditor.Core/UniversalEditor.Core.csproj index 933d892d..94f4e009 100644 --- a/CSharp/Libraries/UniversalEditor.Core/UniversalEditor.Core.csproj +++ b/CSharp/Libraries/UniversalEditor.Core/UniversalEditor.Core.csproj @@ -46,6 +46,7 @@ + diff --git a/CSharp/Plugins/UniversalEditor.Essential/ObjectModels/UEPackage/UEPackageObjectModel.cs b/CSharp/Plugins/UniversalEditor.Essential/ObjectModels/UEPackage/UEPackageObjectModel.cs index 16c4e05b..f252d419 100644 --- a/CSharp/Plugins/UniversalEditor.Essential/ObjectModels/UEPackage/UEPackageObjectModel.cs +++ b/CSharp/Plugins/UniversalEditor.Essential/ObjectModels/UEPackage/UEPackageObjectModel.cs @@ -19,6 +19,12 @@ namespace UniversalEditor.ObjectModels.UEPackage return _omr; } + private Association.AssociationCollection mvarAssociations = new Association.AssociationCollection(); + /// + /// The s provided by this package. + /// + public Association.AssociationCollection Associations { get { return mvarAssociations; } } + private ObjectModelReference.ObjectModelReferenceCollection mvarObjectModels = new ObjectModelReference.ObjectModelReferenceCollection(); /// /// The s provided by this package.