[Monodevelop-patches-list] r1839 - in trunk/MonoDevelop/src/AddIns/Misc/AssemblyAnalyser: ICSharpCode.AssemblyAnalyzer 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
Sat Jun 26 20:39:20 EDT 2004


Author: jluke
Date: 2004-06-26 20:39:20 -0400 (Sat, 26 Jun 2004)
New Revision: 1839

Modified:
   trunk/MonoDevelop/src/AddIns/Misc/AssemblyAnalyser/ICSharpCode.AssemblyAnalyzer.AddIn/Gui/AssemblyAnalyserControl.cs
   trunk/MonoDevelop/src/AddIns/Misc/AssemblyAnalyser/ICSharpCode.AssemblyAnalyzer.AddIn/Gui/AssemblyAnalyserView.cs
   trunk/MonoDevelop/src/AddIns/Misc/AssemblyAnalyser/ICSharpCode.AssemblyAnalyzer.AddIn/Gui/Panels/AssemblyRuleViewControl.cs
   trunk/MonoDevelop/src/AddIns/Misc/AssemblyAnalyser/ICSharpCode.AssemblyAnalyzer.AddIn/Gui/Panels/AssemblyTreeControl.cs
   trunk/MonoDevelop/src/AddIns/Misc/AssemblyAnalyser/ICSharpCode.AssemblyAnalyzer.AddIn/Gui/Panels/ResultDetailsView.cs
   trunk/MonoDevelop/src/AddIns/Misc/AssemblyAnalyser/ICSharpCode.AssemblyAnalyzer.AddIn/Gui/Panels/ResultListControl.cs
   trunk/MonoDevelop/src/AddIns/Misc/AssemblyAnalyser/ICSharpCode.AssemblyAnalyzer.AddIn/ICSharpCode.AssemblyAnalyser.Addin.prjx
   trunk/MonoDevelop/src/AddIns/Misc/AssemblyAnalyser/ICSharpCode.AssemblyAnalyzer/ICSharpCode.AssemblyAnalyser.prjx
Log:
fix some things


Modified: trunk/MonoDevelop/src/AddIns/Misc/AssemblyAnalyser/ICSharpCode.AssemblyAnalyzer/ICSharpCode.AssemblyAnalyser.prjx
===================================================================
--- trunk/MonoDevelop/src/AddIns/Misc/AssemblyAnalyser/ICSharpCode.AssemblyAnalyzer/ICSharpCode.AssemblyAnalyser.prjx	2004-06-26 23:14:27 UTC (rev 1838)
+++ trunk/MonoDevelop/src/AddIns/Misc/AssemblyAnalyser/ICSharpCode.AssemblyAnalyzer/ICSharpCode.AssemblyAnalyser.prjx	2004-06-27 00:39:20 UTC (rev 1839)
@@ -73,7 +73,7 @@
     <File name="./Rules/DesignRules/AssemblyClsCompliantRule.cs" subtype="Code" buildaction="Compile" dependson="" data="" />
   </Contents>
   <References>
-    <Reference type="Gac" refto="nunit.framework, Version=2.1.4.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77" localcopy="False" />
+    <Reference type="Assembly" refto="../../../../Main/Base/MonoDevelop.Base.dll" localcopy="True" />
   </References>
   <DeploymentInformation target="" script="" strategy="File" />
   <Configuration runwithwarnings="True" name="Debug">

Modified: trunk/MonoDevelop/src/AddIns/Misc/AssemblyAnalyser/ICSharpCode.AssemblyAnalyzer.AddIn/Gui/AssemblyAnalyserControl.cs
===================================================================
--- trunk/MonoDevelop/src/AddIns/Misc/AssemblyAnalyser/ICSharpCode.AssemblyAnalyzer.AddIn/Gui/AssemblyAnalyserControl.cs	2004-06-26 23:14:27 UTC (rev 1838)
+++ trunk/MonoDevelop/src/AddIns/Misc/AssemblyAnalyser/ICSharpCode.AssemblyAnalyzer.AddIn/Gui/AssemblyAnalyserControl.cs	2004-06-27 00:39:20 UTC (rev 1839)
@@ -15,66 +15,49 @@
 {
 	public class AssemblyAnalyserControl : Frame
 	{
-		Notebook tabControl;
-		NotebookPage assembliesTabPage;
+		HPaned horiz = new HPaned ();
+		VPaned vert = new VPaned ();
 
-		VSeparator splitter;
-		VSeparator splitter2;
-
-		MonoDevelop.AssemblyAnalyser.ResultListControl resultListControl;
-		MonoDevelop.AssemblyAnalyser.AssemblyTreeControl assemblyTreeControl;
-		MonoDevelop.AssemblyAnalyser.ResultDetailsView resultDetailsView;
+		ResultListControl resultListControl;
+		AssemblyTreeControl assemblyTreeControl;
+		ResultDetailsView resultDetailsView;
 		
-		public AssemblyAnalyserControl()
+		public AssemblyAnalyserControl ()
 		{
-			InitializeComponent();
+			this.Label = "Assembly Analyser Control";
+
+			this.resultDetailsView = new ResultDetailsView ();
+			this.assemblyTreeControl = new AssemblyTreeControl ();
+			this.resultListControl = new ResultListControl ();
+			
+			horiz.Add1 (assemblyTreeControl);
+			horiz.Add2 (vert);
+			
+			vert.Add1 (resultListControl);
+			vert.Add2 (resultDetailsView);
+
 			resultListControl.ResultDetailsView = resultDetailsView;
 			assemblyTreeControl.ResultListControl = resultListControl;
+			this.ShowAll ();
 		}
 		
-		public void ClearContents()
+		public void ClearContents ()
 		{
-			resultListControl.ClearContents();
-			assemblyTreeControl.ClearContents();
+			resultListControl.ClearContents ();
+			assemblyTreeControl.ClearContents ();
 		}
 		
-		public void AnalyzeAssembly(AssemblyAnalyser analyser, string fileName)
+		public void AnalyzeAssembly (AssemblyAnalyser analyser, string fileName)
 		{
-			if (File.Exists(fileName)) {
-				analyser.Analyse(fileName);
-				assemblyTreeControl.AddAssembly(fileName, analyser.Resolutions);
+			if (File.Exists (fileName)) {
+				analyser.Analyse (fileName);
+				assemblyTreeControl.AddAssembly (fileName, analyser.Resolutions);
 			}
 		}
 		
-		public void PrintAllResolutions()
+		public void PrintAllResolutions ()
 		{
-			assemblyTreeControl.PrintAllResolutions();
+			assemblyTreeControl.PrintAllResolutions ();
 		}
-		
-		private void InitializeComponent() {
-			this.Label = "Assembly Analyser Control";
-			VBox vbox = new VBox ();
-
-			this.resultDetailsView = new MonoDevelop.AssemblyAnalyser.ResultDetailsView();
-			this.assemblyTreeControl = new MonoDevelop.AssemblyAnalyser.AssemblyTreeControl();
-			this.resultListControl = new MonoDevelop.AssemblyAnalyser.ResultListControl();
-			vbox.PackStart (this.resultDetailsView);
-			vbox.PackStart (this.assemblyTreeControl);
-			vbox.PackStart (this.resultListControl);
-
-			//this.assembliesTabPage = new NotebookPage();
-			this.splitter = new VSeparator ();
-			this.tabControl = new Notebook();
-			this.splitter2 = new VSeparator ();
-/*
-			this.resultListControl.Load += new System.EventHandler(this.ResultListControlLoad);
-*/
-		}
-		
-		void ResultListControlLoad(object sender, System.EventArgs e)
-		{
-			
-		}
-		
 	}
 }

Modified: trunk/MonoDevelop/src/AddIns/Misc/AssemblyAnalyser/ICSharpCode.AssemblyAnalyzer.AddIn/Gui/AssemblyAnalyserView.cs
===================================================================
--- trunk/MonoDevelop/src/AddIns/Misc/AssemblyAnalyser/ICSharpCode.AssemblyAnalyzer.AddIn/Gui/AssemblyAnalyserView.cs	2004-06-26 23:14:27 UTC (rev 1838)
+++ trunk/MonoDevelop/src/AddIns/Misc/AssemblyAnalyser/ICSharpCode.AssemblyAnalyzer.AddIn/Gui/AssemblyAnalyserView.cs	2004-06-27 00:39:20 UTC (rev 1839)
@@ -69,11 +69,11 @@
 		public void RefreshProjectAssemblies()
 		{
 			if (currentAnalyser == null) {
-				currentAnalyser = CreateRemoteAnalyser();
+				currentAnalyser = CreateRemoteAnalyser ();
 			}
 
 			IProjectService projectService = (IProjectService) ServiceManager.GetService (typeof (IProjectService));
-			ArrayList projectCombineEntries = Combine.GetAllProjects(projectService.CurrentOpenCombine);
+			ArrayList projectCombineEntries = Combine.GetAllProjects (projectService.CurrentOpenCombine);
 			assemblyAnalyserControl.ClearContents ();
 
 			foreach (ProjectCombineEntry projectEntry in projectCombineEntries) {
@@ -81,16 +81,16 @@
 				assemblyAnalyserControl.AnalyzeAssembly (currentAnalyser, outputAssembly);
 			}
 
-			assemblyAnalyserControl.PrintAllResolutions();
+			assemblyAnalyserControl.PrintAllResolutions ();
 		}
 		
-		public override void Load(string fileName)
+		public override void Load (string file)
 		{
 		}
 		
-		public override void Dispose()
+		public override void Dispose ()
 		{
-			DisposeAnalyser();
+			DisposeAnalyser ();
 			
 			IProjectService projectService = (IProjectService) ServiceManager.GetService (typeof (IProjectService));
 			projectService.StartBuild -= new EventHandler (ProjectServiceStartBuild);
@@ -98,39 +98,39 @@
 			
 			IStatusBarService statusBarService = (IStatusBarService) ServiceManager.GetService (typeof (IStatusBarService));
 			
-			statusBarService.SetMessage(GettextCatalog.GetString ("Ready"));
+			statusBarService.SetMessage (GettextCatalog.GetString ("Ready"));
 			AssemblyAnalyserViewInstance = null;
 		}
 		
 		void DisposeAnalyser()
 		{
 			currentAnalyser = null;
-			AppDomain.Unload(analyserDomain);
+			AppDomain.Unload (analyserDomain);
 			analyserDomain = null;
 		}
 		
-		void ProjectServiceStartBuild(object sender, EventArgs e)
+		void ProjectServiceStartBuild (object sender, EventArgs e)
 		{
-			assemblyAnalyserControl.ClearContents();
-			DisposeAnalyser();
+			assemblyAnalyserControl.ClearContents ();
+			DisposeAnalyser ();
 		}
 		
-		void ProjectServiceEndBuild(object sender, EventArgs e)
+		void ProjectServiceEndBuild (object sender, EventArgs e)
 		{
-			//assemblyAnalyserControl.Invoke(new ThreadStart(RefreshProjectAssemblies));
+			this.RefreshProjectAssemblies ();
 		}
 		
-		AssemblyAnalyser CreateRemoteAnalyser()
+		AssemblyAnalyser CreateRemoteAnalyser ()
 		{
-			AppDomainSetup setup = new AppDomainSetup();
-			Evidence evidence = new Evidence(AppDomain.CurrentDomain.Evidence);
+			AppDomainSetup setup = new AppDomainSetup ();
+			Evidence evidence = new Evidence (AppDomain.CurrentDomain.Evidence);
 			setup.ApplicationName = "Analyser";
 			//setup.ApplicationBase = Application.StartupPath;
 
-			analyserDomain = AppDomain.CreateDomain("AnalyserDomain", evidence, setup);
-			return (AssemblyAnalyser)analyserDomain.CreateInstanceAndUnwrap(
-				typeof(AssemblyAnalyser).Assembly.FullName, 
-				typeof(AssemblyAnalyser).FullName,
+			analyserDomain = AppDomain.CreateDomain ("AnalyserDomain", evidence, setup);
+			return (AssemblyAnalyser) analyserDomain.CreateInstanceAndUnwrap (
+				typeof (AssemblyAnalyser).Assembly.FullName, 
+				typeof (AssemblyAnalyser).FullName,
 				false, BindingFlags.Default,null,null,null,null,null);
 		}
 	}

Modified: trunk/MonoDevelop/src/AddIns/Misc/AssemblyAnalyser/ICSharpCode.AssemblyAnalyzer.AddIn/Gui/Panels/AssemblyRuleViewControl.cs
===================================================================
--- trunk/MonoDevelop/src/AddIns/Misc/AssemblyAnalyser/ICSharpCode.AssemblyAnalyzer.AddIn/Gui/Panels/AssemblyRuleViewControl.cs	2004-06-26 23:14:27 UTC (rev 1838)
+++ trunk/MonoDevelop/src/AddIns/Misc/AssemblyAnalyser/ICSharpCode.AssemblyAnalyzer.AddIn/Gui/Panels/AssemblyRuleViewControl.cs	2004-06-27 00:39:20 UTC (rev 1839)
@@ -4,7 +4,7 @@
 //     <owner name="Mike Krueger" email="mike at icsharpcode.net"/>
 //     <version value="$version"/>
 // </file>
-
+/*
 using System;
 using Gtk;
 
@@ -19,3 +19,4 @@
 		}
 	}
 }
+*/
\ No newline at end of file

Modified: trunk/MonoDevelop/src/AddIns/Misc/AssemblyAnalyser/ICSharpCode.AssemblyAnalyzer.AddIn/Gui/Panels/AssemblyTreeControl.cs
===================================================================
--- trunk/MonoDevelop/src/AddIns/Misc/AssemblyAnalyser/ICSharpCode.AssemblyAnalyzer.AddIn/Gui/Panels/AssemblyTreeControl.cs	2004-06-26 23:14:27 UTC (rev 1838)
+++ trunk/MonoDevelop/src/AddIns/Misc/AssemblyAnalyser/ICSharpCode.AssemblyAnalyzer.AddIn/Gui/Panels/AssemblyTreeControl.cs	2004-06-27 00:39:20 UTC (rev 1839)
@@ -9,6 +9,7 @@
 using System.Collections;
 using System.IO;
 using System.Reflection;
+
 using Gtk;
 
 using MonoDevelop.Core.Services;
@@ -20,7 +21,7 @@
 	{
 		TreeStore assembliesStore;
 		TreeNode assembliesNode;
-		ResultListControl resultListControl;
+		ResultListControl resultListControl = new ResultListControl ();
 		
 		public ResultListControl ResultListControl {
 			get {
@@ -31,38 +32,17 @@
 			}
 		}
 		
-		public AssemblyTreeControl()
+		public AssemblyTreeControl ()
 		{
-			StringParserService stringParserService = (StringParserService) ServiceManager.GetService (typeof (StringParserService));
-			ClassBrowserIconsService classBrowserIconService = (ClassBrowserIconsService) ServiceManager.GetService (typeof (ClassBrowserIconsService));
-			assembliesStore = new TreeStore (typeof (string));
+			Console.WriteLine ("new assembly tree control");
+			//ClassBrowserIconsService classBrowserIconService = (ClassBrowserIconsService) ServiceManager.GetService (typeof (ClassBrowserIconsService));
+			assembliesStore = new TreeStore (typeof (string), typeof (ArrayList));
 			//assemblyTreeView.ImageList = classBrowserIconService.ImageList;
 			
-			//assembliesNode = new TreeNode(stringParserService.Parse("${res:MonoDevelop.AssemblyAnalyser.AssemblyTreeControl.AssembliesNode}"));
-			//assembliesNode.ImageIndex = assembliesNode.SelectedImageIndex = 0;
-			//assemblyTreeView.Nodes.Add(assembliesNode);
-			//assemblyTreeView.AfterCollapse += new TreeViewEventHandler(AssemblyTreeViewAfterCollapse);
-			//assemblyTreeView.AfterExpand += new TreeViewEventHandler(AssemblyTreeViewAfterExpand);
-			//assemblyTreeView.AfterSelect += new TreeViewEventHandler(AssemblyTreeViewAfterSelect);
+			assembliesStore.AppendValues ("AssembliesNode");
 			this.Selection.Changed += AssemblyTreeViewSelectionChanged;
 		}
 		
-/*		
-		void AssemblyTreeViewAfterCollapse(object sender, TreeViewEventArgs e)
-		{
-			if (e.Node == assembliesNode) {
-				assembliesNode.ImageIndex = assembliesNode.SelectedImageIndex = 0;
-			}
-		}
-
-		void AssemblyTreeViewAfterExpand(object sender, TreeViewEventArgs e)
-		{
-			if (e.Node == assembliesNode) {
-				assembliesNode.ImageIndex = assembliesNode.SelectedImageIndex = 1;
-			}
-		}
-*/
-		
 		void AssemblyTreeViewSelectionChanged (object sender, EventArgs e)
 		{
 			TreeIter iter;
@@ -81,15 +61,25 @@
 		public void PrintAllResolutions ()
 		{
 			ArrayList allResolutions = new ArrayList ();
-			//foreach (TreeNode node in assembliesNode.Nodes) {
-			//	allResolutions.AddRange((ArrayList)node.Tag);
-			//}
+			TreeIter current;
+			
+			if (assembliesStore.GetIterFirst (out current))
+			{
+				// first one is always just the label I think
+				// allResolutions.AddRange ((ArrayList) assembliesStore.GetValue (current, 1));
+				
+				while (assembliesStore.IterNext (ref current))
+				{
+					assembliesStore.IterNext (ref current);
+			 		allResolutions.AddRange ((ArrayList) assembliesStore.GetValue (current, 1));
+				}
+			}
+			
 			this.resultListControl.PrintReport (allResolutions);
 		}
 		
 		public void ClearContents()
 		{
-			//Console.WriteLine("CLEAR CONTENTS");
 			assembliesStore.Clear ();
 		}
 		

Modified: trunk/MonoDevelop/src/AddIns/Misc/AssemblyAnalyser/ICSharpCode.AssemblyAnalyzer.AddIn/Gui/Panels/ResultDetailsView.cs
===================================================================
--- trunk/MonoDevelop/src/AddIns/Misc/AssemblyAnalyser/ICSharpCode.AssemblyAnalyzer.AddIn/Gui/Panels/ResultDetailsView.cs	2004-06-26 23:14:27 UTC (rev 1838)
+++ trunk/MonoDevelop/src/AddIns/Misc/AssemblyAnalyser/ICSharpCode.AssemblyAnalyzer.AddIn/Gui/Panels/ResultDetailsView.cs	2004-06-27 00:39:20 UTC (rev 1839)
@@ -8,6 +8,7 @@
 using System;
 using System.IO;
 using System.Drawing;
+
 using Gtk;
 using Gecko;
 
@@ -43,45 +44,51 @@
 		void HtmlControlBeforeNavigate(object sender, OpenUriArgs e)
 		{
 			e.RetVal = true;
-			Console.WriteLine(" >{0}< ", e.AURI);
-			if (e.AURI.StartsWith("help://types/")) {
+			//Console.WriteLine (" >{0}< ", e.AURI);
+			if (e.AURI.StartsWith ("help://types/")) {
 				string typeName = e.AURI.Substring("help://types/".Length);
-				//HelpBrowser helpBrowser = (HelpBrowser)WorkbenchSingleton.Workbench.GetPad(typeof(HelpBrowser));
-				//helpBrowser.ShowHelpFromType(typeName);
-			} else if (e.AURI.StartsWith("help://gotocause")) {
-				GotoCurrentCause();
+				//HelpBrowser helpBrowser = (HelpBrowser) WorkbenchSingleton.Workbench.GetPad (typeof (HelpBrowser));
+				//helpBrowser.ShowHelpFromType (typeName);
+			} else if (e.AURI.StartsWith ("help://gotocause")) {
+				GotoCurrentCause ();
 			}
 		}
 		
-		public void ClearContents()
+		public void ClearContents ()
 		{
 			this.Html = "<HTML><BODY></BODY></HTML>";
 		}
 		
-		void GotoCurrentCause()
+		void GotoCurrentCause ()
 		{
+			Console.WriteLine ("GotoCurrentCause");
+			/*
 			IParserService parserService = (IParserService) ServiceManager.GetService (typeof (IParserService));
-			//Position position = parserService.GetPosition(currentResolution.Item.Replace('+', '.'));
+			Position position = parserService.GetPosition (currentResolution.Item.Replace ('+', '.'));
 			
-			//if (position != null && position.Cu != null) {
-			//	IFileService fileService = (IFileService)MonoDevelop.Core.Services.ServiceManager.Services.GetService(typeof(IFileService));
-			//	fileService.JumpToFilePosition(position.Cu.FileName, Math.Max(0, position.Line - 1), Math.Max(0, position.Column - 1));
-			//}
+			if (position != null && position.Cu != null) {
+				IFileService fileService = (IFileService)MonoDevelop.Core.Services.ServiceManager.GetService (typeof (IFileService));
+				fileService.JumpToFilePosition (position.Cu.FileName, Math.Max (0, position.Line - 1), Math.Max (0, position.Column - 1));
+			}
+			*/
 		}
 		
-		bool CanGoto(Resolution res)
+		bool CanGoto (Resolution res)
 		{
+			Console.WriteLine ("CanGoto");
+			return false;
+		/*
 			IParserService parserService = (IParserService) ServiceManager.GetService (typeof (IParserService));
-			//Position position = parserService.GetPosition(res.Item.Replace('+', '.'));
-			//return position != null && position.Cu != null;
-			return false; //FIXME
+			Position position = parserService.GetPosition (res.Item.Replace ('+', '.'));
+			return position != null && position.Cu != null;
+		*/
 		}
 		
 		public void ViewResolution (Resolution resolution)
 		{
 			this.currentResolution = resolution;
-			StringParserService stringParserService = (StringParserService) ServiceManager.GetService (typeof (StringParserService));
 			
+			this.Html = "<html><body>asdf test</body></html>";
 			/*this.Html = @"<HTML><BODY ID='bodyID' CLASS='dtBODY'>
 			<DIV ID='nstext'>
 			<DL>" + stringParserService.Parse(resolution.FailedRule.Description)  + @"</DL>

Modified: trunk/MonoDevelop/src/AddIns/Misc/AssemblyAnalyser/ICSharpCode.AssemblyAnalyzer.AddIn/Gui/Panels/ResultListControl.cs
===================================================================
--- trunk/MonoDevelop/src/AddIns/Misc/AssemblyAnalyser/ICSharpCode.AssemblyAnalyzer.AddIn/Gui/Panels/ResultListControl.cs	2004-06-26 23:14:27 UTC (rev 1838)
+++ trunk/MonoDevelop/src/AddIns/Misc/AssemblyAnalyser/ICSharpCode.AssemblyAnalyzer.AddIn/Gui/Panels/ResultListControl.cs	2004-06-27 00:39:20 UTC (rev 1839)
@@ -8,6 +8,7 @@
 using System;
 using System.Collections;
 using System.Drawing;
+
 using Gtk;
 
 using MonoDevelop.Core.Services;
@@ -30,9 +31,9 @@
 			}
 		}
 		
-		public ResultListControl()
+		public ResultListControl ()
 		{
-			StringParserService stringParserService = (StringParserService) ServiceManager.GetService(typeof(StringParserService));
+			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);
@@ -42,16 +43,15 @@
 			this.HeadersVisible = true;
 		}
 		
-		public void ClearContents()
+		public void ClearContents ()
 		{
 			store.Clear ();
 		}
 		
-		public void PrintReport(ArrayList resolutions)
+		public void PrintReport (ArrayList resolutions)
 		{
 			try {
-				store.Clear();
-				StringParserService stringParserService = (StringParserService) ServiceManager.GetService (typeof (StringParserService));
+				store.Clear ();
 				int cerr = 0, err = 0, cwar = 0, war = 0, inf = 0;
 				foreach (Resolution resolution in resolutions) {
 					string critical = String.Empty;
@@ -87,11 +87,10 @@
 							break;
 					}
 
-					string certainity = resolution.FailedRule.Certainty.ToString() + "%";
-					string text = stringParserService.Parse(resolution.FailedRule.Description);
-					string item = stringParserService.Parse(resolution.Item);
+					string certainity = resolution.FailedRule.Certainty.ToString () + "%";
+					string text = resolution.FailedRule.Description;
+					string item = resolution.Item;
 					store.AppendValues (critical, type, certainity, text, item, resolution);
-					
 				}
 
 				IStatusBarService statusBarService = (IStatusBarService) ServiceManager.GetService (typeof (IStatusBarService));
@@ -101,7 +100,7 @@
 					statusBarService.SetMessage (String.Format (GettextCatalog.GetString ("Total:{0} Critical:{1} Errors:{2} Warnings:{3} Info:{4}"), resolutions.Count.ToString (), cerr.ToString (), err.ToString (), cwar.ToString (), war.ToString (), inf.ToString ()));
 				}
 			} catch (Exception e) {
-				Console.WriteLine("Got exception : " + e.ToString());
+				Console.WriteLine("Got exception : " + e.ToString ());
 			}
 		}
 		
@@ -115,23 +114,27 @@
 				resultDetailsView.ViewResolution ((Resolution) model.GetValue (iter, 5));
 			}
 
-			//this.GrabFocus ();
+			this.GrabFocus ();
 		}
 
 		void ListViewItemActivated (object sender, RowActivatedArgs e)
 		{
-		//	ListViewItem item  = listView.SelectedItems[0];
-		//	if (item != null && item.Tag != null) {
-		//		Resolution res = (Resolution)item.Tag;
-		//		IParserService parserService = (IParserService)MonoDevelop.Core.Services.ServiceManager.Services.GetService(typeof(IParserService));
-		//		Position position = parserService.GetPosition(res.Item.Replace('+', '.'));
+			Console.WriteLine ("item activated");
+		/*
+			TreeIter iter;
+			if ()
+			{
+				Resolution res = (Resolution) model.GetValue (iter, 5);
+				IParserService parserService = (IParserService) ServiceManager.GetService (typeof (IParserService));
+				Position position = parserService.GetPosition (res.Item.Replace ('+', '.'));
 				
-		//		if (position != null && position.Cu != null) {
-		//			IFileService fileService = (IFileService)MonoDevelop.Core.Services.ServiceManager.Services.GetService(typeof(IFileService));
-		//			Console.WriteLine("File name : " + position.Cu.FileName);
-		//			fileService.JumpToFilePosition(position.Cu.FileName, Math.Max(0, position.Line - 1), Math.Max(0, position.Column - 1));
-		//		}
-		//	}
+				if (position != null && position.Cu != null) {
+					IFileService fileService = (IFileService)MonoDevelop.Core.Services.ServiceManager.Services.GetService(typeof(IFileService));
+					Console.WriteLine("File name : " + position.Cu.FileName);
+					fileService.JumpToFilePosition(position.Cu.FileName, Math.Max(0, position.Line - 1), Math.Max(0, position.Column - 1));
+				}
+			}
+		*/
 		}
 	}
 }

Modified: trunk/MonoDevelop/src/AddIns/Misc/AssemblyAnalyser/ICSharpCode.AssemblyAnalyzer.AddIn/ICSharpCode.AssemblyAnalyser.Addin.prjx
===================================================================
--- trunk/MonoDevelop/src/AddIns/Misc/AssemblyAnalyser/ICSharpCode.AssemblyAnalyzer.AddIn/ICSharpCode.AssemblyAnalyser.Addin.prjx	2004-06-26 23:14:27 UTC (rev 1838)
+++ trunk/MonoDevelop/src/AddIns/Misc/AssemblyAnalyser/ICSharpCode.AssemblyAnalyzer.AddIn/ICSharpCode.AssemblyAnalyser.Addin.prjx	2004-06-27 00:39:20 UTC (rev 1839)
@@ -10,7 +10,6 @@
     <File name="./Gui/Panels/ResultListControl.cs" subtype="Code" buildaction="Compile" dependson="" data="" />
     <File name="./Gui/Panels/ResultDetailsView.cs" subtype="Code" buildaction="Compile" dependson="" data="" />
     <File name="./AssemblyAnalyser.addin.xml" subtype="Code" buildaction="Nothing" dependson="" data="" />
-    <File name="./Gui/Panels/AssemblyRuleViewControl.cs" subtype="Code" buildaction="Compile" dependson="" data="" />
   </Contents>
   <References>
     <Reference type="Assembly" refto="../../../../Libraries/MonoDevelop.Core/MonoDevelop.Core.dll" localcopy="True" />




More information about the Monodevelop-patches-list mailing list