|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.gmf.runtime.common.core.service.AbstractProvider
de.cau.cs.kieler.core.model.gmf.policies.AbstractDeletionPolicyProvider
public abstract class AbstractDeletionPolicyProvider
This policy is responsible for ensuring that elements get deleted from model or not at all.
Nested Class Summary | |
---|---|
protected class |
AbstractDeletionPolicyProvider.KielerComponentEditPolicy
The policy to be applied to the edit parts for controlling deletion behaviour. |
Constructor Summary | |
---|---|
AbstractDeletionPolicyProvider()
|
Method Summary | |
---|---|
void |
createEditPolicies(EditPart editPart)
Creates the edit policies. |
protected abstract EPackage |
getEPackage()
Get the ePackage of the deletion policy. |
protected boolean |
isTopNode(EditPart editPart)
Determine whether the edit part is the root edit part and should not be deleted. |
protected boolean |
isUnremovableEditPart(EditPart editPart)
Determines whether an edit part is unremovable. |
boolean |
provides(IOperation operation)
Checks if this edit policy provides an operation. |
Methods inherited from class org.eclipse.gmf.runtime.common.core.service.AbstractProvider |
---|
addProviderChangeListener, fireProviderChange, removeProviderChangeListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.gmf.runtime.common.core.service.IProvider |
---|
addProviderChangeListener, removeProviderChangeListener |
Constructor Detail |
---|
public AbstractDeletionPolicyProvider()
Method Detail |
---|
public void createEditPolicies(EditPart editPart)
createEditPolicies
in interface org.eclipse.gmf.runtime.diagram.ui.services.editpolicy.IEditPolicyProvider
editPart
- The editPart to register this policy with.protected boolean isUnremovableEditPart(EditPart editPart)
editPart
- the edit part
protected boolean isTopNode(EditPart editPart)
editPart
- the edit part
protected abstract EPackage getEPackage()
public boolean provides(IOperation operation)
provides
in interface IProvider
operation
- The operation to check.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |