Class FontHeightAction
- java.lang.Object
-
- org.eclipse.jface.action.ContributionItem
-
- org.eclipse.gmf.runtime.common.ui.action.AbstractContributionItem
-
- org.eclipse.gmf.runtime.diagram.ui.internal.actions.CustomContributionItem
-
- com._1c.g5.v8.dt.moxel.ui.actions.FontHeightAction
-
- All Implemented Interfaces:
IMoxelControlAction
,ISelectionFormatChangeListener
,org.eclipse.core.commands.operations.IOperationHistoryListener
,org.eclipse.gmf.runtime.common.ui.action.IActionWithProgress
,org.eclipse.jface.action.IContributionItem
,ISelectionChangedListener
,org.eclipse.swt.widgets.Listener
public class FontHeightAction extends org.eclipse.gmf.runtime.diagram.ui.internal.actions.CustomContributionItem implements ISelectionFormatChangeListener, org.eclipse.swt.widgets.Listener, IMoxelControlAction
Set font height action
-
-
Field Summary
Fields Modifier and Type Field Description protected MoxelEditor
editor
Editor to apply command to
-
Constructor Summary
Constructors Constructor Description FontHeightAction(org.eclipse.ui.IWorkbenchPage workbenchPage)
Creates new instance ofFontHeightAction
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
calculateEnabled()
protected org.eclipse.swt.widgets.Control
createControl(org.eclipse.swt.widgets.Composite parent)
protected org.eclipse.gef.Request
createTargetRequest()
protected void
doRun(org.eclipse.core.runtime.IProgressMonitor progressMonitor)
void
handleEvent(org.eclipse.swt.widgets.Event event)
protected boolean
isOperationHistoryListener()
void
onChangeSelectionFormat()
protected void
refreshItem()
void
setEditor(MoxelEditor editor)
Set up moxel editor-
Methods inherited from class org.eclipse.gmf.runtime.diagram.ui.internal.actions.CustomContributionItem
createOperationSet, dispose, execute, filterEditPartsMatching, getCommand, getCommand, getCommandLabel, getDiagramCommandStack, getDiagramEditDomain, getDiagramEditPart, getDiagramGraphicalViewer, getDiagramWorkbenchPart, getOperationSet, getSelectedObjects, getTargetEditParts, getTargetRequest, refresh, updateTargetRequest
-
Methods inherited from class org.eclipse.gmf.runtime.common.ui.action.AbstractContributionItem
computeWidth, createMenuItem, createToolItem, execute, fill, fill, fill, getActionManager, getControl, getItem, getItemListener, getLabel, getMenuItem, getOperationHistory, getSelection, getStructuredSelection, getToolItem, getUndoContext, getWorkbenchPart, getWorkIndicatorType, handle, handleWidgetDispose, handleWidgetEvent, historyNotification, init, isEnabled, isRunnable, isSelectionListener, isSetup, needsSetup, openErrorDialog, run, runWithEvent, selectionChanged, setEnabled, setItem, setLabel, setSetup, setup, setWorkbenchPart, update
-
Methods inherited from class org.eclipse.jface.action.ContributionItem
fill, getId, getParent, isDirty, isDynamic, isGroupMarker, isSeparator, isVisible, saveWidgetState, setId, setParent, setVisible, toString, update
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com._1c.g5.v8.dt.moxel.ui.actions.IMoxelControlAction
refresh
-
-
-
-
Field Detail
-
editor
protected MoxelEditor editor
Editor to apply command to
-
-
Constructor Detail
-
FontHeightAction
public FontHeightAction(org.eclipse.ui.IWorkbenchPage workbenchPage)
Creates new instance ofFontHeightAction
- Parameters:
workbenchPage
-IWorkbenchPage
-
-
Method Detail
-
handleEvent
public void handleEvent(org.eclipse.swt.widgets.Event event)
- Specified by:
handleEvent
in interfaceorg.eclipse.swt.widgets.Listener
-
setEditor
public void setEditor(MoxelEditor editor)
Description copied from interface:IMoxelControlAction
Set up moxel editor- Specified by:
setEditor
in interfaceIMoxelControlAction
- Parameters:
editor
-MoxelEditor
-
onChangeSelectionFormat
public void onChangeSelectionFormat()
- Specified by:
onChangeSelectionFormat
in interfaceISelectionFormatChangeListener
-
refreshItem
protected void refreshItem()
- Overrides:
refreshItem
in classorg.eclipse.gmf.runtime.common.ui.action.AbstractContributionItem
-
isOperationHistoryListener
protected boolean isOperationHistoryListener()
- Overrides:
isOperationHistoryListener
in classorg.eclipse.gmf.runtime.common.ui.action.AbstractContributionItem
-
createControl
protected org.eclipse.swt.widgets.Control createControl(org.eclipse.swt.widgets.Composite parent)
- Overrides:
createControl
in classorg.eclipse.gmf.runtime.common.ui.action.AbstractContributionItem
-
doRun
protected void doRun(org.eclipse.core.runtime.IProgressMonitor progressMonitor)
- Overrides:
doRun
in classorg.eclipse.gmf.runtime.diagram.ui.internal.actions.CustomContributionItem
-
calculateEnabled
protected boolean calculateEnabled()
- Overrides:
calculateEnabled
in classorg.eclipse.gmf.runtime.diagram.ui.internal.actions.CustomContributionItem
-
createTargetRequest
protected org.eclipse.gef.Request createTargetRequest()
- Specified by:
createTargetRequest
in classorg.eclipse.gmf.runtime.diagram.ui.internal.actions.CustomContributionItem
-
-