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

MakefileIntegrationFeature.cs « MonoDevelop.Autotools « addins « src « main - github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: df3511903fd4f463fbe2e67e8668e7dcdbf88653 (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

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

namespace MonoDevelop.Autotools
{
	class MakefileIntegrationFeature: ISolutionItemFeature
	{
		public string Title {
			get { return GettextCatalog.GetString ("Makefile Integration"); }
		}
		
		public string Description {
			get { return string.Empty; }
		}

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

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