Author: fejj
Date: 2007-07-05 17:19:00 -0400 (Thu, 05 Jul 2007)
New Revision: 81438
Modified:
trunk/monodevelop/Core/src/MonoDevelop.Ide/ChangeLog
trunk/monodevelop/Core/src/MonoDevelop.Ide/Makefile.am
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Commands/RefactoryCommands.cs
Log:
2007-07-05 Jeffrey Stedfast <[EMAIL PROTECTED]>
* MonoDevelop.Ide.Commands/RefactoryCommands.cs: Differentiate
between Class, Enum, and Struct.
Modified: trunk/monodevelop/Core/src/MonoDevelop.Ide/ChangeLog
===================================================================
--- trunk/monodevelop/Core/src/MonoDevelop.Ide/ChangeLog 2007-07-05
21:15:20 UTC (rev 81437)
+++ trunk/monodevelop/Core/src/MonoDevelop.Ide/ChangeLog 2007-07-05
21:19:00 UTC (rev 81438)
@@ -1,3 +1,8 @@
+2007-07-05 Jeffrey Stedfast <[EMAIL PROTECTED]>
+
+ * MonoDevelop.Ide.Commands/RefactoryCommands.cs: Differentiate
+ between Class, Enum, and Struct.
+
2007-07-05 Mike Krüger <[EMAIL PROTECTED]>
* MonoDevelop.Ide.Gui.Pads/TreeViewPad.cs,
Modified: trunk/monodevelop/Core/src/MonoDevelop.Ide/Makefile.am
===================================================================
--- trunk/monodevelop/Core/src/MonoDevelop.Ide/Makefile.am 2007-07-05
21:15:20 UTC (rev 81437)
+++ trunk/monodevelop/Core/src/MonoDevelop.Ide/Makefile.am 2007-07-05
21:19:00 UTC (rev 81438)
@@ -82,8 +82,8 @@
MonoDevelop.Ide.ExternalTools/ExternalTool.cs \
MonoDevelop.Ide.ExternalTools/ToolLoader.cs \
MonoDevelop.Ide.Gui.BrowserDisplayBinding/BrowserDisplayBinding.cs \
+ MonoDevelop.Ide.Gui.BrowserDisplayBinding/HTMLInterfaces.cs \
MonoDevelop.Ide.Gui.BrowserDisplayBinding/HtmlViewPane.cs \
- MonoDevelop.Ide.Gui.BrowserDisplayBinding/HTMLInterfaces.cs \
MonoDevelop.Ide.Gui.Content/IBookmarkBuffer.cs \
MonoDevelop.Ide.Gui.Content/IClipboardHandler.cs \
MonoDevelop.Ide.Gui.Content/ICodeStyleOperations.cs \
Modified:
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Commands/RefactoryCommands.cs
===================================================================
---
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Commands/RefactoryCommands.cs
2007-07-05 21:15:20 UTC (rev 81437)
+++
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Commands/RefactoryCommands.cs
2007-07-05 21:19:00 UTC (rev 81438)
@@ -197,9 +197,8 @@
bool canRename = false;
string txt;
- if (IdeApp.ProjectOperations.CanJumpToDeclaration
(item)) {
+ if (IdeApp.ProjectOperations.CanJumpToDeclaration
(item))
ciset.CommandInfos.Add
(GettextCatalog.GetString ("_Go to declaration"), new RefactoryOperation
(refactorer.GoToDeclaration));
- }
if ((item is IMember) && !(item is IClass))
ciset.CommandInfos.Add
(GettextCatalog.GetString ("_Find references"), new RefactoryOperation
(refactorer.FindReferences));
@@ -209,9 +208,9 @@
if ((item is LocalVariable) || (item is IParameter))
canRename = true;
else if (item is IClass)
- canRename = ((IClass)item).SourceProject !=
null;
+ canRename = ((IClass) item).SourceProject !=
null;
else if (item is IMember) {
- IClass cls = ((IMember)item).DeclaringType;
+ IClass cls = ((IMember) item).DeclaringType;
canRename = cls != null && cls.SourceProject !=
null;
}
@@ -223,7 +222,11 @@
if (item is IClass) {
IClass cls = (IClass) item;
- if (cls.ClassType == ClassType.Interface)
+ if (cls.ClassType == ClassType.Enum)
+ txt = GettextCatalog.GetString ("Enum
<b>{0}</b>", itemName);
+ else if (cls.ClassType == ClassType.Struct)
+ txt = GettextCatalog.GetString ("Struct
<b>{0}</b>", itemName);
+ else if (cls.ClassType == ClassType.Interface)
txt = GettextCatalog.GetString
("Interface <b>{0}</b>", itemName);
else
txt = GettextCatalog.GetString ("Class
<b>{0}</b>", itemName);
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches