~ubuntu-branches/ubuntu/oneiric/monodevelop/oneiric-updates

« back to all changes in this revision

Viewing changes to src/addins/MonoDevelop.DesignerSupport/MonoDevelop.DesignerSupport.Projects/ProjectReferenceDescriptor.cs

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2009-02-18 08:40:51 UTC
  • mfrom: (1.2.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090218084051-gh8m6ukvokbwj7cf
Tags: 1.9.2+dfsg-1ubuntu1
* Merge from Debian Experimental (LP: #330519), remaining Ubuntu changes:
  + debian/control:
    - Update for Gnome# 2.24
    - Add libmono-cairo1.0-cil to build-deps to fool pkg-config check

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
using MonoDevelop.Projects;
32
32
using MonoDevelop.Core;
33
33
using System.Reflection;
 
34
using MonoDevelop.Ide.Gui;
34
35
 
35
36
namespace MonoDevelop.DesignerSupport.Projects
36
37
{
109
110
                [Description ("Path to the assembly.")]
110
111
                public string Path {
111
112
                        get {
112
 
                                string[] files = pref.GetReferencedFileNames ();
 
113
                                string[] files = pref.GetReferencedFileNames (IdeApp.Workspace.ActiveConfiguration);
113
114
                                if (files.Length > 0)
114
115
                                        return files [0];
115
116
                                else
124
125
                        get { return pref.LocalCopy; }
125
126
                        set { pref.LocalCopy = value; }
126
127
                }
 
128
                
 
129
                [Category ("Build")]
 
130
                [DisplayName ("Specific Version")]
 
131
                [Description ("Require a specific version of the assembly. A warning will be issued if the specific version is not found in the system.")]
 
132
                public bool SpecificVersion {
 
133
                        get { return pref.SpecificVersion; }
 
134
                        set { pref.SpecificVersion = value; }
 
135
                }
 
136
                
 
137
                protected override bool IsReadOnly (string propertyName)
 
138
                {
 
139
                        if (propertyName == "SpecificVersion" && (pref.ReferenceType == ReferenceType.Project || pref.ReferenceType == ReferenceType.Custom))
 
140
                                return true;
 
141
                        return false;
 
142
                }
127
143
        }
128
144
}