blob: 8c08e1dc0f55aa37f9a7fc3873033d28c2070889 (
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, SolutionItem entry)
{
if (entry is Project)
return FeatureSupportLevel.SupportedByDefault;
else
return FeatureSupportLevel.NotSupported;
}
public Widget CreateFeatureEditor (SolutionFolder parentCombine, SolutionItem entry)
{
return new MakefileIntegrationFeatureWidget ((Project)entry);
}
public void ApplyFeature (SolutionFolder parentCombine, SolutionItem entry, Widget editor)
{
((MakefileIntegrationFeatureWidget)editor).Store ();
}
public string Validate (SolutionFolder parentCombine, SolutionItem entry, Gtk.Widget editor)
{
return null;
}
}
}
|