Author: lluis
Date: 2006-03-23 07:45:57 -0500 (Thu, 23 Mar 2006)
New Revision: 58351
Modified:
trunk/monodevelop/Core/src/MonoDevelop.Ide/ChangeLog
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/GacReferencePanel.cs
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/SelectReferenceDialog.cs
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui/IdeStartup.cs
Log:
2006-03-23 Lluis Sanchez Gual <[EMAIL PROTECTED]>
* MonoDevelop.Ide.Gui.Dialogs/SelectReferenceDialog.cs:
Renamed the GAC tab to Packages tab. The references dialog don't
show assemblies in the gac, but from properly registered packages.
* MonoDevelop.Ide.Gui/IdeStartup.cs: Added a better explanation for
a common crash.
Modified: trunk/monodevelop/Core/src/MonoDevelop.Ide/ChangeLog
===================================================================
--- trunk/monodevelop/Core/src/MonoDevelop.Ide/ChangeLog 2006-03-23
11:48:02 UTC (rev 58350)
+++ trunk/monodevelop/Core/src/MonoDevelop.Ide/ChangeLog 2006-03-23
12:45:57 UTC (rev 58351)
@@ -1,3 +1,11 @@
+2006-03-23 Lluis Sanchez Gual <[EMAIL PROTECTED]>
+
+ * MonoDevelop.Ide.Gui.Dialogs/SelectReferenceDialog.cs:
+ Renamed the GAC tab to Packages tab. The references dialog don't
+ show assemblies in the gac, but from properly registered packages.
+ * MonoDevelop.Ide.Gui/IdeStartup.cs: Added a better explanation for
+ a common crash.
+
2006-03-22 Lluis Sanchez Gual <[EMAIL PROTECTED]>
* MonoDevelop.Ide.Gui.Dialogs/AddinLoadErrorDialog.cs:
Modified:
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui/IdeStartup.cs
===================================================================
---
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui/IdeStartup.cs
2006-03-23 11:48:02 UTC (rev 58350)
+++
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui/IdeStartup.cs
2006-03-23 12:45:57 UTC (rev 58351)
@@ -86,7 +86,16 @@
if (Assembly.GetEntryAssembly ().GetName
().Version.Revision != 0)
version += "." + Assembly.GetEntryAssembly
().GetName ().Version.Revision;
- new Gnome.Program (name, version, Gnome.Modules.UI,
remainingArgs);
+ try {
+ new Gnome.Program (name, version,
Gnome.Modules.UI, remainingArgs);
+ } catch (Exception ex) {
+ string msg = GettextCatalog.GetString
("MonoDevelop failed to start.\nIf you installed MonoDevelop using a binary
instaler, take a look at \nhttp://www.mono-project.com/InstallerInstructions
for more info about possible\ncauses of this error.");
+ Console.WriteLine (new string ('#',70));
+ Console.WriteLine (msg);
+ Console.WriteLine (new string ('#',70));
+ Console.WriteLine (ex);
+ return 1;
+ }
// System checks
if (!CheckBug77135 ())
Modified:
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/GacReferencePanel.cs
===================================================================
---
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/GacReferencePanel.cs
2006-03-23 11:48:02 UTC (rev 58350)
+++
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/GacReferencePanel.cs
2006-03-23 12:45:57 UTC (rev 58351)
@@ -26,7 +26,7 @@
{
this.selectDialog = selectDialog;
- store = new TreeStore (typeof (string), typeof
(string), typeof(string), typeof(bool), typeof(string));
+ store = new TreeStore (typeof (string), typeof
(string), typeof(string), typeof(bool), typeof(string), typeof(string));
treeView = new TreeView (store);
TreeViewColumn firstColumn = new TreeViewColumn ();
@@ -41,9 +41,9 @@
firstColumn.AddAttribute (text_render, "text", 0);
treeView.AppendColumn (firstColumn);
+ firstColumn.Resizable = true;
treeView.AppendColumn (GettextCatalog.GetString
("Version"), new CellRendererText (), "text", 1);
- // FIXME: this seems useless
- //treeView.AppendColumn (GettextCatalog.GetString
("Path"), new CellRendererText (), "text", 2);
+ treeView.AppendColumn (GettextCatalog.GetString
("Package"), new CellRendererText (), "text", 5);
store.SetSortColumnId (0, SortType.Ascending);
store.SetSortFunc (0, new TreeIterCompareFunc
(SortTree));
@@ -119,7 +119,10 @@
foreach (string assemblyPath in
Runtime.SystemAssemblyService.AssemblyPaths) {
try {
System.Reflection.AssemblyName an =
System.Reflection.AssemblyName.GetAssemblyName (assemblyPath);
- store.AppendValues (an.Name,
an.Version.ToString (), System.IO.Path.GetFileName (assemblyPath), false,
an.FullName);
+ string package =
Runtime.SystemAssemblyService.GetPackageFromFullName (an.FullName);
+ if (package == "MONO-SYSTEM")
+ package = "mono";
+ store.AppendValues (an.Name,
an.Version.ToString (), System.IO.Path.GetFileName (assemblyPath), false,
an.FullName, package);
}catch {
}
}
Modified:
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/SelectReferenceDialog.cs
===================================================================
---
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/SelectReferenceDialog.cs
2006-03-23 11:48:02 UTC (rev 58350)
+++
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/SelectReferenceDialog.cs
2006-03-23 12:45:57 UTC (rev 58351)
@@ -95,7 +95,7 @@
SetProject (configureProject);
mainBook.RemovePage (mainBook.CurrentPage);
- mainBook.AppendPage (gacRefPanel, new Label
(GettextCatalog.GetString ("Global Assembly Cache")));
+ mainBook.AppendPage (gacRefPanel, new Label
(GettextCatalog.GetString ("Packages")));
mainBook.AppendPage (projectRefPanel, new Label
(GettextCatalog.GetString ("Projects")));
mainBook.AppendPage (new AssemblyReferencePanel (this),
new Label (GettextCatalog.GetString (".Net Assembly")));
ReferencesTreeView.Selection.Changed += new
EventHandler (OnChanged);
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches