~ubuntu-branches/ubuntu/natty/monodevelop/natty

« back to all changes in this revision

Viewing changes to src/addins/MonoDevelop.GtkCore/MonoDevelop.GtkCore/GtkCoreService.cs

  • Committer: Bazaar Package Importer
  • Author(s): Stefan Ebner
  • Date: 2008-03-29 23:36:33 UTC
  • mto: (1.5.1 sid)
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: james.westby@ubuntu.com-20080329233633-l550uuwvfh1e68at
Tags: upstream-1.0+dfsg
ImportĀ upstreamĀ versionĀ 1.0+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
using MonoDevelop.Core;
39
39
using MonoDevelop.Core.Gui;
40
40
using MonoDevelop.Projects;
 
41
using MonoDevelop.Projects.CodeGeneration;
41
42
using MonoDevelop.Projects.Serialization;
42
43
using MonoDevelop.Projects.Parser;
43
44
using MonoDevelop.Ide.Gui;
72
73
                        }
73
74
                }
74
75
                
 
76
                public static bool SupportsGtkDesigner (Project project)
 
77
                {
 
78
                        DotNetProject dp = project as DotNetProject;
 
79
                        if (dp == null || dp.LanguageBinding == null || dp.LanguageBinding.GetCodeDomProvider () == null)
 
80
                                return false;
 
81
                        
 
82
                        RefactorOperations ops = RefactorOperations.AddField | RefactorOperations.AddMethod | RefactorOperations.RenameField;
 
83
                        return IdeApp.ProjectOperations.CodeRefactorer.LanguageSupportsOperation (dp.LanguageBinding.Language, ops); 
 
84
                }
 
85
                
75
86
                static void FindSupportedGtkVersions ()
76
87
                {
77
88
                        if (supportedGtkVersions == null) {