~ubuntu-branches/ubuntu/lucid/monodevelop/lucid

« back to all changes in this revision

Viewing changes to src/core/MonoDevelop.Core.Gui/MonoDevelop.Core.Gui/DesktopApplication.cs

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2010-01-10 14:25:59 UTC
  • mfrom: (1.2.5 upstream) (1.3.6 sid)
  • Revision ID: james.westby@ubuntu.com-20100110142559-sorji5exvk9tyknr
Tags: 2.2+dfsg-2
* debian/rules/remove_support_for_non_debian_functionality.patch:
  + Also fix monodevelop-core-addins.pc to remove links to the
    addins we remove in Debian

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
                
59
59
                public void Launch (params string[] files)
60
60
                {
 
61
                        if (!IsValid)
 
62
                                throw new InvalidOperationException ("DesktopApplication is invalid");
 
63
                        
61
64
                        // TODO: implement all other cases
62
65
                        if (command.IndexOf ("%f") != -1) {
63
66
                                foreach (string s in files) {
78
81
                                }
79
82
                        }
80
83
                }
 
84
                
 
85
                public bool IsValid {
 
86
                        get {
 
87
                                return !string.IsNullOrEmpty (command) && !string.IsNullOrEmpty (displayName); 
 
88
                        }
 
89
                }
81
90
        }
82
91
}