~ubuntu-branches/ubuntu/trusty/mono-addins/trusty-proposed

« back to all changes in this revision

Viewing changes to Mono.Addins.Setup/Mono.Addins.Setup/Package.cs

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2011-04-25 11:11:33 UTC
  • mfrom: (4.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20110425111133-t05u5p7o5fxx70fu
Tags: 0.6-2
Upload to Unstable

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
 
33
33
namespace Mono.Addins.Setup
34
34
{
 
35
        /// <summary>
 
36
        /// An add-in package
 
37
        /// </summary>
35
38
        public abstract class Package
36
39
        {
37
40
                internal Package ()
38
41
                {
39
42
                }
40
43
                
 
44
                /// <summary>
 
45
                /// Name of the package
 
46
                /// </summary>
41
47
                public abstract string Name { get; }
42
48
                
43
 
                // Returns true if the package will be installed in the shared directory,
44
 
                // false if it will be installed in the user directory.
 
49
                /// <summary>
 
50
                /// Returns true if the package will be installed in the shared directory, 
 
51
                /// false if it will be installed in the user directory.
 
52
                /// </summary>
45
53
                public virtual bool SharedInstall {
46
54
                        get { return false; }
47
55
                }
48
 
                
 
56
 
 
57
                /// <summary>
 
58
                /// Creates a package object for an add-in available in an on-line repository
 
59
                /// </summary>
 
60
                /// <param name="repAddin">
 
61
                /// An add-in reference
 
62
                /// </param>
 
63
                /// <returns>
 
64
                /// The package
 
65
                /// </returns>
49
66
                public static Package FromRepository (AddinRepositoryEntry repAddin)
50
67
                {
51
68
                        return AddinPackage.PackageFromRepository (repAddin);
52
69
                }
53
70
                
 
71
                /// <summary>
 
72
                /// Creates a package object for a local package file
 
73
                /// </summary>
 
74
                /// <param name="file">
 
75
                /// Package file path
 
76
                /// </param>
 
77
                /// <returns>
 
78
                /// The package
 
79
                /// </returns>
54
80
                public static Package FromFile (string file)
55
81
                {
56
82
                        return AddinPackage.PackageFromFile (file);