This repository has been archived by the owner on Jul 31, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- allow search on internal browser of Visual studio
- improved layout of settings
- Loading branch information
kanekotic
committed
Jul 20, 2015
1 parent
c80113c
commit f1b6e9b
Showing
10 changed files
with
136 additions
and
25 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
3 changes: 3 additions & 0 deletions
3
soft.Hati.ErrorListSearchOn/soft.Hati.ErrorListSearchOn/ReleaseNotes.txt
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
59 changes: 51 additions & 8 deletions
59
...orListSearchOn/soft.Hati.ErrorListSearchOn/Services/Options/OptionUserControl.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
41 changes: 41 additions & 0 deletions
41
soft.Hati.ErrorListSearchOn/soft.Hati.ErrorListSearchOn/Services/Search/Browser.cs
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,41 @@ | ||
using System.Diagnostics; | ||
using Microsoft.VisualStudio.Shell; | ||
using Microsoft.VisualStudio.Shell.Interop; | ||
|
||
namespace soft.Hati.ErrorListSearchOn.Services.Search | ||
{ | ||
public interface Browser | ||
{ | ||
void Run(string query); | ||
|
||
} | ||
|
||
public class InternalBrowser : Browser | ||
{ | ||
public void Run(string query) | ||
{ | ||
IVsWindowFrame ppFrame; | ||
var service = Package.GetGlobalService(typeof(IVsWebBrowsingService)) as IVsWebBrowsingService; | ||
service.Navigate(query, (uint)__VSWBNAVIGATEFLAGS.VSNWB_ForceNew, out ppFrame); | ||
} | ||
} | ||
|
||
public class ExternalBrowser : Browser | ||
{ | ||
public void Run(string query) | ||
{ | ||
Process.Start(query); | ||
} | ||
} | ||
|
||
public class BrowserFactory | ||
{ | ||
public static Browser Create(bool internalBrowser) | ||
{ | ||
if(internalBrowser) | ||
return new InternalBrowser(); | ||
else | ||
return new ExternalBrowser(); | ||
} | ||
} | ||
} |
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
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