Class DefaultEditPolicyFactory
java.lang.Object
org.eclipse.graphiti.ui.internal.config.AbstractConfigurationProviderHolder
org.eclipse.graphiti.ui.internal.policy.DefaultEditPolicyFactory
- All Implemented Interfaces:
IConfigurationProviderHolder,IEditPolicyFactory
public class DefaultEditPolicyFactory
extends AbstractConfigurationProviderHolder
implements IEditPolicyFactory
A default implementation of the interface IEditPolicyFactory.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefaultEditPolicyFactory(IConfigurationProviderInternal configurationProvider) Creates a new DefaultEditPolicyFactory. -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.gef.EditPolicyorg.eclipse.gef.EditPolicycreateConnectionDeleteEditPolicy(IConfigurationProvider configurationProvider) org.eclipse.gef.EditPolicyorg.eclipse.gef.EditPolicyCreates an EditPolicy give feedback for if a ConnectionEditPart is selected.org.eclipse.gef.EditPolicyCreates an EditPolicy to handle direct-editing of EditParts.org.eclipse.gef.EditPolicycreateModelObjectDeleteEditPolicy(IConfigurationProvider configurationProvider) Creates an EditPolicy to handle the deletion of EditParts.org.eclipse.gef.EditPolicyCreates an EditPolicy, which 'forbids' any Layout dependent Commands.org.eclipse.gef.EditPolicyCreates an EditPolicy, which gives feedback for if an EditPart is selected.org.eclipse.gef.EditPolicyorg.eclipse.gef.EditPolicyCreates an EditPolicy, where the Layout of the EditParts is important: they must have an XYLayout.voiddispose()Disposes this object and frees all resources.Methods inherited from class org.eclipse.graphiti.ui.internal.config.AbstractConfigurationProviderHolder
getConfigurationProviderMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.graphiti.ui.internal.config.IConfigurationProviderHolder
getConfigurationProvider
-
Field Details
-
HOVER_POLICY_KEY
-
-
Constructor Details
-
DefaultEditPolicyFactory
Creates a new DefaultEditPolicyFactory.- Parameters:
configurationProvider- The IConfigurationProviderInternal, to which this factory belongs.
-
-
Method Details
-
dispose
public void dispose()Description copied from interface:IEditPolicyFactoryDisposes this object and frees all resources. This object will be unusable afterwards.- Specified by:
disposein interfaceIEditPolicyFactory
-
createShapeForbidLayoutEditPolicy
public org.eclipse.gef.EditPolicy createShapeForbidLayoutEditPolicy()Description copied from interface:IEditPolicyFactoryCreates an EditPolicy, which 'forbids' any Layout dependent Commands. All methods of this EditPolicy return null, which is different from using no EditPolicy at all, because it will create a visible feedback that the requests are forbidden. This EditPolicy can for example be used for those EditParts, which do not have any children. It forbids commands for the following requests:- A child EditPart shall be moved from another parent-EditPart into this parent-EditPart.
- A child EditPart shall be moved inside this parent-EditPart.
- A new child EditPart shall be created inside this parent-EditPart (with the CreationTool).
- Specified by:
createShapeForbidLayoutEditPolicyin interfaceIEditPolicyFactory
-
createShapeXYLayoutEditPolicy
public org.eclipse.gef.EditPolicy createShapeXYLayoutEditPolicy()Description copied from interface:IEditPolicyFactoryCreates an EditPolicy, where the Layout of the EditParts is important: they must have an XYLayout. It assumes, that this EditPart is a parent, whose children can be added/deleted/moved. It creates commands for the following requests:- A child EditPart shall be moved from another parent-EditPart into this parent-EditPart.
- A child EditPart shall be moved inside this parent-EditPart (resized or changed XY-position).
- A new child EditPart shall be created inside this parent-EditPart (with the CreationTool).
- Specified by:
createShapeXYLayoutEditPolicyin interfaceIEditPolicyFactory
-
createShapeHighlightEditPolicy
public org.eclipse.gef.EditPolicy createShapeHighlightEditPolicy()Description copied from interface:IEditPolicyFactoryCreates an EditPolicy, which gives feedback for if an EditPart is selected. It does not create any commands. It can be used for example to do the following:- Highlight the selected EditPart.
- Specified by:
createShapeHighlightEditPolicyin interfaceIEditPolicyFactory
-
createShapeHoverEditPolicy
public org.eclipse.gef.EditPolicy createShapeHoverEditPolicy()- Specified by:
createShapeHoverEditPolicyin interfaceIEditPolicyFactory
-
createConnectionHighlightEditPolicy
public org.eclipse.gef.EditPolicy createConnectionHighlightEditPolicy()Description copied from interface:IEditPolicyFactoryCreates an EditPolicy give feedback for if a ConnectionEditPart is selected. This includes the connection-handles at the start/end of the connection. It does not create any commands. It can be used for example to do the following:- Create selection-handles at the beginning/end of the selected ConnectionEditPart.
- Highlight the selected ConnectionEditPart.
- Specified by:
createConnectionHighlightEditPolicyin interfaceIEditPolicyFactory
-
createConnectionEditPolicy
public org.eclipse.gef.EditPolicy createConnectionEditPolicy()- Specified by:
createConnectionEditPolicyin interfaceIEditPolicyFactory
-
createDirectEditPolicy
public org.eclipse.gef.EditPolicy createDirectEditPolicy()Description copied from interface:IEditPolicyFactoryCreates an EditPolicy to handle direct-editing of EditParts. Typically not the complete EditPart shall be edited directly, but only one control of it (e.g. one Label). For this control an appropriate CellEditor would usually be shown. It creates commands for the following requests:- An EditPart shall be edited directly.
- Specified by:
createDirectEditPolicyin interfaceIEditPolicyFactory
-
createModelObjectDeleteEditPolicy
public org.eclipse.gef.EditPolicy createModelObjectDeleteEditPolicy(IConfigurationProvider configurationProvider) Description copied from interface:IEditPolicyFactoryCreates an EditPolicy to handle the deletion of EditParts. It creates commands for the following requests:- An EditPart shall be deleted.
- Specified by:
createModelObjectDeleteEditPolicyin interfaceIEditPolicyFactory
-
createConnectionBendpointsEditPolicy
public org.eclipse.gef.EditPolicy createConnectionBendpointsEditPolicy()- Specified by:
createConnectionBendpointsEditPolicyin interfaceIEditPolicyFactory
-
createConnectionDeleteEditPolicy
public org.eclipse.gef.EditPolicy createConnectionDeleteEditPolicy(IConfigurationProvider configurationProvider) - Specified by:
createConnectionDeleteEditPolicyin interfaceIEditPolicyFactory
-