wudsn-ide/com.wudsn.ide.base/plugin.xml
Peter Dell f338e19db1 Make font size of Atari 8-bit font and CBM fonts configurable via preferences
See path https://github.com/peterdell/wudsn-ide/issues/3

Solution: Preferences in "Appearance / Colors and Fonts / Basic / Text Font / Atari 8-bit Font | CBM Font"
2023-01-09 01:06:02 +01:00

330 lines
15 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>
</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>
</extension>
<extension
point="org.eclipse.ui.themes">
<fontDefinition
categoryId="org.eclipse.ui.workbenchMisc"
defaultsTo="org.eclipse.jface.textfont"
id="com.wudsn.ide.base.hardware.HardwareFont.ATARI8"
isEditable="true"
label="%com.wudsn.ide.base.hardware.HardwareFont.ATARI8.label">
</fontDefinition>
<fontDefinition
categoryId="org.eclipse.ui.workbenchMisc"
defaultsTo="org.eclipse.jface.textfont"
id="com.wudsn.ide.base.hardware.HardwareFont.CBM"
isEditable="true"
label="%com.wudsn.ide.base.hardware.HardwareFont.CBM.label">
</fontDefinition>
</extension>
</plugin>