Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Hutchinson <m.j.hutchinson@gmail.com>2012-07-21 03:41:37 +0400
committerMichael Hutchinson <m.j.hutchinson@gmail.com>2012-07-21 04:26:11 +0400
commit76c0bf26387d1d3fda36e10ec65686d72fd479d5 (patch)
treeefb2a1337f46eee7c1466fc11719cb7a3fc74442 /main/src/addins/MacPlatform/MacPlatform.addin.xml
parent2ffb9eddb8101320effb4890a0cbc9fbe4b059c6 (diff)
Make the Mac application menu extensible
Diffstat (limited to 'main/src/addins/MacPlatform/MacPlatform.addin.xml')
-rw-r--r--main/src/addins/MacPlatform/MacPlatform.addin.xml66
1 files changed, 41 insertions, 25 deletions
diff --git a/main/src/addins/MacPlatform/MacPlatform.addin.xml b/main/src/addins/MacPlatform/MacPlatform.addin.xml
index e9e4928402..059e68f534 100644
--- a/main/src/addins/MacPlatform/MacPlatform.addin.xml
+++ b/main/src/addins/MacPlatform/MacPlatform.addin.xml
@@ -19,38 +19,54 @@
</Dependencies>
<Extension path = "/MonoDevelop/Core/PlatformService">
- <Class id = "PlatformService"
- class = "MonoDevelop.MacIntegration.MacPlatformService"/>
+ <Condition id = "Platform" value = "mac">
+ <Class id = "PlatformService"
+ class = "MonoDevelop.MacIntegration.MacPlatformService"/>
+ </Condition>
</Extension>
<Extension path = "/MonoDevelop/Ide/Commands/Window">
- <Command id = "MonoDevelop.MacIntegration.MacIntegrationCommands.MinimizeWindow"
- defaultHandler = "MonoDevelop.MacIntegration.MacMinimizeWindowHandler"
- _label = "_Minimize"
- _description = "Minimize the window"
- macShortcut = "Meta|M" />
- <Command id = "MonoDevelop.MacIntegration.MacIntegrationCommands.HideWindow"
- defaultHandler = "MonoDevelop.MacIntegration.MacHideWindowHandler"
- _label = "_Hide MonoDevelop"
- _description = "Hide MonoDevelop"
- macShortcut = "Meta|H" />
- <Command id = "MonoDevelop.MacIntegration.MacIntegrationCommands.HideOthers"
- defaultHandler = "MonoDevelop.MacIntegration.MacHideOthersHandler"
- _label = "_Hide Others"
- _description = "Hide other windows"
- macShortcut = "Meta|Alt|H" />
+ <Condition id = "Platform" value = "mac">
+ <Command id = "MonoDevelop.MacIntegration.MacIntegrationCommands.MinimizeWindow"
+ defaultHandler = "MonoDevelop.MacIntegration.MacMinimizeWindowHandler"
+ _label = "_Minimize"
+ _description = "Minimize the window"
+ macShortcut = "Meta|M" />
+ <Command id = "MonoDevelop.MacIntegration.MacIntegrationCommands.HideWindow"
+ defaultHandler = "MonoDevelop.MacIntegration.MacHideWindowHandler"
+ _label = "_Hide Application"
+ _description = "Hide Application"
+ macShortcut = "Meta|H" />
+ <Command id = "MonoDevelop.MacIntegration.MacIntegrationCommands.HideOthers"
+ defaultHandler = "MonoDevelop.MacIntegration.MacHideOthersHandler"
+ _label = "_Hide Others"
+ _description = "Hide other windows"
+ macShortcut = "Meta|Alt|H" />
+ </Condition>
</Extension>
<Extension path = "/MonoDevelop/Ide/MainMenu/Window">
- <CommandItem id = "MonoDevelop.MacIntegration.MacIntegrationCommands.MinimizeWindow"
- insertbefore = "MonoDevelop.Ide.Commands.WindowCommands.NextWindow" />
+ <Condition id = "Platform" value = "mac">
+ <CommandItem id = "MonoDevelop.MacIntegration.MacIntegrationCommands.MinimizeWindow"
+ insertbefore = "MonoDevelop.Ide.Commands.WindowCommands.NextWindow" />
+ </Condition>
+ </Extension>
+
+ <Extension path="/MonoDevelop/Ide/AppMenu">
+ <Condition id = "Platform" value = "mac">
+ <SeparatorItem id = "HideSeparator" insertbefore="QuitSeparator" />
+ <CommandItem id = "MonoDevelop.MacIntegration.MacIntegrationCommands.HideWindow" />
+ <CommandItem id = "MonoDevelop.MacIntegration.MacIntegrationCommands.HideOthers" />
+ </Condition>
</Extension>
<Extension path = "/MonoDevelop/Components/DialogHandlers">
- <Class class="MonoDevelop.MacIntegration.MacSelectFileDialogHandler" />
- <Class class="MonoDevelop.MacIntegration.MacAddFileDialogHandler" />
- <Class class="MonoDevelop.MacIntegration.MacOpenFileDialogHandler" />
- <Class class="MonoDevelop.MacIntegration.MacAlertDialogHandler" />
- <Class class="MonoDevelop.MacIntegration.MacExceptionDialogHandler" />
+ <Condition id = "Platform" value = "mac">
+ <Class class="MonoDevelop.MacIntegration.MacSelectFileDialogHandler" />
+ <Class class="MonoDevelop.MacIntegration.MacAddFileDialogHandler" />
+ <Class class="MonoDevelop.MacIntegration.MacOpenFileDialogHandler" />
+ <Class class="MonoDevelop.MacIntegration.MacAlertDialogHandler" />
+ <Class class="MonoDevelop.MacIntegration.MacExceptionDialogHandler" />
+ </Condition>
</Extension>
-</Addin>
+</Addin> \ No newline at end of file