Class CompareBslModuleTranslationHandler
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.core.commands.AbstractHandler
com.e1c.langtool.v8.dt.internal.bsl.ui.commands.CompareBslTranslationAbstractHandler
com.e1c.langtool.v8.dt.internal.bsl.ui.commands.CompareBslModuleTranslationHandler
- All Implemented Interfaces:
org.eclipse.core.commands.IHandler,org.eclipse.core.commands.IHandler2
Parametrized command handler implementation to open side-by-side BSL module editor from 1C:EDT perspective.
Will open side-by-side editor for BSL file retrived from selected Navigator item by querying passed feature name
and their counterpart from linked translated/translating project.
Feature name must be specified via
com.e1c.langtool.v8.dt.internal.bsl.ui.commands.CompareBslTranslation.featureName parameter.
Example command parameter for Common Module:
<extension
point="org.eclipse.ui.menus">
<menuContribution
allPopups="false"
locationURI="popup:com._1c.g5.v8.dt.navigator.ui.navigator.popup">
<command
commandId="com.e1c.langtool.v8.dt.internal.bsl.ui.commands.CompareBslModuleTranslation"
label="%command.CompareBslModuleTranslation.commonModuleLabel"
style="push">
<visibleWhen>
<iterate ifEmpty="false">
<instanceof value="com._1c.g5.v8.dt.metadata.mdclass.CommonModule" />
</iterate>
</visibleWhen>
<parameter
name="com.e1c.langtool.v8.dt.internal.bsl.ui.commands.CompareBslTranslation.featureName"
value="module"
/>
</command>
</menuContribution>
-
Field Summary
Fields inherited from class com.e1c.langtool.v8.dt.internal.bsl.ui.commands.CompareBslTranslationAbstractHandler
qualifiedNameFilePathConverter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoPreprocessEvent(org.eclipse.core.commands.ExecutionEvent event) protected voiddoProcessItem(org.eclipse.ui.IWorkbenchWindow workbenchWindow, Object item) Methods inherited from class com.e1c.langtool.v8.dt.internal.bsl.ui.commands.CompareBslTranslationAbstractHandler
execute, openSideBySideEditorMethods inherited from class org.eclipse.core.commands.AbstractHandler
addHandlerListener, dispose, fireHandlerChanged, hasListeners, isEnabled, isHandled, removeHandlerListener, setBaseEnabled, setEnabledMethods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
-
Constructor Details
-
CompareBslModuleTranslationHandler
public CompareBslModuleTranslationHandler()
-
-
Method Details
-
doPreprocessEvent
protected void doPreprocessEvent(org.eclipse.core.commands.ExecutionEvent event) - Specified by:
doPreprocessEventin classCompareBslTranslationAbstractHandler
-
doProcessItem
- Specified by:
doProcessItemin classCompareBslTranslationAbstractHandler
-