~ubuntu-branches/ubuntu/saucy/monodevelop/saucy-proposed

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2010-09-10 16:54:48 UTC
  • mfrom: (19.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20100910165448-0rybfk25zd4o9431
Tags: 2.4+dfsg-2
* debian/patches/inject_Mono.Debugger.Soft_source.patch,
  debian/patches/use_system_Mono.Debugger.Soft.patch,
  debian/control:
  + Build against system Soft Debugger, since we now have a new
    enough Mono to match MonoDevelop's required API

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
 
31
31
using MonoDevelop.Projects;
32
32
using MonoDevelop.Core;
33
 
using System.Reflection;
34
 
using System.IO;
 
33
using MonoDevelop.Ide;
35
34
 
36
35
namespace MonoDevelop.DesignerSupport
37
36
{
63
62
                [LocalizedDescription ("Type of the file.")]
64
63
                public string FileType {
65
64
                        get {
66
 
                                string type = MonoDevelop.Core.Gui.DesktopService.GetMimeTypeForUri (file.Name);
67
 
                                return MonoDevelop.Core.Gui.DesktopService.GetMimeTypeDescription (type); 
 
65
                                string type = DesktopService.GetMimeTypeForUri (file.Name);
 
66
                                return DesktopService.GetMimeTypeDescription (type); 
68
67
                        }
69
68
                }
70
69
                
93
92
                        set { file.CopyToOutputDirectory = value; }
94
93
                }
95
94
                
 
95
                [LocalizedCategory ("Build")]
 
96
                [LocalizedDisplayName ("Custom Tool")]
 
97
                [LocalizedDescription ("The ID of a custom code generator.")]
 
98
                public string Generator {
 
99
                        get { return file.Generator; }
 
100
                        set { file.Generator = value; }
 
101
                }
 
102
                
 
103
                [LocalizedCategory ("Build")]
 
104
                [LocalizedDisplayName ("Custom Tool Namespace")]
 
105
                [LocalizedDescription ("Overrides the namespace in which the custom code generator should generate code.")]
 
106
                public string CustomToolNamespace {
 
107
                        get { return file.CustomToolNamespace; }
 
108
                        set { file.CustomToolNamespace = value; }
 
109
                }
 
110
                
96
111
                protected override bool IsReadOnly (string propertyName)
97
112
                {
98
113
                        if (propertyName == "ResourceId" && file.BuildAction != MonoDevelop.Projects.BuildAction.EmbeddedResource)