Author: lluis
Date: 2006-01-13 12:53:31 -0500 (Fri, 13 Jan 2006)
New Revision: 55526
Modified:
trunk/monodevelop/Extras/MonoDevelop.SourceEditor/ChangeLog
trunk/monodevelop/Extras/MonoDevelop.SourceEditor/MonoDevelop.SourceEditor.Gui/SourceEditorView.cs
trunk/monodevelop/Extras/MonoDevelop.SourceEditor/MonoDevelop.SourceEditor.addin.xml
Log:
2006-01-13 Lluis Sanchez Gual <[EMAIL PROTECTED]>
* MonoDevelop.SourceEditor.addin.xml:
* MonoDevelop.SourceEditor.Gui/SourceEditorView.cs: Made extensible the
context menu of the editor.
Modified: trunk/monodevelop/Extras/MonoDevelop.SourceEditor/ChangeLog
===================================================================
--- trunk/monodevelop/Extras/MonoDevelop.SourceEditor/ChangeLog 2006-01-13
17:47:43 UTC (rev 55525)
+++ trunk/monodevelop/Extras/MonoDevelop.SourceEditor/ChangeLog 2006-01-13
17:53:31 UTC (rev 55526)
@@ -1,3 +1,9 @@
+2006-01-13 Lluis Sanchez Gual <[EMAIL PROTECTED]>
+
+ * MonoDevelop.SourceEditor.addin.xml:
+ * MonoDevelop.SourceEditor.Gui/SourceEditorView.cs: Made extensible the
+ context menu of the editor.
+
2006-01-10 Lluis Sanchez Gual <[EMAIL PROTECTED]>
* MonoDevelop.SourceEditor.Gui/SourceEditorView.cs: Track api changes.
Modified:
trunk/monodevelop/Extras/MonoDevelop.SourceEditor/MonoDevelop.SourceEditor.Gui/SourceEditorView.cs
===================================================================
---
trunk/monodevelop/Extras/MonoDevelop.SourceEditor/MonoDevelop.SourceEditor.Gui/SourceEditorView.cs
2006-01-13 17:47:43 UTC (rev 55525)
+++
trunk/monodevelop/Extras/MonoDevelop.SourceEditor/MonoDevelop.SourceEditor.Gui/SourceEditorView.cs
2006-01-13 17:53:31 UTC (rev 55526)
@@ -140,6 +140,16 @@
return base.OnButtonPressEvent (e);
}
+ protected override void OnPopulatePopup (Menu menu)
+ {
+ CommandEntrySet cset =
IdeApp.CommandService.CreateCommandEntrySet
("/SharpDevelop/ViewContent/DefaultTextEditor/ContextMenu");
+ if (cset.Count > 0) {
+ cset.AddItem (Command.Separator);
+ IdeApp.CommandService.InsertOptions (menu,
cset, 0);
+ }
+ base.OnPopulatePopup (menu);
+ }
+
public void ShowBreakpointAt (int linenumber)
{
if (!buf.IsMarked (linenumber,
SourceMarkerType.BreakpointMark))
Modified:
trunk/monodevelop/Extras/MonoDevelop.SourceEditor/MonoDevelop.SourceEditor.addin.xml
===================================================================
---
trunk/monodevelop/Extras/MonoDevelop.SourceEditor/MonoDevelop.SourceEditor.addin.xml
2006-01-13 17:47:43 UTC (rev 55525)
+++
trunk/monodevelop/Extras/MonoDevelop.SourceEditor/MonoDevelop.SourceEditor.addin.xml
2006-01-13 17:53:31 UTC (rev 55526)
@@ -97,24 +97,14 @@
</Extension>
<Extension path =
"/SharpDevelop/ViewContent/DefaultTextEditor/ContextMenu">
- <CommandItem id = "MonoDevelop.Commands.EditCommands.Cut" />
- <CommandItem id = "MonoDevelop.Commands.EditCommands.Copy" />
- <CommandItem id = "MonoDevelop.Commands.EditCommands.Paste" />
- <CommandItem id = "MonoDevelop.Commands.EditCommands.Delete" />
+ <CommandItem id = "MonoDevelop.Ide.Commands.FileCommands.Save"
/>
+ <CommandItem id =
"MonoDevelop.Ide.Commands.FileCommands.SaveAs" />
+ <CommandItem id =
"MonoDevelop.Ide.Commands.FileCommands.CloseFile" />
<SeparatorItem id = "Separator1" />
- <CommandItem id = "MonoDevelop.Commands.FileCommands.Save" />
- <CommandItem id = "MonoDevelop.Commands.FileCommands.SaveAs" />
- <CommandItem id = "MonoDevelop.Commands.FileCommands.CloseFile"
/>
- <SeparatorItem id = "Separator2" _label = "-" />
- <CommandItem id =
"MonoDevelop.Commands.EditCommands.CommentCode" />
- <CommandItem id =
"MonoDevelop.Commands.EditCommands.UncommentCode" />
- <CommandItem id =
"MonoDevelop.Commands.EditCommands.IndentSelection" />
- <CommandItem id =
"MonoDevelop.Commands.EditCommands.UnIndentSelection" />
- <ItemSet id = "FileMode" _label = "Highlighting Mode">
- <CommandItem id =
"MonoDevelop.SourceEditor.EditorCommands.HighlightingTypeList" />
- </ItemSet>
- <SeparatorItem id = "Separator3" />
- <CommandItem id =
"MonoDevelop.SourceEditor.EditorCommands.ShowBufferOptions" />
+ <CommandItem id =
"MonoDevelop.Ide.Commands.EditCommands.CommentCode" />
+ <CommandItem id =
"MonoDevelop.Ide.Commands.EditCommands.UncommentCode" />
+ <CommandItem id =
"MonoDevelop.Ide.Commands.EditCommands.IndentSelection" />
+ <CommandItem id =
"MonoDevelop.Ide.Commands.EditCommands.UnIndentSelection" />
</Extension>
<Extension path = "/SharpDevelop/Workbench/ToolBar">
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches