This repository has been archived by the owner on Oct 16, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
34 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
77 changes: 0 additions & 77 deletions
77
src/AddIns/BackendBindings/AspNet.Mvc/Project/Src/ViewInBrowser.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) | ||
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt) | ||
|
||
using System; | ||
using System.Diagnostics; | ||
using System.IO; | ||
using System.Linq; | ||
|
||
using ICSharpCode.Core; | ||
using ICSharpCode.SharpDevelop.Gui.OptionPanels; | ||
using ICSharpCode.SharpDevelop.Project; | ||
using ICSharpCode.SharpDevelop.Project.Commands; | ||
|
||
namespace ICSharpCode.SharpDevelop.Project.Commands | ||
{ | ||
public class ViewInBrowser : AbstractMenuCommand | ||
{ | ||
public override void Run() | ||
{ | ||
var node = ProjectBrowserPad.Instance.SelectedNode as FileNode; | ||
if (node == null) { | ||
return; | ||
} | ||
|
||
try { | ||
Process.Start(node.FileName); | ||
} catch (Exception ex) { | ||
MessageService.ShowMessage(ex.Message); | ||
} | ||
} | ||
} | ||
} |