Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.vinculum.processeditor.actions
Class PasteTemplateAction  view PasteTemplateAction download PasteTemplateAction.java

java.lang.Object
  extended bySelectionAction
      extended bycom.vinculum.processeditor.actions.PasteTemplateAction
Direct Known Subclasses:
ProcessPasteTemplateAction

public abstract class PasteTemplateAction
extends SelectionAction


Field Summary
private  CreateRequest request
           
 
Constructor Summary
PasteTemplateAction(org.eclipse.ui.IEditorPart editor)
          Constructor for PasteTemplateAction.
 
Method Summary
protected  boolean calculateEnabled()
          Returns true if the clipboard's contents are not null and the command returned by createPasteCommand() 55 can execute.
protected  Command createPasteCommand()
          Creates and returns a command (which may be null) to create a new EditPart based on the template on the clipboard.
protected  java.lang.Object getClipboardContents()
          Returns the contents of the default GEF Clipboard.
protected abstract  CreationFactory getFactory(java.lang.Object template)
          Returns the appropriate Factory object to be used for the specified template.
protected abstract  Point getPasteLocation()
           
protected  void init()
           
 void run()
          Executes the command returned by createPasteCommand() 55 .
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

request

private CreateRequest request
Constructor Detail

PasteTemplateAction

public PasteTemplateAction(org.eclipse.ui.IEditorPart editor)
Constructor for PasteTemplateAction.

Method Detail

calculateEnabled

protected boolean calculateEnabled()
Returns true if the clipboard's contents are not null and the command returned by createPasteCommand() 55 can execute.


createPasteCommand

protected Command createPasteCommand()
Creates and returns a command (which may be null) to create a new EditPart based on the template on the clipboard.


getClipboardContents

protected java.lang.Object getClipboardContents()
Returns the contents of the default GEF Clipboard.


getFactory

protected abstract CreationFactory getFactory(java.lang.Object template)
Returns the appropriate Factory object to be used for the specified template. This Factory is used on the CreateRequest that is sent to the target EditPart.


getPasteLocation

protected abstract Point getPasteLocation()

init

protected void init()

run

public void run()
Executes the command returned by createPasteCommand() 55 .