org.eclipse.gmt.umlx.editor.requests
Class CreateFromOutlineRequest
java.lang.Object
org.eclipse.gef.Request
org.eclipse.gef.requests.CreateRequest
org.eclipse.gmt.umlx.editor.requests.CreateFromOutlineRequest
- All Implemented Interfaces:
- org.eclipse.gef.requests.DropRequest, IRequest
public class CreateFromOutlineRequest
- extends org.eclipse.gef.requests.CreateRequest
- implements IRequest
A CreateFromOutlineRequest is constructed with the selection of outline objects
to be instantiated if and where a drop site materialises. The request is therefore
just turned into a deferred command to avoid work until necessary and share paste
functionality.
Method Summary |
org.eclipse.gef.commands.Command |
getCreateCommand(org.eclipse.gef.GraphicalEditPart editPart)
|
java.lang.Object |
getModelObject()
Return the single model object if there is one. |
Methods inherited from class org.eclipse.gef.requests.CreateRequest |
getLocation, getNewObject, getNewObjectType, getSize, setFactory, setLocation, setSize |
Methods inherited from class org.eclipse.gef.Request |
getExtendedData, getType, setExtendedData, setType |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CreateFromOutlineRequest
public CreateFromOutlineRequest(java.util.List<java.lang.Object> newModelObjects)
getCreateCommand
public org.eclipse.gef.commands.Command getCreateCommand(org.eclipse.gef.GraphicalEditPart editPart)
- Specified by:
getCreateCommand
in interface IRequest
getModelObject
public java.lang.Object getModelObject()
- Return the single model object if there is one.
- Returns: