You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
200 lines
8.4 KiB
200 lines
8.4 KiB
<?xml version="1.0"?> |
|
<AddIn name = "Hosted SharpDevelop" |
|
author = "Daniel Grunwald" |
|
copyright = "prj:///doc/copyright.txt" |
|
url = "http://www.icsharpcode.net" |
|
description = "SharpDevelop main module" |
|
addInManagerHidden = "true"> |
|
|
|
<Manifest> |
|
<Identity name = "HostedSharpDevelop" version = "@SharpDevelopCoreVersion"/> |
|
</Manifest> |
|
|
|
<Runtime> |
|
<Import assembly=":ICSharpCode.SharpDevelop"> |
|
<!-- SharpDevelop defines more conditions and doozers, we just --> |
|
<!-- import those we need here. --> |
|
<ConditionEvaluator name="WindowActive" class="ICSharpCode.SharpDevelop.WindowActiveConditionEvaluator"/> |
|
<ConditionEvaluator name="ActiveWindowState" class="ICSharpCode.SharpDevelop.ActiveWindowStateConditionEvaluator"/> |
|
<ConditionEvaluator name="OpenWindowState" class="ICSharpCode.SharpDevelop.OpenWindowStateConditionEvaluator"/> |
|
|
|
<Doozer name="OptionPanel" class="ICSharpCode.SharpDevelop.OptionPanelDoozer"/> |
|
<Doozer name="DisplayBinding" class="ICSharpCode.SharpDevelop.DisplayBindingDoozer"/> |
|
</Import> |
|
</Runtime> |
|
|
|
<!-- This is the minimum AddIn required to use SharpDevelop --> |
|
|
|
<!-- Every Application should provide this extension point, used by many addins (e.g. AddInManager) --> |
|
<Path name = "/Workspace/Tools"></Path> |
|
|
|
<!-- REQUIRED to load files --> |
|
<Path name = "/SharpDevelop/Workbench/Combine/FileFilter"> |
|
<FileFilter id = "AllFiles" |
|
name = "${res:SharpDevelop.FileFilter.AllFiles}" |
|
extensions = "*.*"/> |
|
</Path> |
|
|
|
<!-- REQUIRED for the open and save file dialogs --> |
|
<Path name = "/SharpDevelop/Workbench/FileFilter"> |
|
<FileFilter id = "AllFiles" |
|
name = "${res:SharpDevelop.FileFilter.AllFiles}" |
|
extensions = "*.*"/> |
|
</Path> |
|
|
|
<!-- REQUIRED to open views --> |
|
<Path name = "/SharpDevelop/Workbench/DisplayBindings"> |
|
</Path> |
|
|
|
<!-- REQUIRED to open views --> |
|
<Path name = "/SharpDevelop/Workbench/OpenFileTab/ContextMenu"> |
|
<MenuItem id = "Close" |
|
label = "${res:OpenFileTabEventHandler.ContextMenu.Close}" |
|
icon = "Icons.16x16.CloseFileIcon" |
|
class = "ICSharpCode.SharpDevelop.Commands.TabStrip.CloseFileTab"/> |
|
<MenuItem id = "CloseAll" |
|
icon = "Icons.16x16.CloseAllDocuments" |
|
label = "${res:XML.MainMenu.FileMenu.CloseAll}" |
|
class = "ICSharpCode.SharpDevelop.Commands.CloseAllWindows" /> |
|
<MenuItem id = "CloseAllButThis" |
|
label = "${res:OpenFileTabEventHandler.ContextMenu.CloseAllButThis}" |
|
class = "ICSharpCode.SharpDevelop.Commands.TabStrip.CloseAllButThisFileTab" /> |
|
</Path> |
|
|
|
<!-- required for main menu options command --> |
|
<Path name = "/SharpDevelop/Dialogs/OptionsDialog"> |
|
<OptionPanel id = "ToolsOptions" |
|
label = "${res:Dialog.Options.IDEOptions.ToolsOptionsText}"> |
|
<OptionPanel id = "ExternalTools" |
|
label = "${res:Dialog.Options.ExternalToolsText}" |
|
class = "ICSharpCode.SharpDevelop.Gui.OptionPanels.ExternalToolPane"/> |
|
</OptionPanel> |
|
</Path> |
|
|
|
<!-- Main menu --> |
|
<Path name = "/SharpDevelop/Workbench/MainMenu"> |
|
<MenuItem id = "File" label = "${res:XML.MainMenu.FileMenu}" type="Menu"> |
|
<MenuItem id = "File" |
|
label = "${res:XML.MainMenu.FileMenu.New} ${res:XML.MainMenu.FileMenu.New.File}" |
|
icon = "Icons.16x16.NewDocumentIcon" |
|
shortcut = "Control|N" |
|
class = "ICSharpCode.SharpDevelop.Commands.CreateNewFile"/> |
|
|
|
<MenuItem id = "File" |
|
label = "${res:XML.MainMenu.FileMenu.Open} ${res:XML.MainMenu.FileMenu.Open.File}" |
|
icon = "Icons.16x16.OpenFileIcon" |
|
shortcut = "Control|O" |
|
class = "ICSharpCode.SharpDevelop.Commands.OpenFile"/> |
|
|
|
<Condition name = "WindowActive" activewindow="*" action="Disable"> |
|
<MenuItem id = "CloseFile" |
|
label = "${res:XML.MainMenu.FileMenu.Close} ${res:XML.MainMenu.FileMenu.Close.File}" |
|
icon = "Icons.16x16.CloseFileIcon" |
|
shortcut = "Control|F4" |
|
class ="ICSharpCode.SharpDevelop.Commands.CloseFile"/> |
|
</Condition> |
|
|
|
<MenuItem id = "SaveSeparator" type = "Separator" /> |
|
|
|
<Condition name = "ActiveWindowState" windowstate="Dirty, Untitled" nowindowstate="ViewOnly" action="Disable"> |
|
<MenuItem id = "Save" |
|
label = "${res:XML.MainMenu.FileMenu.Save}" |
|
icon = "Icons.16x16.SaveIcon" |
|
shortcut = "Control|S" |
|
class = "ICSharpCode.SharpDevelop.Commands.SaveFile"/> |
|
</Condition> |
|
|
|
<Condition name = "ActiveWindowState" windowstate="None" nowindowstate="ViewOnly" action="Disable"> |
|
<MenuItem id = "SaveAs" |
|
label = "${res:XML.MainMenu.FileMenu.SaveAs}" |
|
class = "ICSharpCode.SharpDevelop.Commands.SaveFileAs"/> |
|
</Condition> |
|
|
|
<Condition name = "OpenWindowState" openwindowstate="Dirty" action="Disable"> |
|
<MenuItem id = "SaveAll" |
|
label = "${res:XML.MainMenu.FileMenu.SaveAll}" |
|
icon = "Icons.16x16.SaveAllIcon" |
|
shortcut = "Control|Shift|S" |
|
class = "ICSharpCode.SharpDevelop.Commands.SaveAllFiles"/> |
|
</Condition> |
|
|
|
<MenuItem id = "ExitSeparator" type = "Separator" /> |
|
<MenuItem id = "Exit" |
|
label = "${res:XML.MainMenu.FileMenu.Exit}" |
|
icon = "Icons.16x16.CancelIcon" |
|
class = "ICSharpCode.SharpDevelop.Commands.ExitWorkbenchCommand" /> |
|
</MenuItem> <!-- END File menu --> |
|
|
|
<MenuItem id = "Edit" label = "${res:XML.MainMenu.EditMenu}" type="Menu"> |
|
<MenuItem id = "Undo" |
|
label = "${res:XML.MainMenu.EditMenu.Undo}" |
|
icon = "Icons.16x16.UndoIcon" |
|
type = "Item" |
|
shortcut = "Control|Z" |
|
command = "Undo"/> |
|
<MenuItem id = "Redo" |
|
label = "${res:XML.MainMenu.EditMenu.Redo}" |
|
icon = "Icons.16x16.RedoIcon" |
|
type = "Item" |
|
shortcut = "Control|Y" |
|
command = "Redo"/> |
|
<MenuItem id = "Separator1" type = "Separator" /> |
|
<MenuItem id = "Cut" |
|
label = "${res:XML.MainMenu.EditMenu.Cut}" |
|
icon = "Icons.16x16.CutIcon" |
|
type = "Item" |
|
shortcut = "Control|X" |
|
command = "Cut"/> |
|
<MenuItem id = "Copy" |
|
label = "${res:XML.MainMenu.EditMenu.Copy}" |
|
icon = "Icons.16x16.CopyIcon" |
|
type = "Item" |
|
shortcut = "Control|C" |
|
command = "Copy"/> |
|
<MenuItem id = "Paste" |
|
label = "${res:XML.MainMenu.EditMenu.Paste}" |
|
icon = "Icons.16x16.PasteIcon" |
|
type = "Item" |
|
shortcut = "Control|V" |
|
command = "Paste"/> |
|
<MenuItem id = "Delete" |
|
label = "${res:XML.MainMenu.EditMenu.Delete}" |
|
icon = "Icons.16x16.DeleteIcon" |
|
type = "Item" |
|
command = "Delete"/> |
|
<MenuItem id = "SelectAll" |
|
label = "${res:XML.MainMenu.EditMenu.SelectAll}" |
|
type = "Item" |
|
shortcut = "Control|A" |
|
command = "SelectAll"/> |
|
</MenuItem> <!-- end EDIT menu --> |
|
|
|
<MenuItem id = "Tools" label = "${res:XML.MainMenu.ToolMenu}" type="Menu"> |
|
<!-- configurable tool list (Options Dialog > External Tools) --> |
|
<MenuItem id = "ToolBuilder" type="Builder" class = "ICSharpCode.SharpDevelop.Commands.ToolMenuBuilder" /> |
|
|
|
<MenuItem id = "Separator1" type = "Separator" /> |
|
|
|
<!-- AddIns can add tool commands here--> |
|
<Include id = "ToolList" path = "/Workspace/Tools" /> |
|
|
|
<MenuItem id = "LastSeparator" type = "Separator" /> |
|
|
|
<MenuItem id = "Options" |
|
label = "${res:XML.MainMenu.ToolMenu.Options}" |
|
icon = "Icons.16x16.Options" |
|
class = "ICSharpCode.SharpDevelop.Commands.OptionsCommand"/> |
|
</MenuItem> |
|
</Path> |
|
|
|
<Path name="/SharpDevelop/Workbench/ToolBar/Standard"> |
|
<ToolbarItem id = "New" |
|
icon = "Icons.16x16.NewDocumentIcon" |
|
tooltip = "${res:XML.MainMenu.FileMenu.New.File.Description}" |
|
class = "ICSharpCode.SharpDevelop.Commands.CreateNewFile"/> |
|
<ToolbarItem id = "Open" |
|
icon = "Icons.16x16.OpenFileIcon" |
|
tooltip = "${res:XML.MainMenu.FileMenu.Open.File.Description}" |
|
class = "ICSharpCode.SharpDevelop.Commands.OpenFile"/> |
|
</Path> |
|
</AddIn>
|
|
|