public class CopyTemplateAction extends WorkbenchPartAction implements ISelectionChangedListener
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 |
|---|
CopyTemplateAction(IEditorPart editor)
Constructs a new CopyTemplateAction.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
calculateEnabled()
Returns whether the selected EditPart is a TemplateEditPart.
|
void |
dispose()
Disposes the action when it is no longer needed.
|
void |
run()
Sets the default
Clipboard's contents to be the
currently selected template. |
void |
selectionChanged(SelectionChangedEvent event)
Sets the selected EditPart and refreshes the enabled state of this
action.
|
execute, getCommandStack, getWorkbenchPart, init, isEnabled, refresh, setLazyEnablementCalculation, setWorkbenchPart, updateconvertAccelerator, 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, setToolTipTextaddPropertyChangeListener, firePropertyChange, firePropertyChange, removePropertyChangeListeneraddListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObjectpublic CopyTemplateAction(IEditorPart editor)
editor - the workbench partEditorPartAction.EditorPartAction(IEditorPart)protected boolean calculateEnabled()
calculateEnabled in class WorkbenchPartActionpublic void dispose()
WorkbenchPartActiondispose in interface Disposabledispose in class WorkbenchPartActionWorkbenchPartAction.dispose()public void run()
Clipboard's contents to be the
currently selected template.public void selectionChanged(SelectionChangedEvent event)
selectionChanged in interface ISelectionChangedListenerISelectionChangedListener.selectionChanged(SelectionChangedEvent)Copyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.