Class FontNameAction
- 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.FontNameAction
-
- 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 FontNameAction extends org.eclipse.gmf.runtime.diagram.ui.internal.actions.CustomContributionItem implements ISelectionFormatChangeListener, org.eclipse.swt.widgets.Listener, IMoxelControlAction
Set font name action
-
-
Field Summary
Fields Modifier and Type Field Description protected MoxelEditoreditorEditor to apply command to
-
Constructor Summary
Constructors Constructor Description FontNameAction(org.eclipse.ui.IWorkbenchPage workbenchPage)Creates new instance ofFontNameAction
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancalculateEnabled()protected org.eclipse.swt.widgets.ControlcreateControl(org.eclipse.swt.widgets.Composite parent)protected org.eclipse.gef.RequestcreateTargetRequest()protected voiddoRun(org.eclipse.core.runtime.IProgressMonitor progressMonitor)voidhandleEvent(org.eclipse.swt.widgets.Event event)protected booleanisOperationHistoryListener()(non-Javadoc)voidonChangeSelectionFormat()protected voidrefreshItem()Refresh itemvoidsetEditor(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
-
FontNameAction
public FontNameAction(org.eclipse.ui.IWorkbenchPage workbenchPage)
Creates new instance ofFontNameAction- Parameters:
workbenchPage-IWorkbenchPage
-
-
Method Detail
-
handleEvent
public void handleEvent(org.eclipse.swt.widgets.Event event)
- Specified by:
handleEventin interfaceorg.eclipse.swt.widgets.Listener
-
setEditor
public void setEditor(MoxelEditor editor)
Description copied from interface:IMoxelControlActionSet up moxel editor- Specified by:
setEditorin interfaceIMoxelControlAction- Parameters:
editor-MoxelEditor
-
onChangeSelectionFormat
public void onChangeSelectionFormat()
- Specified by:
onChangeSelectionFormatin interfaceISelectionFormatChangeListener
-
refreshItem
protected void refreshItem()
Refresh item- Overrides:
refreshItemin classorg.eclipse.gmf.runtime.common.ui.action.AbstractContributionItem- See Also:
AbstractContributionItem.refreshItem()
-
isOperationHistoryListener
protected boolean isOperationHistoryListener()
(non-Javadoc)- Overrides:
isOperationHistoryListenerin classorg.eclipse.gmf.runtime.common.ui.action.AbstractContributionItem- See Also:
AbstractContributionItem.isOperationHistoryListener()
-
createControl
protected org.eclipse.swt.widgets.Control createControl(org.eclipse.swt.widgets.Composite parent)
- Overrides:
createControlin classorg.eclipse.gmf.runtime.common.ui.action.AbstractContributionItem
-
doRun
protected void doRun(org.eclipse.core.runtime.IProgressMonitor progressMonitor)
- Overrides:
doRunin classorg.eclipse.gmf.runtime.diagram.ui.internal.actions.CustomContributionItem
-
calculateEnabled
protected boolean calculateEnabled()
- Overrides:
calculateEnabledin classorg.eclipse.gmf.runtime.diagram.ui.internal.actions.CustomContributionItem
-
createTargetRequest
protected org.eclipse.gef.Request createTargetRequest()
- Specified by:
createTargetRequestin classorg.eclipse.gmf.runtime.diagram.ui.internal.actions.CustomContributionItem
-
-