本文整理汇总了Java中org.eclipse.gef.editpolicies.ConnectionEndpointEditPolicy类的典型用法代码示例。如果您正苦于以下问题:Java ConnectionEndpointEditPolicy类的具体用法?Java ConnectionEndpointEditPolicy怎么用?Java ConnectionEndpointEditPolicy使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ConnectionEndpointEditPolicy类属于org.eclipse.gef.editpolicies包,在下文中一共展示了ConnectionEndpointEditPolicy类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createEditPolicies
import org.eclipse.gef.editpolicies.ConnectionEndpointEditPolicy; //导入依赖的package包/类
@Override
protected void createEditPolicies() {
installEditPolicy(EditPolicy.COMPONENT_ROLE, new GW4EdgeDeletePolicy());
installEditPolicy(EditPolicy.CONNECTION_ENDPOINTS_ROLE, new ConnectionEndpointEditPolicy());
installEditPolicy(EditPolicy.CONNECTION_ROLE, new GW4EdgeDeletePolicy());
installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new GW4EEdgeDirectEditPolicy());
installEditPolicy(EditPolicy.CONNECTION_BENDPOINTS_ROLE, new GW4ELinkBendpointEditPolicy());
}
示例2: createEditPolicies
import org.eclipse.gef.editpolicies.ConnectionEndpointEditPolicy; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
protected void createEditPolicies() {
installEditPolicy(EditPolicy.CONNECTION_ENDPOINTS_ROLE, new ConnectionEndpointEditPolicy());
// this.installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE,
// new ConnectionGraphicalNodeEditPolicy());
}
示例3: createEditPolicies
import org.eclipse.gef.editpolicies.ConnectionEndpointEditPolicy; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
protected void createEditPolicies() {
this.installEditPolicy(EditPolicy.CONNECTION_ENDPOINTS_ROLE,
new ConnectionEndpointEditPolicy());
// this.installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE,
// new ConnectionGraphicalNodeEditPolicy());
}
示例4: createEditPolicies
import org.eclipse.gef.editpolicies.ConnectionEndpointEditPolicy; //导入依赖的package包/类
/** {@inheritDoc} */
@Override
protected void createEditPolicies() {
installEditPolicy(EditPolicy.CONNECTION_ENDPOINTS_ROLE, new ConnectionEndpointEditPolicy());
// edit policy, which handel the creation of relations
installEditPolicy(EditPolicy.CONNECTION_ROLE, new ORMRelationConnectionEditPolicy());
// edit policy, which the creation, moving and deletion of bendpoints on a relation
installEditPolicy(EditPolicy.CONNECTION_BENDPOINTS_ROLE, new ORMRelationBendpointEditPolicy());
installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new ORMRelationGraphicalNodeEditPolicy());
}
示例5: createEditPolicies
import org.eclipse.gef.editpolicies.ConnectionEndpointEditPolicy; //导入依赖的package包/类
protected void createEditPolicies() {
// Selection handle edit policy.
// Makes the connection show a feedback, when selected by the user.
installEditPolicy(EditPolicy.CONNECTION_ENDPOINTS_ROLE,
new ConnectionEndpointEditPolicy());
// Allows the removal of the connection model element
installEditPolicy(EditPolicy.CONNECTION_ROLE,
new ConnectionEditPolicy() {
protected Command getDeleteCommand(GroupRequest request) {
return new ConnectionDeleteCommand(getCastedModel());
}
});
}
示例6: createEditPolicies
import org.eclipse.gef.editpolicies.ConnectionEndpointEditPolicy; //导入依赖的package包/类
@Override
protected void createEditPolicies() {
installEditPolicy(EditPolicy.CONNECTION_ENDPOINTS_ROLE, new ConnectionEndpointEditPolicy());
installEditPolicy(EditPolicy.CONNECTION_ROLE, new ConnectionEditPolicy() {
@Override
protected Command getDeleteCommand(GroupRequest arg0) {
return new DeleteLinkCommand(getModel());
}
});
}
示例7: createEditPolicies
import org.eclipse.gef.editpolicies.ConnectionEndpointEditPolicy; //导入依赖的package包/类
@Override
protected void createEditPolicies() {
installEditPolicy(EditPolicy.CONNECTION_ENDPOINTS_ROLE, new ConnectionEndpointEditPolicy());
installEditPolicy(EditPolicy.CONNECTION_ROLE, new LinkEditPolicy());
installEditPolicy(EditPolicy.CONNECTION_BENDPOINTS_ROLE, new BendpointPolicy());
}
示例8: createEditPolicies
import org.eclipse.gef.editpolicies.ConnectionEndpointEditPolicy; //导入依赖的package包/类
@Override
protected void createEditPolicies() {
installEditPolicy(EditPolicy.CONNECTION_ENDPOINTS_ROLE, new ConnectionEndpointEditPolicy());
installEditPolicy(EditPolicy.CONNECTION_BENDPOINTS_ROLE, new BendpointPolicy());
}
示例9: createEditPolicies
import org.eclipse.gef.editpolicies.ConnectionEndpointEditPolicy; //导入依赖的package包/类
/**
* @see org.eclipse.gef.editparts.AbstractEditPart#createEditPolicies()
*/
protected void createEditPolicies() {
installEditPolicy(EditPolicy.CONNECTION_ENDPOINTS_ROLE, new ConnectionEndpointEditPolicy());
}
示例10: createEditPolicies
import org.eclipse.gef.editpolicies.ConnectionEndpointEditPolicy; //导入依赖的package包/类
@Override
protected void createEditPolicies() {
installEditPolicy(EditPolicy.CONNECTION_ENDPOINTS_ROLE, new ConnectionEndpointEditPolicy());
installEditPolicy(EditPolicy.CONNECTION_ROLE, new CommentConnectionEditPolicy());
installEditPolicy(EditPolicy.CONNECTION_BENDPOINTS_ROLE, new ERDiagramBendpointEditPolicy());
}
示例11: createEditPolicies
import org.eclipse.gef.editpolicies.ConnectionEndpointEditPolicy; //导入依赖的package包/类
@Override
protected void createEditPolicies() {
installEditPolicy(EditPolicy.CONNECTION_ENDPOINTS_ROLE, new ConnectionEndpointEditPolicy());
installEditPolicy(EditPolicy.CONNECTION_ROLE, new RelationEditPolicy());
installEditPolicy(EditPolicy.CONNECTION_BENDPOINTS_ROLE, new RelationBendpointEditPolicy());
}
示例12: createEditPolicies
import org.eclipse.gef.editpolicies.ConnectionEndpointEditPolicy; //导入依赖的package包/类
protected void createEditPolicies() {
this.installEditPolicy(EditPolicy.COMPONENT_ROLE, new ConnectionEditPolicy());
this.installEditPolicy(EditPolicy.CONNECTION_ENDPOINTS_ROLE, new ConnectionEndpointEditPolicy());
this.installEditPolicy(EditPolicy.CONNECTION_BENDPOINTS_ROLE, new ConnectionBendPointEditPolicy());
}
示例13: createEditPolicies
import org.eclipse.gef.editpolicies.ConnectionEndpointEditPolicy; //导入依赖的package包/类
protected void createEditPolicies() {
this.installEditPolicy(EditPolicy.COMPONENT_ROLE, new ConnectionEditPolicy());
this.installEditPolicy(EditPolicy.CONNECTION_ENDPOINTS_ROLE, new ConnectionEndpointEditPolicy());
//this.installEditPolicy(EditPolicy.CONNECTION_BENDPOINTS_ROLE, new ConnectionBendPointEditPolicy());
}
示例14: createEditPolicies
import org.eclipse.gef.editpolicies.ConnectionEndpointEditPolicy; //导入依赖的package包/类
protected void createEditPolicies() {
installEditPolicy(EditPolicy.COMPONENT_ROLE, new MessageRouteComponentEditPolicy());
installEditPolicy(EditPolicy.CONNECTION_ENDPOINTS_ROLE, new ConnectionEndpointEditPolicy());
}
示例15: createEditPolicies
import org.eclipse.gef.editpolicies.ConnectionEndpointEditPolicy; //导入依赖的package包/类
@Override
protected void createEditPolicies() {
installEditPolicy(EditPolicy.CONNECTION_ENDPOINTS_ROLE, new ConnectionEndpointEditPolicy());
}