mirror of
https://github.com/peterdell/wudsn-ide.git
synced 2024-10-10 23:23:40 +00:00
633 lines
29 KiB
XML
633 lines
29 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<?eclipse version="3.0"?>
|
|
<plugin>
|
|
<extension
|
|
name="CommonCommands"
|
|
point="org.eclipse.ui.commands">
|
|
<command
|
|
id="com.wudsn.ide.base.editor.CommonOpenFolderCommand"
|
|
name="%com.wudsn.ide.base.editor.CommonOpenFolderCommand.name">
|
|
</command>
|
|
</extension>
|
|
<extension
|
|
name="CommonHandlers"
|
|
point="org.eclipse.ui.handlers">
|
|
<handler
|
|
class="com.wudsn.ide.base.editor.CommonOpenFolderCommandHandler"
|
|
commandId="com.wudsn.ide.base.editor.CommonOpenFolderCommand">
|
|
</handler>
|
|
</extension>
|
|
<extension
|
|
point="org.eclipse.core.expressions.propertyTesters">
|
|
<propertyTester
|
|
class="com.wudsn.ide.base.editor.text.TextEditorConvertNumbersCommand$EnabledPropertyTester"
|
|
id="com.wudsn.ide.base.editor.text.TextEditorConvertNumbersCommand.EnabledPropertyTester"
|
|
namespace="com.wudsn.ide.base.editor.text.TextEditorConvertNumbersCommand"
|
|
properties="isEnabled"
|
|
type="org.eclipse.jface.viewers.ISelection">
|
|
</propertyTester>
|
|
</extension>
|
|
<extension
|
|
point="org.eclipse.core.expressions.definitions">
|
|
<definition
|
|
id="com.wudsn.ide.base.text.TextEditorActive">
|
|
<with
|
|
variable="activeEditor">
|
|
<instanceof
|
|
value="org.eclipse.ui.texteditor.ITextEditor">
|
|
</instanceof>
|
|
</with>
|
|
</definition>
|
|
|
|
</extension>
|
|
<extension
|
|
name="TextEditorCommands"
|
|
point="org.eclipse.ui.commands">
|
|
<command
|
|
categoryId="org.eclipse.ui.category.edit"
|
|
id="com.wudsn.ide.base.editor.text.TextEditorConvertNumbersToDecimalCommand"
|
|
name="%com.wudsn.ide.base.editor.text.TextEditorConvertNumbersToDecimalCommand.name">
|
|
</command>
|
|
<command
|
|
categoryId="org.eclipse.ui.category.edit"
|
|
id="com.wudsn.ide.base.editor.text.TextEditorConvertNumbersToHexaDecimalCommand"
|
|
name="%com.wudsn.ide.base.editor.text.TextEditorConvertNumbersToHexaDecimalCommand.name">
|
|
</command>
|
|
<command
|
|
categoryId="org.eclipse.ui.category.edit"
|
|
id="com.wudsn.ide.base.editor.text.TextEditorConvertNumbersToBinaryCommand"
|
|
name="%com.wudsn.ide.base.editor.text.TextEditorConvertNumbersToBinaryCommand.name">
|
|
</command>
|
|
<command
|
|
categoryId="org.eclipse.ui.category.edit"
|
|
id="com.wudsn.ide.base.editor.text.TextEditorSortLinesCaseSensitiveCommand"
|
|
name="%com.wudsn.ide.base.editor.text.TextEditorSortLinesCaseSensitiveCommand.name">
|
|
</command>
|
|
<command
|
|
categoryId="org.eclipse.ui.category.edit"
|
|
id="com.wudsn.ide.base.editor.text.TextEditorSortLinesCaseSensitiveWithoutDuplicatesCommand"
|
|
name="%com.wudsn.ide.base.editor.text.TextEditorSortLinesCaseSensitiveWithoutDuplicatesCommand.name">
|
|
</command>
|
|
<command
|
|
categoryId="org.eclipse.ui.category.edit"
|
|
id="com.wudsn.ide.base.editor.text.TextEditorSortLinesCaseInsensitiveCommand"
|
|
name="%com.wudsn.ide.base.editor.text.TextEditorSortLinesCaseInsensitiveCommand.name">
|
|
</command>
|
|
<command
|
|
id="com.wudsn.ide.base.editor.text.TextEditorSortLinesCaseInsensitiveWithoutDuplicatesCommand"
|
|
name="%com.wudsn.ide.base.editor.text.TextEditorSortLinesCaseInsensitiveWithoutDuplicatesCommand.name">
|
|
</command>
|
|
<command
|
|
categoryId="org.eclipse.ui.category.edit"
|
|
id="com.wudsn.ide.base.editor.text.TextEditorSortLinesNumericCommand"
|
|
name="%com.wudsn.ide.base.editor.text.TextEditorSortLinesNumericCommand.name">
|
|
</command>
|
|
<command
|
|
categoryId="org.eclipse.ui.category.edit"
|
|
id="com.wudsn.ide.base.editor.text.TextEditorSortLinesNumericWithoutDuplicatesCommand"
|
|
name="%com.wudsn.ide.base.editor.text.TextEditorSortLinesNumericWithoutDuplicatesCommand.name">
|
|
</command>
|
|
<command
|
|
categoryId="org.eclipse.ui.category.edit"
|
|
id="com.wudsn.ide.base.editor.text.TextEditorReverseLinesCommand"
|
|
name="%com.wudsn.ide.base.editor.text.TextEditorReverseLinesCommand.name">
|
|
</command>
|
|
</extension>
|
|
<extension
|
|
name="TextEditorHandlers"
|
|
point="org.eclipse.ui.handlers">
|
|
<handler
|
|
class="com.wudsn.ide.base.editor.text.TextEditorConvertNumbersCommand$Handler"
|
|
commandId="com.wudsn.ide.base.editor.text.TextEditorConvertNumbersToDecimalCommand">
|
|
<activeWhen>
|
|
<and>
|
|
<with
|
|
variable="selection">
|
|
<test
|
|
forcePluginActivation="false"
|
|
property="com.wudsn.ide.base.editor.text.TextEditorConvertNumbersCommand.isEnabled"
|
|
value="com.wudsn.ide.base.editor.text.TextEditorConvertNumbersToDecimalCommand">
|
|
</test>
|
|
</with>
|
|
</and>
|
|
</activeWhen>
|
|
</handler>
|
|
<handler
|
|
class="com.wudsn.ide.base.editor.text.TextEditorConvertNumbersCommand$Handler"
|
|
commandId="com.wudsn.ide.base.editor.text.TextEditorConvertNumbersToHexaDecimalCommand">
|
|
<activeWhen>
|
|
<with
|
|
variable="selection">
|
|
<test
|
|
forcePluginActivation="false"
|
|
property="com.wudsn.ide.base.editor.text.TextEditorConvertNumbersCommand.isEnabled"
|
|
value="com.wudsn.ide.base.editor.text.TextEditorConvertNumbersToHexaDecimalCommand">
|
|
</test>
|
|
</with>
|
|
</activeWhen>
|
|
</handler>
|
|
<handler
|
|
class="com.wudsn.ide.base.editor.text.TextEditorConvertNumbersCommand$Handler"
|
|
commandId="com.wudsn.ide.base.editor.text.TextEditorConvertNumbersToBinaryCommand">
|
|
<activeWhen>
|
|
<with
|
|
variable="selection">
|
|
<test
|
|
forcePluginActivation="false"
|
|
property="com.wudsn.ide.base.editor.text.TextEditorConvertNumbersCommand.isEnabled"
|
|
value="com.wudsn.ide.base.editor.text.TextEditorConvertNumbersToBinaryCommand">
|
|
</test>
|
|
</with>
|
|
</activeWhen>
|
|
</handler>
|
|
<handler
|
|
class="com.wudsn.ide.base.editor.text.TextEditorSortLinesCaseSensitiveCommandHandler"
|
|
commandId="com.wudsn.ide.base.editor.text.TextEditorSortLinesCaseSensitiveCommand">
|
|
<activeWhen>
|
|
<reference
|
|
definitionId="com.wudsn.ide.base.text.TextEditorActive">
|
|
</reference>
|
|
</activeWhen>
|
|
</handler>
|
|
<handler
|
|
class="com.wudsn.ide.base.editor.text.TextEditorSortLinesCaseSensitiveCommandHandler"
|
|
commandId="com.wudsn.ide.base.editor.text.TextEditorSortLinesCaseSensitiveWithoutDuplicatesCommand">
|
|
<activeWhen>
|
|
<reference
|
|
definitionId="com.wudsn.ide.base.text.TextEditorActive">
|
|
</reference>
|
|
</activeWhen>
|
|
</handler>
|
|
<handler
|
|
class="com.wudsn.ide.base.editor.text.TextEditorSortLinesCaseInsensitiveCommandHandler"
|
|
commandId="com.wudsn.ide.base.editor.text.TextEditorSortLinesCaseInsensitiveCommand">
|
|
<activeWhen>
|
|
<reference
|
|
definitionId="com.wudsn.ide.base.text.TextEditorActive">
|
|
</reference>
|
|
</activeWhen>
|
|
</handler>
|
|
<handler
|
|
class="com.wudsn.ide.base.editor.text.TextEditorSortLinesCaseInsensitiveCommandHandler"
|
|
commandId="com.wudsn.ide.base.editor.text.TextEditorSortLinesCaseInsensitiveWithoutDuplicatesCommand">
|
|
<activeWhen>
|
|
<reference
|
|
definitionId="com.wudsn.ide.base.text.TextEditorActive">
|
|
</reference>
|
|
</activeWhen>
|
|
</handler>
|
|
<handler
|
|
class="com.wudsn.ide.base.editor.text.TextEditorSortLinesNumericCommandHandler"
|
|
commandId="com.wudsn.ide.base.editor.text.TextEditorSortLinesNumericCommand">
|
|
<activeWhen>
|
|
<reference
|
|
definitionId="com.wudsn.ide.base.text.TextEditorActive">
|
|
</reference>
|
|
</activeWhen>
|
|
</handler>
|
|
<handler
|
|
class="com.wudsn.ide.base.editor.text.TextEditorSortLinesNumericCommandHandler"
|
|
commandId="com.wudsn.ide.base.editor.text.TextEditorSortLinesNumericWithoutDuplicatesCommand">
|
|
<activeWhen>
|
|
<reference
|
|
definitionId="com.wudsn.ide.base.text.TextEditorActive">
|
|
</reference>
|
|
</activeWhen>
|
|
</handler>
|
|
<handler
|
|
class="com.wudsn.ide.base.editor.text.TextEditorReverseLinesCommandHandler"
|
|
commandId="com.wudsn.ide.base.editor.text.TextEditorReverseLinesCommand">
|
|
<activeWhen>
|
|
<reference
|
|
definitionId="com.wudsn.ide.base.text.TextEditorActive">
|
|
</reference>
|
|
</activeWhen>
|
|
</handler>
|
|
</extension>
|
|
<extension
|
|
name="TextEditorMenus"
|
|
point="org.eclipse.ui.menus">
|
|
<menuContribution
|
|
locationURI="popup:#TextEditorContext?after=additions">
|
|
<menu
|
|
id="com.wudsn.ide.base.editor.text.TextEditorConvertNumbersMenu"
|
|
label="%com.wudsn.ide.base.editor.text.TextEditorConvertNumbersMenu.label">
|
|
<command
|
|
commandId="com.wudsn.ide.base.editor.text.TextEditorConvertNumbersToDecimalCommand"
|
|
id="com.wudsn.ide.base.editor.text.TextEditorConvertNumbersToDecimalCommand"
|
|
style="push">
|
|
</command>
|
|
<command
|
|
commandId="com.wudsn.ide.base.editor.text.TextEditorConvertNumbersToHexaDecimalCommand"
|
|
id="com.wudsn.ide.base.editor.text.TextEditorConvertNumbersToHexaDecimalCommand"
|
|
style="push">
|
|
</command>
|
|
<command
|
|
commandId="com.wudsn.ide.base.editor.text.TextEditorConvertNumbersToBinaryCommand"
|
|
id="com.wudsn.ide.base.editor.text.TextEditorConvertNumbersToBinaryCommand"
|
|
style="push">
|
|
</command>
|
|
<visibleWhen
|
|
checkEnabled="false">
|
|
<reference
|
|
definitionId="com.wudsn.ide.base.text.TextEditorActive">
|
|
</reference>
|
|
</visibleWhen>
|
|
</menu>
|
|
</menuContribution>
|
|
<menuContribution
|
|
locationURI="menu:edit?after=additions">
|
|
<menu
|
|
label="%com.wudsn.ide.base.editor.text.TextEditorConvertNumbersMenu.label"
|
|
mnemonic="%com.wudsn.ide.base.editor.text.TextEditorConvertNumbersMenu.mnemonic">
|
|
<command
|
|
commandId="com.wudsn.ide.base.editor.text.TextEditorConvertNumbersToDecimalCommand"
|
|
id="com.wudsn.ide.base.editor.text.TextEditorConvertNumbersToDecimalCommand"
|
|
mnemonic="%com.wudsn.ide.base.editor.text.TextEditorConvertNumbersToDecimalCommand.mnemonic"
|
|
style="push">
|
|
</command>
|
|
<command
|
|
commandId="com.wudsn.ide.base.editor.text.TextEditorConvertNumbersToHexaDecimalCommand"
|
|
id="com.wudsn.ide.base.editor.text.TextEditorConvertNumbersToHexaDecimalCommand"
|
|
mnemonic="%com.wudsn.ide.base.editor.text.TextEditorConvertNumbersToHexaDecimalCommand.mnemonic"
|
|
style="push">
|
|
</command>
|
|
<command
|
|
commandId="com.wudsn.ide.base.editor.text.TextEditorConvertNumbersToBinaryCommand"
|
|
id="com.wudsn.ide.base.editor.text.TextEditorConvertNumbersToBinaryCommand"
|
|
mnemonic="%com.wudsn.ide.base.editor.text.TextEditorConvertNumbersToBinaryCommand.mnemonic"
|
|
style="push">
|
|
</command>
|
|
<visibleWhen
|
|
checkEnabled="false">
|
|
<reference
|
|
definitionId="com.wudsn.ide.base.text.TextEditorActive">
|
|
</reference>
|
|
</visibleWhen>
|
|
</menu>
|
|
</menuContribution>
|
|
<menuContribution
|
|
locationURI="popup:#TextEditorContext?after=additions">
|
|
<menu
|
|
id="com.wudsn.ide.base.editor.text.TextEditorSortMenu"
|
|
label="%com.wudsn.ide.base.editor.text.TextEditorSortMenu.label">
|
|
<command
|
|
commandId="com.wudsn.ide.base.editor.text.TextEditorSortLinesCaseSensitiveCommand"
|
|
id="com.wudsn.ide.base.editor.text.TextEditorSortLinesCaseSensitiveCommand"
|
|
style="push">
|
|
</command>
|
|
<command
|
|
commandId="com.wudsn.ide.base.editor.text.TextEditorSortLinesCaseSensitiveWithoutDuplicatesCommand"
|
|
id="com.wudsn.ide.base.editor.text.TextEditorSortLinesCaseSensitiveWithoutDuplicatesCommand"
|
|
style="push">
|
|
</command>
|
|
<command
|
|
commandId="com.wudsn.ide.base.editor.text.TextEditorSortLinesCaseInsensitiveCommand"
|
|
id="com.wudsn.ide.base.editor.text.TextEditorSortLinesCaseInsensitiveCommandHandler"
|
|
style="push">
|
|
</command>
|
|
<command
|
|
commandId="com.wudsn.ide.base.editor.text.TextEditorSortLinesCaseInsensitiveWithoutDuplicatesCommand"
|
|
id="com.wudsn.ide.base.editor.text.TextEditorSortLinesCaseInsensitiveWithoutDuplicates"
|
|
style="push">
|
|
</command>
|
|
<command
|
|
commandId="com.wudsn.ide.base.editor.text.TextEditorSortLinesNumericCommand"
|
|
id="com.wudsn.ide.base.editor.text.TextEditorSortLinesNumericCommand"
|
|
style="push">
|
|
</command>
|
|
<command
|
|
commandId="com.wudsn.ide.base.editor.text.TextEditorSortLinesNumericWithoutDuplicatesCommand"
|
|
id="com.wudsn.ide.base.editor.text.TextEditorSortLinesNumericWithoutDuplicatesCommand"
|
|
style="push">
|
|
</command>
|
|
<command
|
|
commandId="com.wudsn.ide.base.editor.text.TextEditorReverseLinesCommand"
|
|
id="com.wudsn.ide.base.editor.text.TextEditorReverseLinesCommand"
|
|
style="push">
|
|
</command>
|
|
<visibleWhen
|
|
checkEnabled="false">
|
|
<with
|
|
variable="activeEditor">
|
|
<instanceof
|
|
value="org.eclipse.ui.texteditor.ITextEditor">
|
|
</instanceof>
|
|
</with>
|
|
</visibleWhen>
|
|
</menu>
|
|
</menuContribution>
|
|
<menuContribution
|
|
locationURI="menu:edit?after=additions">
|
|
<menu
|
|
label="%com.wudsn.ide.base.editor.text.TextEditorSortMenu.label"
|
|
mnemonic="%com.wudsn.ide.base.editor.text.TextEditorSortMenu.mnemonic">
|
|
<command
|
|
commandId="com.wudsn.ide.base.editor.text.TextEditorSortLinesCaseSensitiveCommand"
|
|
id="com.wudsn.ide.base.editor.text.TextEditorSortLinesCaseSensitiveCommand"
|
|
mnemonic="%com.wudsn.ide.base.editor.text.TextEditorSortLinesCaseSensitiveCommand.mnemonic"
|
|
style="push">
|
|
</command>
|
|
<command
|
|
commandId="com.wudsn.ide.base.editor.text.TextEditorSortLinesCaseSensitiveWithoutDuplicatesCommand"
|
|
id="com.wudsn.ide.base.editor.text.TextEditorSortLinesCaseSensitiveWithoutDuplicatesCommand"
|
|
mnemonic="%com.wudsn.ide.base.editor.text.TextEditorSortLinesCaseSensitiveWithoutDuplicatesCommand.mnemonic"
|
|
style="push">
|
|
</command>
|
|
<command
|
|
commandId="com.wudsn.ide.base.editor.text.TextEditorSortLinesCaseInsensitiveCommand"
|
|
id="com.wudsn.ide.base.editor.text.TextEditorSortLinesCaseInsensitiveCommand"
|
|
mnemonic="%com.wudsn.ide.base.editor.text.TextEditorSortLinesCaseInsensitiveCommand.mnemonic"
|
|
style="push">
|
|
</command>
|
|
<command
|
|
commandId="com.wudsn.ide.base.editor.text.TextEditorSortLinesCaseInsensitiveWithoutDuplicatesCommand"
|
|
id="com.wudsn.ide.base.editor.text.TextEditorSortLinesCaseInsensitiveWithoutDuplicatesCommand"
|
|
mnemonic="%com.wudsn.ide.base.editor.text.TextEditorSortLinesCaseInsensitiveWithoutDuplicatesCommand.mnemonic"
|
|
style="push">
|
|
</command>
|
|
<command
|
|
commandId="com.wudsn.ide.base.editor.text.TextEditorSortLinesNumericCommand"
|
|
id="com.wudsn.ide.base.editor.text.TextEditorSortLinesNumericCommand"
|
|
mnemonic="%com.wudsn.ide.base.editor.text.TextEditorSortLinesNumericCommand.mnemonic"
|
|
style="push">
|
|
</command>
|
|
<command
|
|
commandId="com.wudsn.ide.base.editor.text.TextEditorSortLinesNumericWithoutDuplicatesCommand"
|
|
id="com.wudsn.ide.base.editor.text.TextEditorSortLinesNumericWithoutDuplicatesCommand"
|
|
mnemonic="%com.wudsn.ide.base.editor.text.TextEditorSortLinesNumericWithoutDuplicatesCommand.mnemonic"
|
|
style="push">
|
|
</command>
|
|
<command
|
|
commandId="com.wudsn.ide.base.editor.text.TextEditorReverseLinesCommand"
|
|
id="com.wudsn.ide.base.editor.text.TextEditorReverseLinesCommand"
|
|
mnemonic="%com.wudsn.ide.base.editor.text.TextEditorReverseLinesCommand.mnemonic"
|
|
style="push">
|
|
</command>
|
|
<visibleWhen
|
|
checkEnabled="false">
|
|
<with
|
|
variable="activeEditor">
|
|
<instanceof
|
|
value="org.eclipse.ui.texteditor.ITextEditor">
|
|
</instanceof>
|
|
</with>
|
|
</visibleWhen>
|
|
</menu>
|
|
</menuContribution>
|
|
</extension>
|
|
<extension
|
|
name="HexEditorCommands"
|
|
point="org.eclipse.ui.commands">
|
|
<command
|
|
id="com.wudsn.ide.base.editor.hex.HexEditorOpenCommand"
|
|
name="%com.wudsn.ide.base.editor.hex.HexEditorOpenCommand.name">
|
|
</command>
|
|
<command
|
|
id="com.wudsn.ide.base.editor.hex.HexEditorCopyToClipboardCommand"
|
|
name="%com.wudsn.ide.base.editor.hex.HexEditorCopyToClipboardCommand.name">
|
|
</command>
|
|
<command
|
|
id="com.wudsn.ide.base.editor.hex.HexEditorCopyToClipboardAsHexValuesCommand"
|
|
name="%com.wudsn.ide.base.editor.hex.HexEditorCopyToClipboardAsHexValuesCommand.name">
|
|
</command>
|
|
<command
|
|
id="com.wudsn.ide.base.editor.hex.HexEditorCopyToClipboardAsDecimalValuesCommand"
|
|
name="%com.wudsn.ide.base.editor.hex.HexEditorCopyToClipboardAsDecimalValuesCommand.name">
|
|
</command>
|
|
<command
|
|
id="com.wudsn.ide.base.editor.hex.HexEditorCopyToClipboardAsDecimalValuesBlockCommand"
|
|
name="%com.wudsn.ide.base.editor.hex.HexEditorCopyToClipboardAsDecimalValuesBlockCommand.name">
|
|
</command>
|
|
<command
|
|
id="com.wudsn.ide.base.editor.hex.HexEditorCopyToClipboardAsASCIIStringCommand"
|
|
name="%com.wudsn.ide.base.editor.hex.HexEditorCopyToClipboardAsASCIIStringCommand.name">
|
|
</command>
|
|
<command
|
|
id="com.wudsn.ide.base.editor.hex.HexEditorPasteFromClipboardCommand"
|
|
name="%com.wudsn.ide.base.editor.hex.HexEditorPasteFromClipboardCommand.name">
|
|
</command>
|
|
<command
|
|
id="com.wudsn.ide.base.editor.hex.HexEditorSaveSelectionAsCommand"
|
|
name="%com.wudsn.ide.base.editor.hex.HexEditorSaveSelectionAsCommand.name">
|
|
</command>
|
|
</extension>
|
|
<extension
|
|
name="HexEditorHandlers"
|
|
point="org.eclipse.ui.handlers">
|
|
<handler
|
|
class="com.wudsn.ide.base.editor.hex.HexEditorOpenCommandHandler"
|
|
commandId="com.wudsn.ide.base.editor.hex.HexEditorOpenCommand">
|
|
</handler>
|
|
<handler
|
|
class="com.wudsn.ide.base.editor.hex.HexEditorClipboardCommandHandler"
|
|
commandId="com.wudsn.ide.base.editor.hex.HexEditorCopyToClipboardCommand">
|
|
<activeWhen>
|
|
<with
|
|
variable="activeMenuSelection">
|
|
<instanceof
|
|
value="com.wudsn.ide.base.editor.hex.HexEditorSelection">
|
|
</instanceof>
|
|
</with>
|
|
</activeWhen>
|
|
</handler>
|
|
<handler
|
|
class="com.wudsn.ide.base.editor.hex.HexEditorClipboardCommandHandler"
|
|
commandId="com.wudsn.ide.base.editor.hex.HexEditorCopyToClipboardAsHexValuesCommand">
|
|
<activeWhen>
|
|
<with
|
|
variable="activeMenuSelection">
|
|
<instanceof
|
|
value="com.wudsn.ide.base.editor.hex.HexEditorSelection">
|
|
</instanceof>
|
|
</with>
|
|
</activeWhen>
|
|
</handler>
|
|
<handler
|
|
class="com.wudsn.ide.base.editor.hex.HexEditorClipboardCommandHandler"
|
|
commandId="com.wudsn.ide.base.editor.hex.HexEditorCopyToClipboardAsDecimalValuesCommand">
|
|
<activeWhen>
|
|
<with
|
|
variable="activeMenuSelection">
|
|
<instanceof
|
|
value="com.wudsn.ide.base.editor.hex.HexEditorSelection">
|
|
</instanceof>
|
|
</with>
|
|
</activeWhen>
|
|
</handler>
|
|
<handler
|
|
class="com.wudsn.ide.base.editor.hex.HexEditorClipboardCommandHandler"
|
|
commandId="com.wudsn.ide.base.editor.hex.HexEditorCopyToClipboardAsDecimalValuesBlockCommand">
|
|
<activeWhen>
|
|
<with
|
|
variable="activeMenuSelection">
|
|
<instanceof
|
|
value="com.wudsn.ide.base.editor.hex.HexEditorSelection">
|
|
</instanceof>
|
|
</with>
|
|
</activeWhen>
|
|
</handler>
|
|
<handler
|
|
class="com.wudsn.ide.base.editor.hex.HexEditorClipboardCommandHandler"
|
|
commandId="com.wudsn.ide.base.editor.hex.HexEditorCopyToClipboardAsASCIIStringCommand">
|
|
<activeWhen>
|
|
<with
|
|
variable="activeMenuSelection">
|
|
<instanceof
|
|
value="com.wudsn.ide.base.editor.hex.HexEditorSelection">
|
|
</instanceof>
|
|
</with>
|
|
</activeWhen>
|
|
</handler>
|
|
<handler
|
|
class="com.wudsn.ide.base.editor.hex.HexEditorClipboardCommandHandler"
|
|
commandId="com.wudsn.ide.base.editor.hex.HexEditorPasteFromClipboardCommand">
|
|
</handler>
|
|
<handler
|
|
class="com.wudsn.ide.base.editor.hex.HexEditorSaveSelectionAsCommandHandler"
|
|
commandId="com.wudsn.ide.base.editor.hex.HexEditorSaveSelectionAsCommand">
|
|
<activeWhen>
|
|
<with
|
|
variable="activeMenuSelection">
|
|
<instanceof
|
|
value="com.wudsn.ide.base.editor.hex.HexEditorSelection">
|
|
</instanceof>
|
|
</with>
|
|
</activeWhen>
|
|
</handler>
|
|
</extension>
|
|
<extension
|
|
name="HexEditorMenus"
|
|
point="org.eclipse.ui.menus">
|
|
<menuContribution
|
|
locationURI="popup:org.eclipse.ui.popup.any?after=group.open">
|
|
<command
|
|
commandId="com.wudsn.ide.base.editor.CommonOpenFolderCommand"
|
|
id="com.wudsn.ide.base.editor.CommonOpenFolderCommand"
|
|
style="push">
|
|
<visibleWhen
|
|
checkEnabled="false">
|
|
<or>
|
|
<with
|
|
variable="activeMenuSelection">
|
|
<and>
|
|
<iterate
|
|
ifEmpty="false"
|
|
operator="and">
|
|
</iterate>
|
|
<instanceof
|
|
value="org.eclipse.jface.viewers.IStructuredSelection">
|
|
</instanceof>
|
|
</and>
|
|
</with>
|
|
<with
|
|
variable="activeMenuEditorInput">
|
|
<and>
|
|
<iterate
|
|
ifEmpty="false"
|
|
operator="and">
|
|
</iterate>
|
|
<instanceof
|
|
value="org.eclipse.jface.viewers.IStructuredSelection">
|
|
</instanceof>
|
|
</and>
|
|
</with>
|
|
</or>
|
|
</visibleWhen>
|
|
</command>
|
|
</menuContribution>
|
|
<menuContribution
|
|
locationURI="popup:org.eclipse.ui.popup.any?before=group.openWith">
|
|
<command
|
|
commandId="com.wudsn.ide.base.editor.hex.HexEditorOpenCommand"
|
|
id="com.wudsn.ide.base.editor.hex.HexEditorOpenCommand"
|
|
style="push">
|
|
<visibleWhen
|
|
checkEnabled="false">
|
|
<or>
|
|
<with
|
|
variable="activeMenuSelection">
|
|
<iterate
|
|
ifEmpty="false"
|
|
operator="or">
|
|
<instanceof
|
|
value="org.eclipse.core.resources.IFile">
|
|
</instanceof>
|
|
</iterate>
|
|
</with>
|
|
<with
|
|
variable="activeMenuEditorInput">
|
|
<iterate
|
|
ifEmpty="false"
|
|
operator="or">
|
|
<instanceof
|
|
value="org.eclipse.ui.IFileEditorInput">
|
|
</instanceof>
|
|
</iterate>
|
|
</with>
|
|
</or>
|
|
</visibleWhen>
|
|
</command>
|
|
</menuContribution>
|
|
<menuContribution
|
|
locationURI="popup:#HexEditorContext">
|
|
<command
|
|
commandId="com.wudsn.ide.base.editor.hex.HexEditorCopyToClipboardCommand"
|
|
disabledIcon="icons/copy-disabled.gif"
|
|
icon="icons/copy-enabled.gif"
|
|
id="com.wudsn.ide.base.editor.hex.HexEditorCopyToClipboardCommand"
|
|
style="push">
|
|
</command>
|
|
<menu
|
|
label="%com.wudsn.ide.base.editor.hex.HexEditorCopyToClipboardAsMenu.name">
|
|
<command
|
|
commandId="com.wudsn.ide.base.editor.hex.HexEditorCopyToClipboardAsHexValuesCommand"
|
|
id="com.wudsn.ide.base.editor.hex.HexEditorCopyToClipboardAsHexValuesCommand"
|
|
style="push">
|
|
</command>
|
|
<command
|
|
commandId="com.wudsn.ide.base.editor.hex.HexEditorCopyToClipboardAsDecimalValuesCommand"
|
|
id="com.wudsn.ide.base.editor.hex.HexEditorCopyToClipboardAsDecimalValuesCommand"
|
|
style="push">
|
|
</command>
|
|
<command
|
|
commandId="com.wudsn.ide.base.editor.hex.HexEditorCopyToClipboardAsDecimalValuesBlockCommand"
|
|
id="com.wudsn.ide.base.editor.hex.HexEditorCopyToClipboardAsDecimalValuesBlockCommand"
|
|
style="push">
|
|
</command>
|
|
<command
|
|
commandId="com.wudsn.ide.base.editor.hex.HexEditorCopyToClipboardAsASCIIStringCommand"
|
|
id="com.wudsn.ide.base.editor.hex.HexEditorCopyToClipboardAsASCIIStringCommand"
|
|
style="push">
|
|
</command>
|
|
</menu>
|
|
<command
|
|
commandId="com.wudsn.ide.base.editor.hex.HexEditorPasteFromClipboardCommand"
|
|
icon="icons/paste-enabled.gif"
|
|
id="%com.wudsn.ide.base.editor.hex.HexEditorPasteFromClipboardCommand.name"
|
|
label="%com.wudsn.ide.base.editor.hex.HexEditorPasteFromClipboardCommand.name"
|
|
style="push">
|
|
</command>
|
|
<command
|
|
commandId="com.wudsn.ide.base.editor.hex.HexEditorSaveSelectionAsCommand"
|
|
disabledIcon="icons/save-as-disabled.gif"
|
|
icon="icons/save-as-enabled.gif"
|
|
label="%com.wudsn.ide.base.editor.hex.HexEditorSaveSelectionAsCommand.name"
|
|
style="push">
|
|
</command>
|
|
</menuContribution>
|
|
</extension>
|
|
|
|
<extension
|
|
name="HexEditor"
|
|
point="org.eclipse.ui.editors">
|
|
<editor
|
|
class="com.wudsn.ide.base.editor.hex.HexEditor"
|
|
default="true"
|
|
icon="icons/hex-editor-16x16.gif"
|
|
id="com.wudsn.ide.base.editor.hex.HexEditor"
|
|
name="%com.wudsn.ide.base.editor.hex.HexEditor.name">
|
|
</editor>
|
|
</extension>
|
|
</plugin>
|