wudsn-ide/com.wudsn.ide.lng/plugin.xml

440 lines
18 KiB
XML
Raw Normal View History

2018-12-30 15:42:36 +00:00
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>
<plugin>
2021-09-25 21:29:02 +00:00
<extension-point id="compilers" name="Compilers" schema="schema/compilers.exsd"/>
2018-12-30 15:42:36 +00:00
<extension-point id="runners" name="Runners" schema="schema/runners.exsd"/>
2023-02-26 22:18:01 +00:00
<extension
point="org.eclipse.core.expressions.propertyTesters">
<propertyTester
class="com.wudsn.ide.lng.editor.LanguageEditorPropertyTester"
id="com.wudsn.ide.lng.editor.LanguageEditorPropertyTester"
namespace="com.wudsn.ide.lng"
properties="IsLanguageEditor"
type="org.eclipse.ui.IEditorPart">
</propertyTester>
</extension>
2018-12-30 15:42:36 +00:00
<extension
point="org.eclipse.core.runtime.preferences">
<initializer
2021-09-24 00:07:20 +00:00
class="com.wudsn.ide.lng.preferences.LanguagePreferencesInitializer">
2018-12-30 15:42:36 +00:00
</initializer>
</extension>
<extension
point="org.eclipse.ui.preferencePages">
<page
2021-09-24 00:07:20 +00:00
class="com.wudsn.ide.lng.preferences.LanguagesPreferencesPage"
id="com.wudsn.ide.lng.preferences.LanguagesPreferencesPage"
name="%com.wudsn.ide.lng.preferences.LanguagesPreferencesPage.name"/>
2018-12-30 15:42:36 +00:00
</extension>
2021-09-24 00:07:20 +00:00
2018-12-30 15:42:36 +00:00
<extension
point="org.eclipse.ui.workbench.texteditor.hyperlinkDetectors">
<hyperlinkDetector
activate="true"
2021-09-25 21:29:02 +00:00
class="com.wudsn.ide.lng.editor.LanguageHyperlinkDetector"
id="com.wudsn.ide.lng.editor.LanguageHyperlinkDetector"
name="%com.wudsn.ide.lng.editor.LanguageHyperlinkDetector.name"
targetId="com.wudsn.ide.lng.editor.LanguageHyperlinkDetectorEditorTarget">
2018-12-30 15:42:36 +00:00
</hyperlinkDetector>
</extension>
<extension
point="org.eclipse.ui.workbench.texteditor.hyperlinkDetectorTargets">
<target
2021-09-25 21:29:02 +00:00
id="com.wudsn.ide.lng.editor.LanguageHyperlinkDetectorEditorTarget"
name="%com.wudsn.ide.lng.editor.LanguageHyperlinkDetectorEditorTarget.name">
2018-12-30 15:42:36 +00:00
</target>
</extension>
<extension
point="org.eclipse.ui.commands">
<category
2021-09-25 21:29:02 +00:00
id="com.wudsn.ide.lng.editor.LanguageEditorCommands"
name="%com.wudsn.ide.lng.editor.LanguageEditorCommands.name">
2018-12-30 15:42:36 +00:00
</category>
<command
2021-09-25 21:29:02 +00:00
categoryId="com.wudsn.ide.lng.editor.LanguageEditorCommands"
id="com.wudsn.ide.lng.editor.LanguageEditorOpenSourceFolderCommand"
name="%com.wudsn.ide.lng.editor.LanguageEditorOpenSourceFolderCommand.name">
2018-12-30 15:42:36 +00:00
</command>
<command
2021-09-25 21:29:02 +00:00
categoryId="com.wudsn.ide.lng.editor.LanguageEditorCommands"
id="com.wudsn.ide.lng.editor.LanguageEditorOpenOutputFolderCommand"
name="%com.wudsn.ide.lng.editor.LanguageEditorOpenOutputFolderCommand.name">
2018-12-30 15:42:36 +00:00
</command>
<command
2021-09-25 21:29:02 +00:00
categoryId="com.wudsn.ide.lng.editor.LanguageEditorCommands"
id="com.wudsn.ide.lng.editor.LanguageEditorCompileCommand"
name="%com.wudsn.ide.lng.editor.LanguageEditorCompileCommand.name">
2018-12-30 15:42:36 +00:00
</command>
<command
2021-09-25 21:29:02 +00:00
categoryId="com.wudsn.ide.lng.editor.LanguageEditorCommands"
id="com.wudsn.ide.lng.editor.LanguageEditorCompileAndRunCommand"
name="%com.wudsn.ide.lng.editor.LanguageEditorCompileAndRunCommand.name">
2018-12-30 15:42:36 +00:00
</command>
<command
2021-09-25 21:29:02 +00:00
categoryId="com.wudsn.ide.lng.editor.LanguageEditorCommands"
id="com.wudsn.ide.lng.editor.LanguageEditorCompileAndRunWithCommand"
name="%com.wudsn.ide.lng.editor.LanguageEditorCompileAndRunWithCommand.name">
2018-12-30 15:42:36 +00:00
</command>
<command
2021-09-25 21:29:02 +00:00
categoryId="com.wudsn.ide.lng.editor.LanguageEditorCommands"
id="com.wudsn.ide.lng.editor.LanguageEditorCompilerHelpCommand"
name="%com.wudsn.ide.lng.editor.LanguageEditorCompilerHelpCommand.name">
2018-12-30 15:42:36 +00:00
</command>
<command
2021-09-25 21:29:02 +00:00
categoryId="com.wudsn.ide.lng.editor.LanguageEditorCommands"
id="com.wudsn.ide.lng.editor.LanguageEditorOpenDeclarationCommand"
name="%com.wudsn.ide.lng.editor.LanguageEditorOpenDeclarationCommand.name">
2018-12-30 15:42:36 +00:00
</command>
<command
2021-09-25 21:29:02 +00:00
categoryId="com.wudsn.ide.lng.editor.LanguageEditorCommands"
id="com.wudsn.ide.lng.editor.LanguageEditorToggleCommentCommand"
name="%com.wudsn.ide.lng.editor.LanguageEditorToggleCommentCommand.name">
2018-12-30 15:42:36 +00:00
</command>
</extension>
<extension
point="org.eclipse.ui.handlers">
<handler
2021-09-25 21:29:02 +00:00
class="com.wudsn.ide.lng.editor.LanguageEditorOpenFolderCommandHandler"
commandId="com.wudsn.ide.lng.editor.LanguageEditorOpenSourceFolderCommand">
2018-12-30 15:42:36 +00:00
<activeWhen>
<with
variable="activeEditor">
<instanceof
2023-02-26 23:20:34 +00:00
value="com.wudsn.ide.lng.editor.ILanguageEditor">
2018-12-30 15:42:36 +00:00
</instanceof>
</with></activeWhen>
</handler>
<handler
2021-09-25 21:29:02 +00:00
class="com.wudsn.ide.lng.editor.LanguageEditorOpenFolderCommandHandler"
commandId="com.wudsn.ide.lng.editor.LanguageEditorOpenOutputFolderCommand">
2018-12-30 15:42:36 +00:00
<activeWhen>
<with
variable="activeEditor">
<instanceof
2023-02-26 23:20:34 +00:00
value="com.wudsn.ide.lng.editor.ILanguageEditor">
2018-12-30 15:42:36 +00:00
</instanceof>
</with>
</activeWhen>
</handler>
<handler
2021-09-25 21:29:02 +00:00
class="com.wudsn.ide.lng.editor.LanguageEditorCompileCommandHandler"
commandId="com.wudsn.ide.lng.editor.LanguageEditorCompileCommand">
2018-12-30 15:42:36 +00:00
<activeWhen>
<with
variable="activeEditor">
2023-02-26 22:18:01 +00:00
<test
property="com.wudsn.ide.lng.IsLanguageEditor"
value="true">
</test>
2018-12-30 15:42:36 +00:00
</with>
</activeWhen>
</handler>
<handler
2021-09-25 21:29:02 +00:00
class="com.wudsn.ide.lng.editor.LanguageEditorCompileCommandHandler"
commandId="com.wudsn.ide.lng.editor.LanguageEditorCompileAndRunCommand">
2018-12-30 15:42:36 +00:00
<activeWhen>
<with
variable="activeEditor">
2023-02-26 22:18:01 +00:00
<test
property="com.wudsn.ide.lng.IsLanguageEditor"
value="true">
</test>
2018-12-30 15:42:36 +00:00
</with>
</activeWhen>
</handler>
<handler
2021-09-25 21:29:02 +00:00
class="com.wudsn.ide.lng.editor.LanguageEditorCompileCommandHandler"
commandId="com.wudsn.ide.lng.editor.LanguageEditorCompileAndRunWithCommand">
2018-12-30 15:42:36 +00:00
<activeWhen>
<with
variable="activeEditor">
2023-02-26 22:18:01 +00:00
<test
property="com.wudsn.ide.lng.IsLanguageEditor"
value="true">
</test>
2018-12-30 15:42:36 +00:00
</with>
</activeWhen>
</handler>
<handler
2021-09-25 21:29:02 +00:00
class="com.wudsn.ide.lng.editor.LanguageEditorCompilerHelpCommandHandler"
commandId="com.wudsn.ide.lng.editor.LanguageEditorCompilerHelpCommand">
2018-12-30 15:42:36 +00:00
<activeWhen>
<with
variable="activeEditor">
2023-02-26 22:18:01 +00:00
<test
property="com.wudsn.ide.lng.IsLanguageEditor"
value="true">
</test>
2018-12-30 15:42:36 +00:00
</with>
</activeWhen>
</handler>
<handler
2021-09-25 21:29:02 +00:00
class="com.wudsn.ide.lng.editor.LanguageEditorOpenDeclarationCommandHandler"
commandId="com.wudsn.ide.lng.editor.LanguageEditorOpenDeclarationCommand">
2018-12-30 15:42:36 +00:00
<activeWhen>
<with
variable="activeEditor">
<instanceof
2023-02-26 23:20:34 +00:00
value="com.wudsn.ide.lng.editor.ILanguageEditor">
2018-12-30 15:42:36 +00:00
</instanceof>
</with>
</activeWhen>
</handler>
</extension>
<extension
point="org.eclipse.ui.bindings">
<key
2021-09-25 21:29:02 +00:00
commandId="com.wudsn.ide.lng.editor.LanguageEditorCompileCommand"
2018-12-30 15:42:36 +00:00
contextId="org.eclipse.ui.contexts.window"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
sequence="M1+M2+8">
2018-12-30 15:42:36 +00:00
</key>
<key
2021-09-25 21:29:02 +00:00
commandId="com.wudsn.ide.lng.editor.LanguageEditorCompileAndRunCommand"
2018-12-30 15:42:36 +00:00
contextId="org.eclipse.ui.contexts.window"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
sequence="M1+M2+9">
2018-12-30 15:42:36 +00:00
</key>
<key
2021-09-25 21:29:02 +00:00
commandId="com.wudsn.ide.lng.editor.LanguageEditorToggleCommentCommand"
2018-12-30 15:42:36 +00:00
contextId="org.eclipse.ui.textEditorScope"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
sequence="M1+7">
</key>
<key
2021-09-25 21:29:02 +00:00
commandId="com.wudsn.ide.lng.editor.LanguageEditorOpenDeclarationCommand"
2018-12-30 15:42:36 +00:00
contextId="org.eclipse.ui.textEditorScope"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
sequence="F3">
</key>
<key
commandId="org.eclipse.debug.ui.commands.ToggleBreakpoint"
contextId="org.eclipse.ui.textEditorScope"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
sequence="M1+M2+B">
</key>
</extension>
<extension
point="org.eclipse.ui.menus">
<menuContribution
locationURI="menu:org.eclipse.ui.main.menu?after=additions">
<menu
2021-09-25 21:29:02 +00:00
id="com.wudsn.ide.lng.editor.LanguageEditorCompilerMenu"
label="%com.wudsn.ide.lng.editor.LanguageEditorCompilerMenu.label"
mnemonic="%com.wudsn.ide.lng.editor.LanguageEditorCompilerMenu.mnemonic">
2018-12-30 15:42:36 +00:00
<visibleWhen
checkEnabled="false">
<with
variable="activeEditor">
2023-02-26 22:18:01 +00:00
<test
property="com.wudsn.ide.lng.IsLanguageEditor"
value="true">
</test>
2018-12-30 15:42:36 +00:00
</with>
</visibleWhen>
<command
2021-09-25 21:29:02 +00:00
commandId="com.wudsn.ide.lng.editor.LanguageEditorOpenSourceFolderCommand"
mnemonic="%com.wudsn.ide.lng.editor.LanguageEditorOpenSourceFolderCommand.mnemonic">
2018-12-30 15:42:36 +00:00
</command>
<command
2021-09-25 21:29:02 +00:00
commandId="com.wudsn.ide.lng.editor.LanguageEditorOpenOutputFolderCommand"
mnemonic="%com.wudsn.ide.lng.editor.LanguageEditorOpenOutputFolderCommand.mnemonic">
2018-12-30 15:42:36 +00:00
</command>
<separator
2021-09-25 21:29:02 +00:00
name="com.wudsn.ide.lng.editor.LanguageEditorCompilerMenuSeparator1"
2018-12-30 15:42:36 +00:00
visible="true">
</separator>
<command
2021-09-25 21:29:02 +00:00
commandId="com.wudsn.ide.lng.editor.LanguageEditorCompileCommand"
id="com.wudsn.ide.lng.editor.LanguageEditorCompileCommand"
mnemonic="%com.wudsn.ide.lng.editor.LanguageEditorCompileCommand.mnemonic">
2018-12-30 15:42:36 +00:00
</command>
<command
2021-09-25 21:29:02 +00:00
commandId="com.wudsn.ide.lng.editor.LanguageEditorCompileAndRunCommand"
id="com.wudsn.ide.lng.editor.LanguageEditorCompileAndRunCommand"
mnemonic="%com.wudsn.ide.lng.editor.LanguageEditorCompileAndRunCommand.mnemonic">
2018-12-30 15:42:36 +00:00
</command>
<separator
2021-09-25 21:29:02 +00:00
name="com.wudsn.ide.lng.editor.LanguageEditorCompilerMenuSeparator2"
2018-12-30 15:42:36 +00:00
visible="true">
</separator>
<command
2021-09-25 21:29:02 +00:00
commandId="com.wudsn.ide.lng.editor.LanguageEditorCompilerHelpCommand"
mnemonic="%com.wudsn.ide.lng.editor.LanguageEditorCompilerHelpCommand.mnemonic">
2018-12-30 15:42:36 +00:00
</command>
</menu>
</menuContribution>
<menuContribution
locationURI="toolbar:org.eclipse.ui.main.toolbar?after=additions">
2021-09-25 21:29:02 +00:00
label="%com.wudsn.ide.lng.editor.LanguageEditorCompilerMenu.label"
2021-09-25 22:52:43 +00:00
<toolbar
id="com.wudsn.ide.lng.editor.LanguageEditorAssemblerToolbar"
label="%com.wudsn.ide.lng.editor.LanguageEditorAssemblerToolbar.label">
<dynamic
class="com.wudsn.ide.lng.editor.LanguageEditorCompileAndRunCommandMenu"
2021-09-25 22:52:43 +00:00
id="com.wudsn.ide.lng.editor.LanguageEditorAssembleAndRunCommandMenu">
<visibleWhen
checkEnabled="true">
</visibleWhen>
</dynamic>
</toolbar>
2018-12-30 15:42:36 +00:00
<toolbar
2021-09-25 21:29:02 +00:00
id="com.wudsn.ide.lng.editor.LanguageEditorToolbar"
label="%com.wudsn.ide.lng.editor.LanguageEditorCompilerToolbar.label">
2018-12-30 15:42:36 +00:00
<dynamic
2021-09-25 21:29:02 +00:00
class="com.wudsn.ide.lng.editor.LanguageEditorCompileAndRunCommandMenu"
id="com.wudsn.ide.lng.editor.LanguageEditorCompileAndRunCommandMenu">
2018-12-30 15:42:36 +00:00
<visibleWhen
checkEnabled="true">
</visibleWhen>
</dynamic>
</toolbar>
2018-12-30 15:42:36 +00:00
</menuContribution>
<menuContribution
locationURI="popup:#TextEditorContext?after=com.wudsn.ide.base.editor.CommonOpenFolderCommand">
<command
2021-09-25 21:29:02 +00:00
commandId="com.wudsn.ide.lng.editor.LanguageEditorOpenDeclarationCommand"
id="com.wudsn.ide.lng.editor.LanguageEditorOpenDeclarationCommand"
2018-12-30 15:42:36 +00:00
style="push">
</command>
</menuContribution>
<menuContribution
locationURI="popup:#TextEditorContext?after=com.wudsn.ide.base.editor.text.TextEditorSortMenu">
<command
2021-09-25 21:29:02 +00:00
commandId="com.wudsn.ide.lng.editor.LanguageEditorToggleCommentCommand"
id="com.wudsn.ide.lng.editor.LanguageEditorToggleCommentCommand"
2018-12-30 15:42:36 +00:00
style="push">
</command>
<command
commandId="org.eclipse.debug.ui.commands.ToggleBreakpoint"
id="org.eclipse.debug.ui.commands.ToggleBreakpoint"
style="push">
</command>
</menuContribution>
</extension>
<extension
point="org.eclipse.help.toc">
<tocProvider
2021-09-25 21:29:02 +00:00
class="com.wudsn.ide.lng.help.LanguageTocProvider">
2018-12-30 15:42:36 +00:00
</tocProvider>
<tocIcon
id="pdf"
openIcon="icons/help-topic-pdf-small.png">
2018-12-30 15:42:36 +00:00
</tocIcon>
</extension>
<extension
point="org.eclipse.help.contentProducer">
<contentProducer
2021-09-25 21:29:02 +00:00
producer="com.wudsn.ide.lng.help.LanguageHelpContentProducer">
2018-12-30 15:42:36 +00:00
</contentProducer>
</extension>
<extension
2021-09-25 21:29:02 +00:00
name="Compiler Action Set for Toolbar"
2018-12-30 15:42:36 +00:00
point="org.eclipse.ui.actionSets">
<actionSet
2021-09-25 21:29:02 +00:00
id="com.wudsn.ide.lng.editor.LanguageEditorCompilerActionSet"
label="%com.wudsn.ide.lng.editor.LanguageEditorCompilerMenu.label"
2018-12-30 15:42:36 +00:00
visible="true">
<action
2021-09-25 21:29:02 +00:00
class="com.wudsn.ide.lng.editor.LanguageEditorCompileCommandDelegate"
definitionId="com.wudsn.ide.lng.editor.LanguageEditorCompileAndRunCommand"
icon="icons/hardware-generic-16x16.png"
2021-09-25 21:29:02 +00:00
id="com.wudsn.ide.lng.editor.LanguageEditorCompileAndRunAction"
label="%com.wudsn.ide.lng.editor.LanguageEditorCompileAndRunCommand.name"
2018-12-30 15:42:36 +00:00
style="pulldown"
2021-09-25 21:29:02 +00:00
toolbarPath="com.wudsn.ide.lng.editor.LanguageEditorToolbar">
2018-12-30 15:42:36 +00:00
</action>
</actionSet>
</extension>
<extension
point="com.wudsn.ide.lng.runners">
2018-12-30 15:42:36 +00:00
<runner
id="default_application"
hardware="GENERIC"
name="%com.wudsn.ide.lng.runner.DefaultApplication.name">
2018-12-30 15:42:36 +00:00
</runner>
<runner
defaultCommandLine="${outputFilePath}"
hardware="GENERIC"
id="user_defined_application"
name="%com.wudsn.ide.lng.runner.UserDefinedApplication.name">
2018-12-30 15:42:36 +00:00
</runner>
</extension>
<extension
point="org.eclipse.debug.core.breakpoints">
<breakpoint
2021-09-25 21:29:02 +00:00
class="com.wudsn.ide.lng.breakpoint.LanguageBreakpoint"
id="languageBreakpoint"
2018-12-30 15:42:36 +00:00
markerType="org.eclipse.debug.core.lineBreakpointMarker"
name="%com.wudsn.ide.lng.breakpoint.LanguageBreakpoint.name">
2018-12-30 15:42:36 +00:00
</breakpoint>
</extension>
<extension
point="org.eclipse.debug.ui.toggleBreakpointsTargetFactories">
<toggleTargetFactory
2021-09-25 21:29:02 +00:00
class="com.wudsn.ide.lng.breakpoint.LanguageBreakpointAdapterFactory"
id="com.wudsn.ide.lng.breakpoint.LanguageBreakpointAdapterFactory">
2018-12-30 15:42:36 +00:00
</toggleTargetFactory>
</extension>
<extension
point="org.eclipse.debug.ui.debugModelPresentations">
<debugModelPresentation
2021-09-25 21:29:02 +00:00
class="com.wudsn.ide.lng.breakpoint.LanguageBreakpoinDebugModelPresentation"
id="com.wudsn.ide.lng">
2018-12-30 15:42:36 +00:00
</debugModelPresentation>
</extension>
<extension point="org.eclipse.ui.popupMenus">
<viewerContribution
id="RulerPopupActions"
targetID="#TextRulerContext">
<action
class="org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate"
definitionId="org.eclipse.debug.ui.commands.ToggleBreakpoint"
id="org.eclipse.debug.ui.commands.ToggleBreakpoint"
2021-09-25 21:29:02 +00:00
label="%com.wudsn.ide.lng.editor.LanguageEditorToggleBreakpointCommand.name"
2018-12-30 15:42:36 +00:00
menubarPath="additions">
</action>
<action
class="org.eclipse.debug.ui.actions.RulerEnableDisableBreakpointActionDelegate"
2021-09-25 21:29:02 +00:00
id="com.wudsn.ide.lng.editor.LanguageEditorRulerEnableDisableBreakpointAction"
2018-12-30 15:42:36 +00:00
label="Enable/Disable Breakpoint (label is overridden by action at runtime)"
menubarPath="additions">
</action>
</viewerContribution>
</extension>
<extension
point="org.eclipse.ui.preferenceTransfer">
<transfer
icon="icons/hardware-generic-16x16.png"
id="com.wudsn.ide.lng.preferences.LanguagesPreferences"
name="%com.wudsn.ide.lng.preferences.LanguagesPreferences.name">
2018-12-30 15:42:36 +00:00
<mapping
scope="instance">
<entry
node="com.wudsn.ide.lng">
2018-12-30 15:42:36 +00:00
</entry>
</mapping>
</transfer>
</extension>
<extension
point="org.eclipse.ui.views">
<view
category="org.eclipse.debug.ui"
2021-09-25 21:29:02 +00:00
class="com.wudsn.ide.lng.symbol.CompilerSymbolsView"
icon="icons/outline-label-definition-16x16.png"
id="com.wudsn.ide.lng.symbol.CompilerSymbolsView"
name="%com.wudsn.ide.lng.symbol.CompilerSymbolsView.name"
2018-12-30 15:42:36 +00:00
restorable="true">
</view>
</extension>
2018-12-30 15:42:36 +00:00
</plugin>