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).
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
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.