~ubuntu-branches/ubuntu/oneiric/monodevelop/oneiric

« back to all changes in this revision

Viewing changes to src/core/MonoDevelop.Ide/MonoDevelop.Ide.Desktop/PlatformService.cs

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2011-06-27 17:03:13 UTC
  • mto: (1.8.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 54.
  • Revision ID: james.westby@ubuntu.com-20110627170313-6cvz3s19x6e9hqe9
ImportĀ upstreamĀ versionĀ 2.5.92+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
        {
47
47
                Hashtable iconHash = new Hashtable ();
48
48
                
49
 
                public abstract DesktopApplication GetDefaultApplication (string mimetype);
50
 
                public abstract DesktopApplication [] GetAllApplications (string mimetype);
51
49
                public abstract string DefaultMonospaceFont { get; }
52
50
                public abstract string Name { get; }
53
51
 
61
59
                        }
62
60
                }
63
61
                
 
62
                public virtual void OpenFile (string filename)
 
63
                {
 
64
                        Process.Start ("file://" + filename);
 
65
                }
 
66
                
 
67
                public virtual void OpenFolder (FilePath folderPath)
 
68
                {
 
69
                        Process.Start ("file://" + folderPath);
 
70
                }
 
71
                
64
72
                public virtual void ShowUrl (string url)
65
73
                {
66
74
                        Process.Start (url);
337
345
                {
338
346
                        return new string[0];
339
347
                }
 
348
                
 
349
                public virtual IEnumerable<DesktopApplication> GetApplications (string filename)
 
350
                {
 
351
                        return new DesktopApplication[0];
 
352
                }
340
353
        }
341
354
}