2018-02-28 17:55:16 +00:00
|
|
|
|
using MonoDevelop.Core;
|
2017-09-23 14:38:43 +00:00
|
|
|
|
using MonoDevelop.Ide.Desktop;
|
|
|
|
|
using MonoDevelop.Ide.Gui;
|
|
|
|
|
using MonoDevelop.Projects;
|
|
|
|
|
|
|
|
|
|
namespace MonoDevelop.GtkSharp.Addin
|
|
|
|
|
{
|
|
|
|
|
public class GladeDisplayBinding : IExternalDisplayBinding
|
|
|
|
|
{
|
|
|
|
|
public bool CanUseAsDefault => true;
|
|
|
|
|
|
|
|
|
|
public bool CanHandle(FilePath fileName, string mimeType, Project ownerProject)
|
|
|
|
|
{
|
|
|
|
|
return fileName.Extension == ".glade";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public DesktopApplication GetApplication(FilePath fileName, string mimeType, Project ownerProject)
|
|
|
|
|
{
|
|
|
|
|
return new GladeDesktopApplication(fileName.FullPath);
|
|
|
|
|
}
|
|
|
|
|
}
|
2018-02-28 17:55:16 +00:00
|
|
|
|
}
|