GEF v2.0

org.eclipse.gef.requests
Class DeleteRequest

java.lang.Object
  |
  +--org.eclipse.gef.Request
        |
        +--org.eclipse.gef.requests.GroupRequest
              |
              +--org.eclipse.gef.requests.DeleteRequest

public class DeleteRequest
extends GroupRequest

A Request to delete EditPart(s).


Constructor Summary
DeleteRequest()
          Creates a DeleteRequest with the default type.
DeleteRequest(Object type)
          Creates a DeleteRequest with the given type.
 
Method Summary
 void addContribution(Object id)
          Adds an EditPart to the list of contributions.
 boolean containsContribution(Object id)
          Checks to see if the given EditPart is in the list of contributions.
 List getContributions()
          Returns the list of contributions.
 void setContributions(List list)
          Sets the EditParts making the request.
 
Methods inherited from class org.eclipse.gef.requests.GroupRequest
getEditParts, setEditParts, setEditParts
 
Methods inherited from class org.eclipse.gef.Request
getType, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeleteRequest

public DeleteRequest()
Creates a DeleteRequest with the default type.

DeleteRequest

public DeleteRequest(Object type)
Creates a DeleteRequest with the given type.
Parameters:
type - The type of request.
Method Detail

setContributions

public void setContributions(List list)
Sets the EditParts making the request.
Parameters:
list - The list of EditParts.

addContribution

public void addContribution(Object id)
Adds an EditPart to the list of contributions.
Parameters:
id - The EditPart to be added.

containsContribution

public boolean containsContribution(Object id)
Checks to see if the given EditPart is in the list of contributions.
Returns:
true if id is in the list of contributions.

getContributions

public List getContributions()
Returns the list of contributions.
Returns:
The list of contributions.

GEF v2.0