2012-01-16 08:51:44 -08:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<!-- ***** BEGIN LICENSE BLOCK *****
|
|
|
|
- Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
|
|
|
-
|
|
|
|
- The contents of this file are subject to the Mozilla Public License Version
|
|
|
|
- 1.1 (the "License"); you may not use this file except in compliance with
|
|
|
|
- the License. You may obtain a copy of the License at
|
|
|
|
- http://www.mozilla.org/MPL/
|
|
|
|
-
|
|
|
|
- Software distributed under the License is distributed on an "AS IS" basis,
|
|
|
|
- WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|
|
|
- for the specific language governing rights and limitations under the
|
|
|
|
- License.
|
|
|
|
-
|
|
|
|
- The Original Code is Source Editor.
|
|
|
|
-
|
|
|
|
- The Initial Developer of the Original Code is
|
|
|
|
- The Mozilla Foundation.
|
|
|
|
- Portions created by the Initial Developer are Copyright (C) 2012
|
|
|
|
- the Initial Developer. All Rights Reserved.
|
|
|
|
-
|
|
|
|
- Contributor(s):
|
|
|
|
- Mihai Sucan <mihai.sucan@gmail.com> (original author)
|
|
|
|
-
|
|
|
|
- Alternatively, the contents of this file may be used under the terms of
|
|
|
|
- either the GNU General Public License Version 2 or later (the "GPL"), or
|
|
|
|
- the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
|
|
|
- in which case the provisions of the GPL or the LGPL are applicable instead
|
|
|
|
- of those above. If you wish to allow use of your version of this file only
|
|
|
|
- under the terms of either the GPL or the LGPL, and not to allow others to
|
|
|
|
- use your version of this file under the terms of the MPL, indicate your
|
|
|
|
- decision by deleting the provisions above and replace them with the notice
|
|
|
|
- and other provisions required by the GPL or the LGPL. If you do not delete
|
|
|
|
- the provisions above, a recipient may use your version of this file under
|
|
|
|
- the terms of any one of the MPL, the GPL or the LGPL.
|
|
|
|
-
|
|
|
|
- ***** END LICENSE BLOCK ***** -->
|
2012-02-27 10:08:45 -08:00
|
|
|
<!DOCTYPE overlay SYSTEM "chrome://browser/locale/devtools/sourceeditor.dtd">
|
2012-01-16 08:51:44 -08:00
|
|
|
<overlay id="sourceEditorOverlay"
|
|
|
|
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
2012-02-27 10:08:45 -08:00
|
|
|
|
|
|
|
<!-- This Source Editor overlay requires the editMenuOverlay.xul to be loaded.
|
|
|
|
The globalOverlay.js script is also required in the XUL document where
|
|
|
|
the source-editor-overlay.xul is loaded. -->
|
|
|
|
|
2012-01-16 08:51:44 -08:00
|
|
|
<commandset id="sourceEditorCommands">
|
|
|
|
<command id="cmd_find" oncommand="goDoCommand('cmd_find')"/>
|
|
|
|
<command id="cmd_findAgain" oncommand="goDoCommand('cmd_findAgain')" disabled="true"/>
|
|
|
|
<command id="cmd_findPrevious" oncommand="goDoCommand('cmd_findPrevious')" disabled="true"/>
|
2012-01-16 03:59:39 -08:00
|
|
|
<command id="cmd_gotoLine" oncommand="goDoCommand('cmd_gotoLine')"/>
|
2012-02-27 10:08:45 -08:00
|
|
|
<command id="se-cmd-undo" oncommand="goDoCommand('se-cmd-undo')" disabled="true"/>
|
|
|
|
<command id="se-cmd-redo" oncommand="goDoCommand('se-cmd-redo')" disabled="true"/>
|
2012-01-16 08:51:44 -08:00
|
|
|
</commandset>
|
2012-02-27 10:08:45 -08:00
|
|
|
|
|
|
|
<keyset id="sourceEditorKeys">
|
|
|
|
<key id="key_gotoLine"
|
|
|
|
key="&gotoLineCmd.key;"
|
|
|
|
command="cmd_gotoLine"
|
|
|
|
modifiers="accel"/>
|
|
|
|
</keyset>
|
|
|
|
|
|
|
|
<menupopup id="sourceEditorContextMenu"
|
|
|
|
onpopupshowing="goUpdateGlobalEditMenuItems()">
|
|
|
|
<menuitem id="se-menu-undo"
|
|
|
|
label="&undoCmd.label;"
|
|
|
|
key="key_undo"
|
|
|
|
accesskey="&undoCmd.accesskey;"
|
|
|
|
command="se-cmd-undo"/>
|
|
|
|
<menuseparator/>
|
|
|
|
<menuitem id="se-menu-cut"
|
|
|
|
label="&cutCmd.label;"
|
|
|
|
key="key_cut"
|
|
|
|
accesskey="&cutCmd.accesskey;"
|
|
|
|
command="cmd_cut"/>
|
|
|
|
<menuitem id="se-menu-copy"
|
|
|
|
label="©Cmd.label;"
|
|
|
|
key="key_copy"
|
|
|
|
accesskey="©Cmd.accesskey;"
|
|
|
|
command="cmd_copy"/>
|
|
|
|
<menuitem id="se-menu-paste"
|
|
|
|
label="&pasteCmd.label;"
|
|
|
|
key="key_paste"
|
|
|
|
accesskey="&pasteCmd.accesskey;"
|
|
|
|
command="cmd_paste"/>
|
|
|
|
<menuitem id="se-menu-delete"
|
|
|
|
label="&deleteCmd.label;"
|
|
|
|
key="key_delete"
|
|
|
|
accesskey="&deleteCmd.accesskey;"
|
|
|
|
command="cmd_delete"/>
|
|
|
|
<menuseparator/>
|
|
|
|
<menuitem id="se-menu-selectAll"
|
|
|
|
label="&selectAllCmd.label;"
|
|
|
|
key="key_selectAll"
|
|
|
|
accesskey="&selectAllCmd.accesskey;"
|
|
|
|
command="cmd_selectAll"/>
|
|
|
|
<menuseparator/>
|
|
|
|
<menuitem id="se-menu-find"
|
|
|
|
label="&findCmd.label;"
|
|
|
|
accesskey="&findCmd.accesskey;"
|
|
|
|
key="key_find"
|
|
|
|
command="cmd_find"/>
|
|
|
|
<menuitem id="se-menu-findAgain"
|
|
|
|
label="&findAgainCmd.label;"
|
|
|
|
accesskey="&findAgainCmd.accesskey;"
|
|
|
|
key="key_findAgain"
|
|
|
|
command="cmd_findAgain"/>
|
|
|
|
<menuseparator/>
|
|
|
|
<menuitem id="se-menu-gotoLine"
|
|
|
|
label="&gotoLineCmd.label;"
|
|
|
|
accesskey="&gotoLineCmd.accesskey;"
|
|
|
|
key="key_gotoLine"
|
|
|
|
command="cmd_gotoLine"/>
|
|
|
|
</menupopup>
|
2012-01-16 08:51:44 -08:00
|
|
|
</overlay>
|