de.cau.cs.kieler.core.ui.policies
Class DeletionPolicyProvider
java.lang.Object
org.eclipse.gmf.runtime.common.core.service.AbstractProvider
de.cau.cs.kieler.core.ui.policies.DeletionPolicyProvider
- All Implemented Interfaces:
- IProvider, org.eclipse.gmf.runtime.diagram.ui.services.editpolicy.IEditPolicyProvider
- Direct Known Subclasses:
- DeletionPolicy
public class DeletionPolicyProvider
- extends AbstractProvider
- implements org.eclipse.gmf.runtime.diagram.ui.services.editpolicy.IEditPolicyProvider
This policy is responsible for ensuring that elements get deleted from model
or not at all.
- Rating

- (2009-02-24)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DeletionPolicyProvider
public DeletionPolicyProvider()
createEditPolicies
public void createEditPolicies(EditPart editPart)
- Creates the edit policies.
- Specified by:
createEditPolicies
in interface org.eclipse.gmf.runtime.diagram.ui.services.editpolicy.IEditPolicyProvider
- Parameters:
editPart
- The editPart to register this policy with.
isUnremovableEditPart
public boolean isUnremovableEditPart(EditPart editPart)
- Determines whether an edit part is unremovable. Subclasses should
override.
- Parameters:
editPart
- the edit part
- Returns:
- true if the edit part should not be removed.
provides
public boolean provides(IOperation operation)
- Checks if this edit policy provides an operation.
- Specified by:
provides
in interface IProvider
- Parameters:
operation
- The operation to check.
- Returns:
- True if this edit policy provides the given operation