Browse Source

Fixed SD2-778: Indent (Ctrl+I) should be put into main menu

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.0@1344 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Daniel Grunwald 20 years ago
parent
commit
ae481755b4
  1. 60
      AddIns/ICSharpCode.SharpDevelop.addin

60
AddIns/ICSharpCode.SharpDevelop.addin

@ -539,8 +539,8 @@
<Condition name = "Ownerstate" ownerstate = "Missing"/> <Condition name = "Ownerstate" ownerstate = "Missing"/>
</Not> </Not>
<MenuItem id = "AddWebReference" <MenuItem id = "AddWebReference"
label = "${res:ProjectComponent.ContextMenu.AddWebReference}" label = "${res:ProjectComponent.ContextMenu.AddWebReference}"
class = "ICSharpCode.SharpDevelop.Project.Commands.AddWebReferenceToProject"/> class = "ICSharpCode.SharpDevelop.Project.Commands.AddWebReferenceToProject"/>
<MenuItem id = "AddSeparator" type = "Separator"/> <MenuItem id = "AddSeparator" type = "Separator"/>
<MenuItem id = "Delete" <MenuItem id = "Delete"
label = "${res:XML.MainMenu.EditMenu.Delete}" label = "${res:XML.MainMenu.EditMenu.Delete}"
@ -567,9 +567,9 @@
<Condition name = "Ownerstate" ownerstate = "Missing"/> <Condition name = "Ownerstate" ownerstate = "Missing"/>
</Not> </Not>
<MenuItem id = "Refresh" <MenuItem id = "Refresh"
label = "${res:ProjectComponent.ContextMenu.RefreshWebReference}" label = "${res:ProjectComponent.ContextMenu.RefreshWebReference}"
type = "Item" type = "Item"
class = "ICSharpCode.SharpDevelop.Project.Commands.RefreshWebReference"/> class = "ICSharpCode.SharpDevelop.Project.Commands.RefreshWebReference"/>
<MenuItem id = "RefreshSeparator" type = "Separator" /> <MenuItem id = "RefreshSeparator" type = "Separator" />
<MenuItem id = "Delete" <MenuItem id = "Delete"
label = "${res:XML.MainMenu.EditMenu.Delete}" label = "${res:XML.MainMenu.EditMenu.Delete}"
@ -582,9 +582,9 @@
class = "ICSharpCode.SharpDevelop.Project.Commands.RenameEntryEvent"/> class = "ICSharpCode.SharpDevelop.Project.Commands.RenameEntryEvent"/>
<MenuItem id = "PropertiesSeparator" type = "Separator" /> <MenuItem id = "PropertiesSeparator" type = "Separator" />
<MenuItem id = "Properties" <MenuItem id = "Properties"
icon = "Icons.16x16.PropertiesIcon" icon = "Icons.16x16.PropertiesIcon"
label = "${res:XML.MainMenu.FormatMenu.ShowProperties}" label = "${res:XML.MainMenu.FormatMenu.ShowProperties}"
class = "ICSharpCode.SharpDevelop.Project.Commands.ShowPropertiesForNode"/> class = "ICSharpCode.SharpDevelop.Project.Commands.ShowPropertiesForNode"/>
</ComplexCondition> </ComplexCondition>
</Path> </Path>
@ -933,9 +933,9 @@
class = "ICSharpCode.SharpDevelop.Commands.TabStrip.SaveFileAsTab"/> class = "ICSharpCode.SharpDevelop.Commands.TabStrip.SaveFileAsTab"/>
<Condition name = "OpenWindowState" openwindowstate="Dirty" action="Disable"> <Condition name = "OpenWindowState" openwindowstate="Dirty" action="Disable">
<MenuItem id = "SaveAll" <MenuItem id = "SaveAll"
icon = "Icons.16x16.SaveAllIcon" icon = "Icons.16x16.SaveAllIcon"
label = "${res:XML.MainMenu.FileMenu.SaveAll.Description}" label = "${res:XML.MainMenu.FileMenu.SaveAll.Description}"
class = "ICSharpCode.SharpDevelop.Commands.SaveAllFiles"/> class = "ICSharpCode.SharpDevelop.Commands.SaveAllFiles"/>
</Condition> </Condition>
<MenuItem id = "SaveSeparator" type = "Separator" /> <MenuItem id = "SaveSeparator" type = "Separator" />
<ComplexCondition action="Disable"> <ComplexCondition action="Disable">
@ -1007,8 +1007,8 @@
<Condition name = "Ownerstate" ownerstate="CanBeRenamed" action="Disable"> <Condition name = "Ownerstate" ownerstate="CanBeRenamed" action="Disable">
<MenuItem id = "RenameTab" <MenuItem id = "RenameTab"
label = "${res:SideBarComponent.ContextMenu.RenameTab}" label = "${res:SideBarComponent.ContextMenu.RenameTab}"
class = "ICSharpCode.SharpDevelop.Commands.SideBarRenameTabHeader"/> class = "ICSharpCode.SharpDevelop.Commands.SideBarRenameTabHeader"/>
</Condition> </Condition>
<MenuItem id = "Separator1" type = "Separator" /> <MenuItem id = "Separator1" type = "Separator" />
@ -1035,27 +1035,27 @@
<Path name = "/SharpDevelop/Workbench/SharpDevelopSideBar/SideTab/ContextMenu"> <Path name = "/SharpDevelop/Workbench/SharpDevelopSideBar/SideTab/ContextMenu">
<Condition name = "Ownerstate" ownerstate="TabCanBeDeleted" action="Disable"> <Condition name = "Ownerstate" ownerstate="TabCanBeDeleted" action="Disable">
<MenuItem id = "DeleteTabItem" <MenuItem id = "DeleteTabItem"
label = "${res:SideBarComponent.ContextMenu.DeleteTabItem}" label = "${res:SideBarComponent.ContextMenu.DeleteTabItem}"
class = "ICSharpCode.SharpDevelop.Commands.SideBarDeleteTabItem"/> class = "ICSharpCode.SharpDevelop.Commands.SideBarDeleteTabItem"/>
</Condition> </Condition>
<Condition name = "Ownerstate" ownerstate="CanBeRenamed" action="Disable"> <Condition name = "Ownerstate" ownerstate="CanBeRenamed" action="Disable">
<MenuItem id = "RenameTabItem" <MenuItem id = "RenameTabItem"
label = "${res:SideBarComponent.ContextMenu.RenameTabItem}" label = "${res:SideBarComponent.ContextMenu.RenameTabItem}"
class = "ICSharpCode.SharpDevelop.Commands.SideBarRenameTabItem" /> class = "ICSharpCode.SharpDevelop.Commands.SideBarRenameTabItem" />
</Condition> </Condition>
<MenuItem id = "Separator1" type = "Separator" /> <MenuItem id = "Separator1" type = "Separator" />
<Condition name = "Ownerstate" ownerstate="CanMoveItemUp" action="Disable"> <Condition name = "Ownerstate" ownerstate="CanMoveItemUp" action="Disable">
<MenuItem id = "MoveItemUp" <MenuItem id = "MoveItemUp"
label = "${res:SideBarComponent.ContextMenu.MoveTabItemUp}" label = "${res:SideBarComponent.ContextMenu.MoveTabItemUp}"
class = "ICSharpCode.SharpDevelop.Commands.SideBarMoveActiveItemUp"/> class = "ICSharpCode.SharpDevelop.Commands.SideBarMoveActiveItemUp"/>
</Condition> </Condition>
<Condition name = "Ownerstate" ownerstate="CanMoveItemDown" action="Disable"> <Condition name = "Ownerstate" ownerstate="CanMoveItemDown" action="Disable">
<MenuItem id = "MoveItemDown" <MenuItem id = "MoveItemDown"
label = "${res:SideBarComponent.ContextMenu.MoveTabItemDown}" label = "${res:SideBarComponent.ContextMenu.MoveTabItemDown}"
class = "ICSharpCode.SharpDevelop.Commands.SideBarMoveActiveItemDown"/> class = "ICSharpCode.SharpDevelop.Commands.SideBarMoveActiveItemDown"/>
</Condition> </Condition>
<Include id="CommonContextMenu" path="/SharpDevelop/Workbench/SharpDevelopSideBar/CommonContextMenu"/> <Include id="CommonContextMenu" path="/SharpDevelop/Workbench/SharpDevelopSideBar/CommonContextMenu"/>
@ -1276,8 +1276,8 @@
label = "${res:ProjectComponent.ContextMenu.AddReference}" label = "${res:ProjectComponent.ContextMenu.AddReference}"
class = "ICSharpCode.SharpDevelop.Project.Commands.AddReferenceToProject"/> class = "ICSharpCode.SharpDevelop.Project.Commands.AddReferenceToProject"/>
<MenuItem id = "AddWebReference" <MenuItem id = "AddWebReference"
label = "${res:ProjectComponent.ContextMenu.AddWebReference}" label = "${res:ProjectComponent.ContextMenu.AddWebReference}"
class = "ICSharpCode.SharpDevelop.Project.Commands.AddWebReferenceToProject"/> class = "ICSharpCode.SharpDevelop.Project.Commands.AddWebReferenceToProject"/>
<MenuItem id = "AddSeparator" type = "Separator"/> <MenuItem id = "AddSeparator" type = "Separator"/>
<Include id = "ProjectActions" path="/SharpDevelop/Pads/ProjectBrowser/ContextMenu/ProjectActions"/> <Include id = "ProjectActions" path="/SharpDevelop/Pads/ProjectBrowser/ContextMenu/ProjectActions"/>
<MenuItem id = "Separator2" type = "Separator" /> <MenuItem id = "Separator2" type = "Separator" />
@ -1576,7 +1576,7 @@
<!-- File extensions that should not be searched since they are not opened <!-- File extensions that should not be searched since they are not opened
in a text editor --> in a text editor -->
<Path name="/AddIns/DefaultTextEditor/Search/ExcludedFileExtensions"> <Path name="/AddIns/DefaultTextEditor/Search/ExcludedFileExtensions">
<String text=".resx"/> <String text=".resx"/>
<String text=".resources"/> <String text=".resources"/>
</Path> </Path>
@ -1651,10 +1651,6 @@
icon = "Icons.16x16.CommentRegion" icon = "Icons.16x16.CommentRegion"
label = "${res:XML.TextAreaContextMenu.CommentUncommentSelection}" label = "${res:XML.TextAreaContextMenu.CommentUncommentSelection}"
class= "ICSharpCode.SharpDevelop.DefaultEditor.Commands.CommentRegion"/> class= "ICSharpCode.SharpDevelop.DefaultEditor.Commands.CommentRegion"/>
<!-- <MenuItem id = "Uncomment"
icon = "Icons.16x16.UnCommentRegion"
label = "${res:XML.TextAreaContextMenu.UncommentSelection}"
class= "ICSharpCode.SharpDevelop.DefaultEditor.Commands.UncommentRegion"/>-->
<MenuItem id = "Indent" <MenuItem id = "Indent"
label = "${res:XML.TextAreaContextMenu.Indent}" label = "${res:XML.TextAreaContextMenu.Indent}"
shortcut = "Control|I" shortcut = "Control|I"
@ -1811,6 +1807,15 @@
<MenuItem id = "LeadingSpaces2Tabs" <MenuItem id = "LeadingSpaces2Tabs"
label = "${res:XML.MainMenu.EditMenu.FormatMenu.LdSpace2Tab}" label = "${res:XML.MainMenu.EditMenu.FormatMenu.LdSpace2Tab}"
class ="ICSharpCode.SharpDevelop.DefaultEditor.Commands.ConvertLeadingSpacesToTabs"/> class ="ICSharpCode.SharpDevelop.DefaultEditor.Commands.ConvertLeadingSpacesToTabs"/>
<MenuItem id = "Separator4" type = "Separator" />
<MenuItem id = "Comment"
icon = "Icons.16x16.CommentRegion"
label = "${res:XML.TextAreaContextMenu.CommentUncommentSelection}"
class= "ICSharpCode.SharpDevelop.DefaultEditor.Commands.CommentRegion"/>
<MenuItem id = "Indent"
label = "${res:XML.TextAreaContextMenu.Indent}"
shortcut = "Control|I"
class = "ICSharpCode.SharpDevelop.DefaultEditor.Commands.IndentSelection" />
</Condition> </Condition>
</MenuItem> </MenuItem>
<MenuItem insertafter = "Format" insertbefore = "Separator3" id = "Folding" label = "${res:XML.MainMenu.EditMenu.FoldingMenu}" type="Menu"> <MenuItem insertafter = "Format" insertbefore = "Separator3" id = "Folding" label = "${res:XML.MainMenu.EditMenu.FoldingMenu}" type="Menu">
@ -1930,7 +1935,6 @@
<Path name = "/AddIns/DefaultTextEditor/EditActions"> <Path name = "/AddIns/DefaultTextEditor/EditActions">
<EditAction id = "TemplateCompletion" class = "ICSharpCode.SharpDevelop.DefaultEditor.Actions.TemplateCompletion" keys = "Control|J"/> <EditAction id = "TemplateCompletion" class = "ICSharpCode.SharpDevelop.DefaultEditor.Actions.TemplateCompletion" keys = "Control|J"/>
<EditAction id = "CodeCompletionPopup" class = "ICSharpCode.SharpDevelop.DefaultEditor.Actions.CodeCompletionPopup" keys = "Control|Space"/> <EditAction id = "CodeCompletionPopup" class = "ICSharpCode.SharpDevelop.DefaultEditor.Actions.CodeCompletionPopup" keys = "Control|Space"/>
<EditAction id = "IndentSelection" class = "ICSharpCode.TextEditor.Actions.IndentSelection" keys = "Control|I"/>
<EditAction id = "GoToDefinition" class = "ICSharpCode.SharpDevelop.DefaultEditor.Actions.GoToDefinition" keys = "Control|Enter"/> <EditAction id = "GoToDefinition" class = "ICSharpCode.SharpDevelop.DefaultEditor.Actions.GoToDefinition" keys = "Control|Enter"/>
</Path> </Path>

Loading…
Cancel
Save