|
|
|
@ -12,6 +12,7 @@ using System.Text.RegularExpressions;
@@ -12,6 +12,7 @@ using System.Text.RegularExpressions;
|
|
|
|
|
using System.Windows; |
|
|
|
|
|
|
|
|
|
using ICSharpCode.Core; |
|
|
|
|
using ICSharpCode.SharpDevelop; |
|
|
|
|
using ICSharpCode.SharpDevelop.Gui; |
|
|
|
|
using ICSharpCode.SharpDevelop.Gui.OptionPanels; |
|
|
|
|
using ICSharpCode.SharpDevelop.Project; |
|
|
|
@ -19,11 +20,6 @@ using ICSharpCode.TreeView;
@@ -19,11 +20,6 @@ using ICSharpCode.TreeView;
|
|
|
|
|
|
|
|
|
|
namespace ICSharpCode.CodeAnalysis |
|
|
|
|
{ |
|
|
|
|
/// <summary>
|
|
|
|
|
/// Interaction logic for AnalysisProjectOptionsPanel.xaml
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public partial class AnalysisProjectOptionsPanel : ProjectOptionPanel |
|
|
|
|
{ |
|
|
|
|
private bool initSuccess; |
|
|
|
@ -35,7 +31,6 @@ namespace ICSharpCode.CodeAnalysis
@@ -35,7 +31,6 @@ namespace ICSharpCode.CodeAnalysis
|
|
|
|
|
DataContext = this; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public ProjectProperty<bool> RunCodeAnalysis { |
|
|
|
|
get { return GetProperty("RunCodeAnalysis", false); } |
|
|
|
|
} |
|
|
|
@ -194,15 +189,13 @@ namespace ICSharpCode.CodeAnalysis
@@ -194,15 +189,13 @@ namespace ICSharpCode.CodeAnalysis
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void Callback(List<FxCopCategory> ruleList) |
|
|
|
|
{ |
|
|
|
|
if (WorkbenchSingleton.InvokeRequired) { |
|
|
|
|
WorkbenchSingleton.SafeThreadAsyncCall((Action<List<FxCopCategory>>)Callback, ruleList); |
|
|
|
|
if (SD.MainThread.InvokeRequired) { |
|
|
|
|
SD.MainThread.InvokeAsync(() => Callback(ruleList)); |
|
|
|
|
} else { |
|
|
|
|
ruleTreeView.Root = new SharpTreeNode(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
rules.Clear(); |
|
|
|
|
if (ruleList == null || ruleList.Count == 0) { |
|
|
|
|
ruleTreeView.Root.Children.Add(new MessageNode(StringParser.Parse("${res:ICSharpCode.CodeAnalysis.ProjectOptions.CannotFindFxCop}"))); |
|
|
|
@ -223,7 +216,6 @@ namespace ICSharpCode.CodeAnalysis
@@ -223,7 +216,6 @@ namespace ICSharpCode.CodeAnalysis
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void OnPropertyChanged(object sender,System.ComponentModel.PropertyChangedEventArgs e) |
|
|
|
|
{ |
|
|
|
|
if (initSuccess) { |
|
|
|
@ -246,14 +238,12 @@ namespace ICSharpCode.CodeAnalysis
@@ -246,14 +238,12 @@ namespace ICSharpCode.CodeAnalysis
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (e.PropertyName == "IsChecked") { |
|
|
|
|
base.IsDirty = true; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private string[] GetRuleAssemblyList(bool replacePath) |
|
|
|
|
{ |
|
|
|
|
List<string> list = new List<string>(); |
|
|
|
@ -272,7 +262,6 @@ namespace ICSharpCode.CodeAnalysis
@@ -272,7 +262,6 @@ namespace ICSharpCode.CodeAnalysis
|
|
|
|
|
return list.ToArray(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void ChangeRuleAssembliesButtonClick( object sender, RoutedEventArgs e) |
|
|
|
|
{ |
|
|
|
|
var stringListDialog = new StringListEditorDialog(); |
|
|
|
|