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

« back to all changes in this revision

Viewing changes to src/addins/Deployment/MonoDevelop.Deployment/MonoDevelop.Deployment.Gui/PackagingFeature.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:
17
17
                        get { return GettextCatalog.GetString ("Add a Packaging Project to the solution for generating different kinds of packages for the new project."); }
18
18
                }
19
19
 
20
 
                public bool SupportsSolutionItem (SolutionFolder parentCombine, SolutionItem entry)
 
20
                public FeatureSupportLevel GetSupportLevel (SolutionFolder parentCombine, SolutionItem entry)
21
21
                {
22
 
                        return ((entry is Project) || (entry is PackagingProject)) && parentCombine != null;
 
22
                        if (parentCombine == null)
 
23
                                return FeatureSupportLevel.NotSupported;
 
24
                        
 
25
                        if (entry is PackagingProject)
 
26
                                return FeatureSupportLevel.Enabled;
 
27
                        else if (entry is Project)
 
28
                                return FeatureSupportLevel.SupportedByDefault;
 
29
                        else
 
30
                                return FeatureSupportLevel.NotSupported;
23
31
                }
24
32
                
25
33
                public Widget CreateFeatureEditor (SolutionFolder parentCombine, SolutionItem entry)
36
44
                {
37
45
                        return null;
38
46
                }
39
 
                
40
 
                public bool IsEnabled (SolutionFolder parentCombine, SolutionItem entry) 
41
 
                {
42
 
                        return entry is PackagingProject;
43
 
                }
44
47
        }
45
48
}