[Monodevelop-patches-list] r1847 - in trunk/MonoDevelop/Core/src/AddIns/Misc/AssemblyAnalyser: . ICSharpCode.AssemblyAnalyzer/Engine ICSharpCode.AssemblyAnalyzer.AddIn ICSharpCode.AssemblyAnalyzer.AddIn/Gui ICSharpCode.AssemblyAnalyzer.AddIn/Gui/Panels
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Sun Jun 27 12:59:54 EDT 2004
Author: jluke
Date: 2004-06-27 12:59:54 -0400 (Sun, 27 Jun 2004)
New Revision: 1847
Added:
trunk/MonoDevelop/Core/src/AddIns/Misc/AssemblyAnalyser/ChangeLog
trunk/MonoDevelop/Core/src/AddIns/Misc/AssemblyAnalyser/README
Modified:
trunk/MonoDevelop/Core/src/AddIns/Misc/AssemblyAnalyser/ICSharpCode.AssemblyAnalyzer.AddIn/Commands.cs
trunk/MonoDevelop/Core/src/AddIns/Misc/AssemblyAnalyser/ICSharpCode.AssemblyAnalyzer.AddIn/Gui/AssemblyAnalyserControl.cs
trunk/MonoDevelop/Core/src/AddIns/Misc/AssemblyAnalyser/ICSharpCode.AssemblyAnalyzer.AddIn/Gui/AssemblyAnalyserView.cs
trunk/MonoDevelop/Core/src/AddIns/Misc/AssemblyAnalyser/ICSharpCode.AssemblyAnalyzer.AddIn/Gui/Panels/AssemblyTreeControl.cs
trunk/MonoDevelop/Core/src/AddIns/Misc/AssemblyAnalyser/ICSharpCode.AssemblyAnalyzer.AddIn/Gui/Panels/ResultDetailsView.cs
trunk/MonoDevelop/Core/src/AddIns/Misc/AssemblyAnalyser/ICSharpCode.AssemblyAnalyzer.AddIn/Gui/Panels/ResultListControl.cs
trunk/MonoDevelop/Core/src/AddIns/Misc/AssemblyAnalyser/ICSharpCode.AssemblyAnalyzer/Engine/AssemblyAnalyser.cs
trunk/MonoDevelop/Core/src/AddIns/Misc/AssemblyAnalyser/ICSharpCode.AssemblyAnalyzer/Engine/Resolution.cs
Log:
flush these changes
Added: trunk/MonoDevelop/Core/src/AddIns/Misc/AssemblyAnalyser/ChangeLog
===================================================================
Modified: trunk/MonoDevelop/Core/src/AddIns/Misc/AssemblyAnalyser/ICSharpCode.AssemblyAnalyzer/Engine/AssemblyAnalyser.cs
===================================================================
--- trunk/MonoDevelop/Core/src/AddIns/Misc/AssemblyAnalyser/ICSharpCode.AssemblyAnalyzer/Engine/AssemblyAnalyser.cs 2004-06-27 04:10:17 UTC (rev 1846)
+++ trunk/MonoDevelop/Core/src/AddIns/Misc/AssemblyAnalyser/ICSharpCode.AssemblyAnalyzer/Engine/AssemblyAnalyser.cs 2004-06-27 16:59:54 UTC (rev 1847)
@@ -12,27 +12,24 @@
namespace MonoDevelop.AssemblyAnalyser
{
- /// <summary>
- /// Description of AssemblyAnalyser.
- /// </summary>
public class AssemblyAnalyser : System.MarshalByRefObject
{
- ArrayList assemblyRules = new ArrayList();
- ArrayList moduleRules = new ArrayList();
- ArrayList typeRules = new ArrayList();
- ArrayList namespaceRules = new ArrayList();
- ArrayList memberRules = new ArrayList();
- ArrayList methodBaseRules = new ArrayList();
- ArrayList constructorRules = new ArrayList();
- ArrayList eventRules = new ArrayList();
- ArrayList fieldRules = new ArrayList();
- ArrayList methodRules = new ArrayList();
- ArrayList parameterRules = new ArrayList();
- ArrayList propertyRules = new ArrayList();
+ ArrayList assemblyRules = new ArrayList ();
+ ArrayList moduleRules = new ArrayList ();
+ ArrayList typeRules = new ArrayList ();
+ ArrayList namespaceRules = new ArrayList ();
+ ArrayList memberRules = new ArrayList ();
+ ArrayList methodBaseRules = new ArrayList ();
+ ArrayList constructorRules = new ArrayList ();
+ ArrayList eventRules = new ArrayList ();
+ ArrayList fieldRules = new ArrayList ();
+ ArrayList methodRules = new ArrayList ();
+ ArrayList parameterRules = new ArrayList ();
+ ArrayList propertyRules = new ArrayList ();
- ArrayList resolutions = new ArrayList();
+ ArrayList resolutions = new ArrayList ();
- Hashtable namespaces = new Hashtable();
+ Hashtable namespaces = new Hashtable ();
public ArrayList Resolutions {
get {
@@ -42,80 +39,85 @@
public AssemblyAnalyser()
{
-
- Type[] types = typeof(AssemblyAnalyser).Assembly.GetTypes();
+ Type[] types = typeof (AssemblyAnalyser).Assembly.GetTypes ();
foreach (Type type in types) {
if (!type.IsAbstract && type.IsClass) {
if (type.GetInterface(typeof(IAssemblyRule).FullName) != null) {
assemblyRules.Add(type.Assembly.CreateInstance(type.FullName));
- } else if (type.GetInterface(typeof(IConstructorRule).FullName) != null) {
+ } else if (type.GetInterface (typeof (IConstructorRule).FullName) != null) {
constructorRules.Add(type.Assembly.CreateInstance(type.FullName));
- } else if (type.GetInterface(typeof(IEventRule).FullName) != null) {
+ } else if (type.GetInterface (typeof (IEventRule).FullName) != null) {
eventRules.Add(type.Assembly.CreateInstance(type.FullName));
- } else if (type.GetInterface(typeof(IFieldRule).FullName) != null) {
+ } else if (type.GetInterface (typeof (IFieldRule).FullName) != null) {
fieldRules.Add(type.Assembly.CreateInstance(type.FullName));
- } else if (type.GetInterface(typeof(IMemberRule).FullName) != null) {
+ } else if (type.GetInterface (typeof (IMemberRule).FullName) != null) {
memberRules.Add(type.Assembly.CreateInstance(type.FullName));
- } else if (type.GetInterface(typeof(IMethodBaseRule).FullName) != null) {
+ } else if (type.GetInterface (typeof (IMethodBaseRule).FullName) != null) {
methodBaseRules.Add(type.Assembly.CreateInstance(type.FullName));
- } else if (type.GetInterface(typeof(IMethodRule).FullName) != null) {
+ } else if (type.GetInterface (typeof (IMethodRule).FullName) != null) {
methodRules.Add(type.Assembly.CreateInstance(type.FullName));
- } else if (type.GetInterface(typeof(IModuleRule).FullName) != null) {
+ } else if (type.GetInterface (typeof (IModuleRule).FullName) != null) {
moduleRules.Add(type.Assembly.CreateInstance(type.FullName));
- } else if (type.GetInterface(typeof(INamespaceRule).FullName) != null) {
+ } else if (type.GetInterface (typeof (INamespaceRule).FullName) != null) {
namespaceRules.Add(type.Assembly.CreateInstance(type.FullName));
- } else if (type.GetInterface(typeof(IParameterRule).FullName) != null) {
+ } else if (type.GetInterface (typeof (IParameterRule).FullName) != null) {
parameterRules.Add(type.Assembly.CreateInstance(type.FullName));
- } else if (type.GetInterface(typeof(IPropertyRule).FullName) != null) {
+ } else if (type.GetInterface (typeof (IPropertyRule).FullName) != null) {
propertyRules.Add(type.Assembly.CreateInstance(type.FullName));
- } else if (type.GetInterface(typeof(ITypeRule).FullName) != null) {
- typeRules.Add(type.Assembly.CreateInstance(type.FullName));
+ } else if (type.GetInterface (typeof (ITypeRule).FullName) != null) {
+ typeRules.Add(type.Assembly.CreateInstance (type.FullName));
}
}
}
}
- void AddResolutions(Resolution resolution)
+ void AddResolutions (Resolution resolution)
{
if (resolution != null) {
- resolutions.Add(resolution);
+ resolutions.Add (resolution);
}
}
- public void Analyse(string fileName)
+ public void Analyse (string fileName)
{
Assembly assembly = null;
+
try {
- assembly = Assembly.LoadFrom(fileName);
+ assembly = Assembly.LoadFrom (fileName);
} catch (Exception e) {
- resolutions.Add(new Resolution(new CustomRule("${res:MonoDevelop.AssemblyAnalyser.AssemblyCantBeLoaded.Description}",
- "${res:MonoDevelop.AssemblyAnalyser.AssemblyCantBeLoaded.Details}", PriorityLevel.CriticalError, 100),
- "${res:MonoDevelop.AssemblyAnalyser.AssemblyCantBeLoaded.Resolution}",
+ resolutions.Add (new Resolution (new CustomRule ("Assembly cannot be loaded.",
+ "Assembly cannot be loaded details. ", PriorityLevel.CriticalError, 100),
+ "Assembly cannot be loaded resolution.",
fileName,
new string[,] { { "FileName", fileName }, {"ExceptionMessage", e.Message}}));
return;
}
- Analyse(assembly);
+
+ Analyse (assembly);
}
- public void Analyse(Module module, Type type)
+ public void Analyse (Module module, Type type)
{
- if (type.IsSpecialName || !(Char.IsLetter(type.Name[0]) || type.Name[0] == '_')) {
+ if (type.IsSpecialName || !(Char.IsLetter (type.Name[0]) || type.Name[0] == '_')) {
return;
}
+
string ns = type.Namespace == null ? "" : type.Namespace;
+
if (namespaces[ns] == null) {
namespaces[ns] = new ArrayList();
}
- ((ArrayList)namespaces[ns]).Add(type);
+ ((ArrayList) namespaces[ns]).Add (type);
+
foreach (ITypeRule typeRule in typeRules) {
- AddResolutions(typeRule.Check(type));
+ AddResolutions (typeRule.Check (type));
}
- foreach (Type nestedType in type.GetNestedTypes()) {
- Analyse(module, nestedType);
+ foreach (Type nestedType in type.GetNestedTypes ()) {
+ Analyse (module, nestedType);
}
+
BindingFlags bf = BindingFlags.DeclaredOnly |
BindingFlags.Public |
BindingFlags.NonPublic |
@@ -125,37 +127,37 @@
foreach (MemberInfo memberInfo in type.GetMembers(bf)) {
foreach (IMemberRule memberRule in memberRules) {
- AddResolutions(memberRule.Check(module, memberInfo));
+ AddResolutions (memberRule.Check (module, memberInfo));
}
}
foreach (ConstructorInfo constructorInfo in type.GetConstructors(bf)) {
if (!constructorInfo.IsSpecialName) {
// search parameters
- foreach (ParameterInfo parameter in constructorInfo.GetParameters()) {
+ foreach (ParameterInfo parameter in constructorInfo.GetParameters ()) {
foreach (IParameterRule parameterRule in parameterRules) {
- AddResolutions(parameterRule.Check(module, parameter));
+ AddResolutions (parameterRule.Check (module, parameter));
}
}
foreach (IConstructorRule constructorRule in constructorRules) {
- AddResolutions(constructorRule.Check(constructorInfo));
+ AddResolutions (constructorRule.Check (constructorInfo));
}
}
}
- foreach (EventInfo eventInfo in type.GetEvents(bf)) {
+ foreach (EventInfo eventInfo in type.GetEvents (bf)) {
if (!eventInfo.IsSpecialName) {
foreach (IEventRule eventRule in eventRules) {
- AddResolutions(eventRule.Check(eventInfo));
+ AddResolutions (eventRule.Check (eventInfo));
}
}
}
- foreach (FieldInfo fieldInfo in type.GetFields(bf)) {
+ foreach (FieldInfo fieldInfo in type.GetFields (bf)) {
if (!fieldInfo.IsSpecialName) {
foreach (IFieldRule fieldRule in fieldRules) {
- AddResolutions(fieldRule.Check(module, fieldInfo));
+ AddResolutions (fieldRule.Check (module, fieldInfo));
}
}
}
@@ -163,17 +165,17 @@
// TODO: IMethodBaseRule
foreach (MethodInfo methodInfo in type.GetMethods(bf)) {
if (!methodInfo.IsSpecialName) {
- Console.WriteLine(methodInfo.Attributes);
+ //Console.WriteLine (methodInfo.Attributes);
// search parameters
foreach (ParameterInfo parameter in methodInfo.GetParameters()) {
foreach (IParameterRule parameterRule in parameterRules) {
- AddResolutions(parameterRule.Check(module, parameter));
+ AddResolutions (parameterRule.Check (module, parameter));
}
}
foreach (IMethodRule methodRule in methodRules) {
- AddResolutions(methodRule.Check(module, methodInfo));
+ AddResolutions (methodRule.Check (module, methodInfo));
}
}
}
@@ -181,31 +183,33 @@
foreach (PropertyInfo propertyInfo in type.GetProperties(bf)) {
if (!propertyInfo.IsSpecialName) {
foreach (IPropertyRule propertyRule in propertyRules) {
- AddResolutions(propertyRule.Check(propertyInfo));
+ AddResolutions (propertyRule.Check (propertyInfo));
}
}
}
}
- public void Analyse(Assembly assembly)
+
+ public void Analyse (Assembly assembly)
{
- namespaces = new Hashtable();
- resolutions = new ArrayList();
+ namespaces = new Hashtable ();
+ resolutions = new ArrayList ();
+
foreach (IAssemblyRule assemblyRule in assemblyRules) {
- AddResolutions(assemblyRule.Check(assembly));
+ AddResolutions (assemblyRule.Check (assembly));
}
- foreach (Module module in assembly.GetModules()) {
+ foreach (Module module in assembly.GetModules ()) {
foreach (IModuleRule moduleRule in moduleRules) {
- AddResolutions(moduleRule.Check(module));
+ AddResolutions (moduleRule.Check (module));
}
- foreach (Type type in module.GetTypes()) {
- Analyse(module, type);
+ foreach (Type type in module.GetTypes ()) {
+ Analyse (module, type);
}
}
foreach (DictionaryEntry namespaceEntry in namespaces) {
foreach (INamespaceRule namespaceRule in namespaceRules) {
- AddResolutions(namespaceRule.Check(namespaceEntry.Key.ToString(), (ArrayList)namespaceEntry.Value));
+ AddResolutions (namespaceRule.Check (namespaceEntry.Key.ToString (), (ArrayList) namespaceEntry.Value));
}
}
}
Modified: trunk/MonoDevelop/Core/src/AddIns/Misc/AssemblyAnalyser/ICSharpCode.AssemblyAnalyzer/Engine/Resolution.cs
===================================================================
--- trunk/MonoDevelop/Core/src/AddIns/Misc/AssemblyAnalyser/ICSharpCode.AssemblyAnalyzer/Engine/Resolution.cs 2004-06-27 04:10:17 UTC (rev 1846)
+++ trunk/MonoDevelop/Core/src/AddIns/Misc/AssemblyAnalyser/ICSharpCode.AssemblyAnalyzer/Engine/Resolution.cs 2004-06-27 16:59:54 UTC (rev 1847)
@@ -9,10 +9,7 @@
using MonoDevelop.AssemblyAnalyser.Rules;
namespace MonoDevelop.AssemblyAnalyser
-{
- /// </summary>
- /// <summary>
- /// Description of Resolution.
+{
public class Resolution : System.MarshalByRefObject
{
IRule failedRule;
@@ -41,14 +38,14 @@
}
}
- public Resolution(IRule failedRule, string text, string item)
+ public Resolution (IRule failedRule, string text, string item)
{
this.failedRule = failedRule;
this.text = text;
this.item = item;
}
- public Resolution(IRule failedRule, string text, string item, string[,] variables)
+ public Resolution (IRule failedRule, string text, string item, string[,] variables)
{
this.failedRule = failedRule;
this.text = text;
Modified: trunk/MonoDevelop/Core/src/AddIns/Misc/AssemblyAnalyser/ICSharpCode.AssemblyAnalyzer.AddIn/Commands.cs
===================================================================
--- trunk/MonoDevelop/Core/src/AddIns/Misc/AssemblyAnalyser/ICSharpCode.AssemblyAnalyzer.AddIn/Commands.cs 2004-06-27 04:10:17 UTC (rev 1846)
+++ trunk/MonoDevelop/Core/src/AddIns/Misc/AssemblyAnalyser/ICSharpCode.AssemblyAnalyzer.AddIn/Commands.cs 2004-06-27 16:59:54 UTC (rev 1847)
@@ -15,12 +15,12 @@
{
public class ShowAssemblyAnalyser : AbstractMenuCommand
{
- public override void Run()
+ public override void Run ()
{
if (AssemblyAnalyserView.AssemblyAnalyserViewInstance == null) {
- WorkbenchSingleton.Workbench.ShowView(new AssemblyAnalyserView());
+ WorkbenchSingleton.Workbench.ShowView (new AssemblyAnalyserView ());
} else {
- AssemblyAnalyserView.AssemblyAnalyserViewInstance.WorkbenchWindow.SelectWindow();
+ AssemblyAnalyserView.AssemblyAnalyserViewInstance.WorkbenchWindow.SelectWindow ();
}
}
}
Modified: trunk/MonoDevelop/Core/src/AddIns/Misc/AssemblyAnalyser/ICSharpCode.AssemblyAnalyzer.AddIn/Gui/AssemblyAnalyserControl.cs
===================================================================
--- trunk/MonoDevelop/Core/src/AddIns/Misc/AssemblyAnalyser/ICSharpCode.AssemblyAnalyzer.AddIn/Gui/AssemblyAnalyserControl.cs 2004-06-27 04:10:17 UTC (rev 1846)
+++ trunk/MonoDevelop/Core/src/AddIns/Misc/AssemblyAnalyser/ICSharpCode.AssemblyAnalyzer.AddIn/Gui/AssemblyAnalyserControl.cs 2004-06-27 16:59:54 UTC (rev 1847)
@@ -24,8 +24,6 @@
public AssemblyAnalyserControl ()
{
- this.Label = "Assembly Analyser Control";
-
this.resultDetailsView = new ResultDetailsView ();
this.assemblyTreeControl = new AssemblyTreeControl ();
this.resultListControl = new ResultListControl ();
Modified: trunk/MonoDevelop/Core/src/AddIns/Misc/AssemblyAnalyser/ICSharpCode.AssemblyAnalyzer.AddIn/Gui/AssemblyAnalyserView.cs
===================================================================
--- trunk/MonoDevelop/Core/src/AddIns/Misc/AssemblyAnalyser/ICSharpCode.AssemblyAnalyzer.AddIn/Gui/AssemblyAnalyserView.cs 2004-06-27 04:10:17 UTC (rev 1846)
+++ trunk/MonoDevelop/Core/src/AddIns/Misc/AssemblyAnalyser/ICSharpCode.AssemblyAnalyzer.AddIn/Gui/AssemblyAnalyserView.cs 2004-06-27 16:59:54 UTC (rev 1847)
@@ -117,7 +117,8 @@
void ProjectServiceEndBuild (object sender, EventArgs e)
{
- this.RefreshProjectAssemblies ();
+ Console.WriteLine ("refresh assemblies");
+ //this.RefreshProjectAssemblies ();
}
AssemblyAnalyser CreateRemoteAnalyser ()
Modified: trunk/MonoDevelop/Core/src/AddIns/Misc/AssemblyAnalyser/ICSharpCode.AssemblyAnalyzer.AddIn/Gui/Panels/AssemblyTreeControl.cs
===================================================================
--- trunk/MonoDevelop/Core/src/AddIns/Misc/AssemblyAnalyser/ICSharpCode.AssemblyAnalyzer.AddIn/Gui/Panels/AssemblyTreeControl.cs 2004-06-27 04:10:17 UTC (rev 1846)
+++ trunk/MonoDevelop/Core/src/AddIns/Misc/AssemblyAnalyser/ICSharpCode.AssemblyAnalyzer.AddIn/Gui/Panels/AssemblyTreeControl.cs 2004-06-27 16:59:54 UTC (rev 1847)
@@ -20,8 +20,7 @@
public class AssemblyTreeControl : TreeView
{
TreeStore assembliesStore;
- TreeNode assembliesNode;
- ResultListControl resultListControl = new ResultListControl ();
+ ResultListControl resultListControl;
public ResultListControl ResultListControl {
get {
@@ -34,12 +33,12 @@
public AssemblyTreeControl ()
{
- Console.WriteLine ("new assembly tree control");
//ClassBrowserIconsService classBrowserIconService = (ClassBrowserIconsService) ServiceManager.GetService (typeof (ClassBrowserIconsService));
assembliesStore = new TreeStore (typeof (string), typeof (ArrayList));
//assemblyTreeView.ImageList = classBrowserIconService.ImageList;
assembliesStore.AppendValues ("AssembliesNode");
+ this.Model = assembliesStore;
this.Selection.Changed += AssemblyTreeViewSelectionChanged;
this.Show ();
}
@@ -86,6 +85,7 @@
public void AnalyzeAssembly (AssemblyAnalyser current, string output)
{
+ Console.WriteLine ("analyze assembly called");
}
public void AddAssembly (string assemblyFileName, ArrayList resolutions)
Modified: trunk/MonoDevelop/Core/src/AddIns/Misc/AssemblyAnalyser/ICSharpCode.AssemblyAnalyzer.AddIn/Gui/Panels/ResultDetailsView.cs
===================================================================
--- trunk/MonoDevelop/Core/src/AddIns/Misc/AssemblyAnalyser/ICSharpCode.AssemblyAnalyzer.AddIn/Gui/Panels/ResultDetailsView.cs 2004-06-27 04:10:17 UTC (rev 1846)
+++ trunk/MonoDevelop/Core/src/AddIns/Misc/AssemblyAnalyser/ICSharpCode.AssemblyAnalyzer.AddIn/Gui/Panels/ResultDetailsView.cs 2004-06-27 16:59:54 UTC (rev 1847)
@@ -10,39 +10,36 @@
using System.Drawing;
using Gtk;
-using Gecko;
using MonoDevelop.Gui;
using MonoDevelop.Core;
using MonoDevelop.Services;
-using MonoDevelop.BrowserDisplayBinding;
-using MonoDevelop.Gui.HtmlControl;
using MonoDevelop.Core.Services;
using MonoDevelop.AssemblyAnalyser.Rules;
using MonoDevelop.Gui.Pads;
namespace MonoDevelop.AssemblyAnalyser
{
- // it might be better to display with some simple
- // labels, or even a DrawingArea
- public class ResultDetailsView : MozillaControl
+ public class ResultDetailsView : Frame
{
Resolution currentResolution;
+ Label title = new Label ();
+ Label desc = new Label ();
+ Label details = new Label ();
public ResultDetailsView()
{
- Console.WriteLine ("new result details view");
- PropertyService propertyService = (PropertyService) ServiceManager.GetService (typeof (PropertyService));
- //htmlControl.CascadingStyleSheet = propertyService.DataDirectory + Path.DirectorySeparatorChar +
- // "resources" + Path.DirectorySeparatorChar +
- // "css" + Path.DirectorySeparatorChar +
- // "MsdnHelp.css";
+ VBox vbox = new VBox ();
- ClearContents();
- this.OpenUri += new OpenUriHandler (HtmlControlBeforeNavigate);
- this.Show ();
+ vbox.PackStart (title);
+ vbox.PackStart (desc);
+ vbox.PackStart (details);
+
+ this.Add (vbox);
+ this.ShowAll ();
}
+ /*
void HtmlControlBeforeNavigate(object sender, OpenUriArgs e)
{
e.RetVal = true;
@@ -55,10 +52,13 @@
GotoCurrentCause ();
}
}
+ */
public void ClearContents ()
{
- this.Html = "<HTML><BODY></BODY></HTML>";
+ title.Text = "";
+ desc.Text = "";
+ details.Text = "";
}
void GotoCurrentCause ()
@@ -90,7 +90,7 @@
{
this.currentResolution = resolution;
- this.Html = "<html><body>asdf test</body></html>";
+ this.title.Text = resolution.FailedRule.Description;
/*this.Html = @"<HTML><BODY ID='bodyID' CLASS='dtBODY'>
<DIV ID='nstext'>
<DL>" + stringParserService.Parse(resolution.FailedRule.Description) + @"</DL>
Modified: trunk/MonoDevelop/Core/src/AddIns/Misc/AssemblyAnalyser/ICSharpCode.AssemblyAnalyzer.AddIn/Gui/Panels/ResultListControl.cs
===================================================================
--- trunk/MonoDevelop/Core/src/AddIns/Misc/AssemblyAnalyser/ICSharpCode.AssemblyAnalyzer.AddIn/Gui/Panels/ResultListControl.cs 2004-06-27 04:10:17 UTC (rev 1846)
+++ trunk/MonoDevelop/Core/src/AddIns/Misc/AssemblyAnalyser/ICSharpCode.AssemblyAnalyzer.AddIn/Gui/Panels/ResultListControl.cs 2004-06-27 16:59:54 UTC (rev 1847)
@@ -33,12 +33,12 @@
public ResultListControl ()
{
- Console.WriteLine ("new result list control");
store = new ListStore (typeof (string), typeof (string), typeof (string), typeof (string), typeof (string), typeof (Resolution));
- this.AppendColumn ("Level", new CellRendererText (), "text", 0);
- this.AppendColumn ("Certainty", new CellRendererText (), "text", 1);
- this.AppendColumn ("Rule", new CellRendererText (), "text", 2);
- this.AppendColumn ("Item", new CellRendererText (), "text", 3);
+ this.AppendColumn ("!", new CellRendererText (), "text", 0);
+ this.AppendColumn ("Level", new CellRendererText (), "text", 1);
+ this.AppendColumn ("Certainty", new CellRendererText (), "text", 2);
+ this.AppendColumn ("Rule", new CellRendererText (), "text", 3);
+ this.AppendColumn ("Item", new CellRendererText (), "text", 4);
this.Model = store;
this.HeadersVisible = true;
this.Show ();
@@ -91,9 +91,12 @@
string certainity = resolution.FailedRule.Certainty.ToString () + "%";
string text = resolution.FailedRule.Description;
string item = resolution.Item;
+ Console.WriteLine ("appending resolution");
store.AppendValues (critical, type, certainity, text, item, resolution);
}
+ this.Model = store;
+
IStatusBarService statusBarService = (IStatusBarService) ServiceManager.GetService (typeof (IStatusBarService));
if (resolutions.Count == 0) {
statusBarService.SetMessage (GettextCatalog.GetString ("No defects found."));
Added: trunk/MonoDevelop/Core/src/AddIns/Misc/AssemblyAnalyser/README
===================================================================
--- trunk/MonoDevelop/Core/src/AddIns/Misc/AssemblyAnalyser/README 2004-06-27 04:10:17 UTC (rev 1846)
+++ trunk/MonoDevelop/Core/src/AddIns/Misc/AssemblyAnalyser/README 2004-06-27 16:59:54 UTC (rev 1847)
@@ -0,0 +1,4 @@
+
+This is a port of SharpDevelop's AssemblyAnalyzer to MonoDevelop. It offers
+similar functionality to FxCop on Windows.
+
More information about the Monodevelop-patches-list
mailing list