From d6534fb2e6b6a1a28932466296c60f20b9112048 Mon Sep 17 00:00:00 2001 From: eusebiu Date: Mon, 8 Nov 2010 00:16:06 +0200 Subject: [PATCH] add Reflector WPF Options panel and window --- data/resources/StringResources.resx | 20 +++- .../Project/ReflectorAddIn.addin | 7 +- .../Project/ReflectorAddIn.csproj | 35 ++++-- .../Src/OptionPanels/ChangeReflectorPath.xaml | 22 ++++ .../OptionPanels/ChangeReflectorPath.xaml.cs | 35 ++++++ .../Project/Src/ReflectorController.cs | 6 +- .../Project/Src/ReflectorSetupHelper.cs | 35 ++++-- .../Src/TextEditorContextMenuCommand.cs | 3 - .../Project/Src/Windows/SetReflectorPath.xaml | 105 ++++++++++++++++++ .../Src/Windows/SetReflectorPath.xaml.cs | 79 +++++++++++++ 10 files changed, 314 insertions(+), 33 deletions(-) create mode 100644 src/AddIns/Misc/ReflectorAddIn/ReflectorAddIn/Project/Src/OptionPanels/ChangeReflectorPath.xaml create mode 100644 src/AddIns/Misc/ReflectorAddIn/ReflectorAddIn/Project/Src/OptionPanels/ChangeReflectorPath.xaml.cs create mode 100644 src/AddIns/Misc/ReflectorAddIn/ReflectorAddIn/Project/Src/Windows/SetReflectorPath.xaml create mode 100644 src/AddIns/Misc/ReflectorAddIn/ReflectorAddIn/Project/Src/Windows/SetReflectorPath.xaml.cs diff --git a/data/resources/StringResources.resx b/data/resources/StringResources.resx index 1b0e5e1330..2753390aa8 100644 --- a/data/resources/StringResources.resx +++ b/data/resources/StringResources.resx @@ -6381,15 +6381,12 @@ Removed the end part of the original message ", reason '${Message}'" since this Delete all web references Title of the dialog box when the user tries to remove all web references. - - Open .NET Reflector - - - Reflector could not be found at the specified location, or SharpDevelop does not have sufficient rights to access it. - The path to Reflector has not been set yet. + + Change Reflector path. + Failed to connect to Reflector. @@ -6402,6 +6399,17 @@ Removed the end part of the original message ", reason '${Message}'" since this Set path to Reflector + + Reflector was found in the following directory: + + + Reflector + Title of Reflector path choosing groupbox + + + Select Reflector path + Button to select the Reflector path + Assemblies (*.dll)|*.dll diff --git a/src/AddIns/Misc/ReflectorAddIn/ReflectorAddIn/Project/ReflectorAddIn.addin b/src/AddIns/Misc/ReflectorAddIn/ReflectorAddIn/Project/ReflectorAddIn.addin index b401f093ed..7a631e8e15 100644 --- a/src/AddIns/Misc/ReflectorAddIn/ReflectorAddIn/Project/ReflectorAddIn.addin +++ b/src/AddIns/Misc/ReflectorAddIn/ReflectorAddIn/Project/ReflectorAddIn.addin @@ -30,5 +30,10 @@ - + + + + diff --git a/src/AddIns/Misc/ReflectorAddIn/ReflectorAddIn/Project/ReflectorAddIn.csproj b/src/AddIns/Misc/ReflectorAddIn/ReflectorAddIn/Project/ReflectorAddIn.csproj index ecd93b97b7..14858554fc 100644 --- a/src/AddIns/Misc/ReflectorAddIn/ReflectorAddIn/Project/ReflectorAddIn.csproj +++ b/src/AddIns/Misc/ReflectorAddIn/ReflectorAddIn/Project/ReflectorAddIn.csproj @@ -40,12 +40,18 @@ + + 3.5 + + 4.0 + + @@ -53,22 +59,25 @@ + + ChangeReflectorPath.xaml + Code + - - - SetReflectorPathDialog.cs - + + SetReflectorPath.xaml + Code + Always - - SetReflectorPathDialog.cs - + + {2748AD25-9C63-4E12-877B-4DCE96FBED54} ICSharpCode.SharpDevelop @@ -79,10 +88,22 @@ ICSharpCode.Core False + + {7E4A7172-7FF5-48D0-B719-7CD959DD1AC9} + ICSharpCode.Core.Presentation + {924EE450-603D-49C1-A8E5-4AFAA31CE6F3} ICSharpCode.SharpDevelop.Dom False + + {8035765F-D51F-4A0C-A746-2FD100E19419} + ICSharpCode.SharpDevelop.Widgets + + + + + \ No newline at end of file diff --git a/src/AddIns/Misc/ReflectorAddIn/ReflectorAddIn/Project/Src/OptionPanels/ChangeReflectorPath.xaml b/src/AddIns/Misc/ReflectorAddIn/ReflectorAddIn/Project/Src/OptionPanels/ChangeReflectorPath.xaml new file mode 100644 index 0000000000..8399ffba9e --- /dev/null +++ b/src/AddIns/Misc/ReflectorAddIn/ReflectorAddIn/Project/Src/OptionPanels/ChangeReflectorPath.xaml @@ -0,0 +1,22 @@ + + + + + + +