Package org.eclipse.gef
Class Request
java.lang.Object
org.eclipse.gef.Request
- Direct Known Subclasses:
- CreateRequest,- ForwardedRequest,- GroupRequest,- LocationRequest
An Object used to communicate with EditParts. Request encapsulates the
 information EditParts need to perform various functions. Requests are used
 for obtaining commands, showing feedback, and performing generic operations.
 TODO: This should probably go into the org.eclipse.gef.requests package.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionReturns a Map that can be used to save useful information in this request.getType()Returns the type of the request.voidsetExtendedData(Map map) Sets the given map to be the new extended data (by reference) for this request.voidSets the type of the Request.
- 
Constructor Details- 
Requestpublic Request()Constructs an empty Request
- 
RequestConstructs a Request with the specified type- Parameters:
- type- the Request type
- See Also:
 
 
- 
- 
Method Details- 
getExtendedDataReturns a Map that can be used to save useful information in this request.- Returns:
- a map to store useful information
 
- 
getTypeReturns the type of the request. The type is often used as a quick way to filter recognized Requests. Once the type is identified, the Request is usually cast to a more specific subclass containing additional data.- Returns:
- the Request type
 
- 
setExtendedDataSets the given map to be the new extended data (by reference) for this request.- Parameters:
- map- The new map
 
- 
setTypeSets the type of the Request.- Parameters:
- type- the Request type
 
 
-