2018-02-28 17:55:16 +00:00
|
|
|
|
using System.Diagnostics;
|
2017-09-23 14:38:43 +00:00
|
|
|
|
using MonoDevelop.Ide.Desktop;
|
|
|
|
|
|
|
|
|
|
namespace MonoDevelop.GtkSharp.Addin
|
|
|
|
|
{
|
|
|
|
|
public class GladeDesktopApplication : DesktopApplication
|
|
|
|
|
{
|
|
|
|
|
private readonly string _filename;
|
|
|
|
|
|
|
|
|
|
public GladeDesktopApplication(string filename) : base("GladeApp", "Glade", true)
|
|
|
|
|
{
|
|
|
|
|
_filename = filename;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void Launch(params string[] files)
|
|
|
|
|
{
|
2018-02-28 17:55:16 +00:00
|
|
|
|
Process.Start("glade", _filename);
|
2017-09-23 14:38:43 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2018-02-28 17:55:16 +00:00
|
|
|
|
}
|