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 MoxelEditor
editor
Editor 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 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()
(non-Javadoc)void
onChangeSelectionFormat()
protected void
refreshItem()
Refresh itemvoid
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
-
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:
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()
Refresh item- Overrides:
refreshItem
in classorg.eclipse.gmf.runtime.common.ui.action.AbstractContributionItem
- See Also:
AbstractContributionItem.refreshItem()
-
isOperationHistoryListener
protected boolean isOperationHistoryListener()
(non-Javadoc)- Overrides:
isOperationHistoryListener
in 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:
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
-
-