org.eclipse.emf.edit.ui.action
Class PasteAction

java.lang.Object
  extended byorg.eclipse.jface.action.Action
      extended byorg.eclipse.ui.actions.BaseSelectionListenerAction
          extended byorg.eclipse.emf.edit.ui.action.CommandActionHandler
              extended byorg.eclipse.emf.edit.ui.action.PasteAction
All Implemented Interfaces:
IAction, ISelectionChangedListener

public class PasteAction
extends CommandActionHandler

A paste action is implemented by creating a PasteFromClipboardCommand.


Field Summary
 
Fields inherited from class org.eclipse.emf.edit.ui.action.CommandActionHandler
command, domain
 
Fields inherited from interface org.eclipse.jface.action.IAction
AS_CHECK_BOX, AS_DROP_DOWN_MENU, AS_PUSH_BUTTON, AS_RADIO_BUTTON, AS_UNSPECIFIED, CHECKED, DESCRIPTION, ENABLED, IMAGE, RESULT, TEXT, TOOL_TIP_TEXT
 
Constructor Summary
PasteAction()
           
PasteAction(EditingDomain domain)
           
 
Method Summary
 Command createCommand(Collection selection)
          This default implementation simply returns UnexecutableCommand.INSTANCE.
 void setActiveEditor(IEditorPart editorPart)
           
 
Methods inherited from class org.eclipse.emf.edit.ui.action.CommandActionHandler
getEditingDomain, run, setEditingDomain, updateSelection
 
Methods inherited from class org.eclipse.ui.actions.BaseSelectionListenerAction
clearCache, getStructuredSelection, runWithEvent, selectionChanged, selectionChanged
 
Methods inherited from class org.eclipse.jface.action.Action
addPropertyChangeListener, convertAccelerator, convertAccelerator, findKeyCode, findKeyString, findModifier, findModifierString, firePropertyChange, firePropertyChange, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isEnabled, notifyResult, removeAcceleratorText, removeMnemonics, removePropertyChangeListener, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PasteAction

public PasteAction(EditingDomain domain)

PasteAction

public PasteAction()
Method Detail

createCommand

public Command createCommand(Collection selection)
Description copied from class: CommandActionHandler
This default implementation simply returns UnexecutableCommand.INSTANCE.

Overrides:
createCommand in class CommandActionHandler

setActiveEditor

public void setActiveEditor(IEditorPart editorPart)

Copyright 2001-2004 IBM Corporation and others.
All Rights Reserved.