Class AlignHandler
- java.lang.Object
-
- com._1c.g5.v8.dt.moxel.ui.handlers.BaseHandler
-
- com._1c.g5.v8.dt.moxel.ui.handlers.AlignHandler
-
- All Implemented Interfaces:
org.eclipse.core.commands.IHandler
,org.eclipse.ui.commands.IElementUpdater
- Direct Known Subclasses:
AlignCenterHandler
,AlignJustifyHandler
,AlignLeftHandler
,AlignRightHandler
public class AlignHandler extends BaseHandler implements org.eclipse.ui.commands.IElementUpdater
Base handler for various 'Align ...' commands
-
-
Field Summary
Fields Modifier and Type Field Description protected HorizontalAlignment
alignType
-
Constructor Summary
Constructors Constructor Description AlignHandler(HorizontalAlignment alignType)
Creates new instance ofAlignHandler
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
execute(org.eclipse.core.commands.ExecutionEvent event)
void
updateElement(org.eclipse.ui.menus.UIElement element, Map parameters)
-
Methods inherited from class com._1c.g5.v8.dt.moxel.ui.handlers.BaseHandler
addHandlerListener, dispose, getControl, isEnabled, isHandled, removeHandlerListener
-
-
-
-
Field Detail
-
alignType
protected HorizontalAlignment alignType
-
-
Constructor Detail
-
AlignHandler
public AlignHandler(HorizontalAlignment alignType)
Creates new instance ofAlignHandler
- Parameters:
alignType
- - alignment type
-
-
Method Detail
-
execute
public Object execute(org.eclipse.core.commands.ExecutionEvent event) throws org.eclipse.core.commands.ExecutionException
- Specified by:
execute
in interfaceorg.eclipse.core.commands.IHandler
- Throws:
org.eclipse.core.commands.ExecutionException
-
updateElement
public void updateElement(org.eclipse.ui.menus.UIElement element, Map parameters)
- Specified by:
updateElement
in interfaceorg.eclipse.ui.commands.IElementUpdater
-
-