public class PrintGraphicalViewerAction
extends org.eclipse.gef.ui.actions.PrintAction
Additional to the usual printing behaviour (the dialog, where the printer can be selected), this Action also adds another dialog, where the size and position of the graphics on the paper can be specified.
AS_CHECK_BOX, AS_DROP_DOWN_MENU, AS_PUSH_BUTTON, AS_RADIO_BUTTON, AS_UNSPECIFIED, CHECKED, DESCRIPTION, ENABLED, HANDLED, IMAGE, RESULT, TEXT, TOOL_TIP_TEXT
Constructor and Description |
---|
PrintGraphicalViewerAction(IDiagramBehavior diagramBehavior,
IConfigurationProvider configurationProvider)
Creates a new PrintGraphicalViewerAction.
|
Modifier and Type | Method and Description |
---|---|
void |
run()
Prints the GraphicalViewer of the WorkbenchPart.
|
dispose, isEnabled, setLazyEnablementCalculation, update
convertAccelerator, convertAccelerator, findKeyCode, findKeyString, findModifier, findModifierString, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isHandled, notifyResult, removeAcceleratorText, removeMnemonics, runWithEvent, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipText
addPropertyChangeListener, removePropertyChangeListener
public PrintGraphicalViewerAction(IDiagramBehavior diagramBehavior, IConfigurationProvider configurationProvider)
configurationProvider
- The IConfigurationProviderInternal.part
- The WorkbenchPart (e.g. the editor), to which this Action
belongs. From the WorkbenchPart the GraphicalViewer will be
determined.