Welcome to mirror list, hosted at ThFree Co, Russian Federation.

PackagingFeature.cs « MonoDevelop.Deployment.Gui « MonoDevelop.Deployment « Deployment « addins « src « main - github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 823c8bf6029f69c18391510a31446363918cf7fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48

using System;
using MonoDevelop.Ide.Templates;
using MonoDevelop.Projects;
using MonoDevelop.Core;
using Gtk;

namespace MonoDevelop.Deployment.Gui
{
	internal class PackagingFeature: ISolutionItemFeature
	{
		public string Title {
			get { return GettextCatalog.GetString ("Packaging"); }
		}
		
		public string Description {
			get { return GettextCatalog.GetString ("Add a Packaging Project to the solution for generating different kinds of packages for the new project."); }
		}

		public FeatureSupportLevel GetSupportLevel (SolutionFolder parentCombine, SolutionFolderItem entry)
		{
			if (parentCombine == null)
				return FeatureSupportLevel.NotSupported;
			
			if (entry is PackagingProject)
				return FeatureSupportLevel.Enabled;
			else if (entry is Project)
				return FeatureSupportLevel.SupportedByDefault;
			else
				return FeatureSupportLevel.NotSupported;
		}
		
		public Widget CreateFeatureEditor (SolutionFolder parentCombine, SolutionFolderItem entry)
		{
			return new PackagingFeatureWidget (parentCombine, entry);
		}

		public void ApplyFeature (SolutionFolder parentCombine, SolutionFolderItem entry, Widget editor)
		{
			((PackagingFeatureWidget)editor).ApplyFeature ();
		}
		
		public string Validate (SolutionFolder parentCombine, SolutionFolderItem entry, Gtk.Widget editor)
		{
			return null;
		}
	}
}