本文整理汇总了Java中org.eclipse.gef.editpolicies.ConnectionEditPolicy类的典型用法代码示例。如果您正苦于以下问题:Java ConnectionEditPolicy类的具体用法?Java ConnectionEditPolicy怎么用?Java ConnectionEditPolicy使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ConnectionEditPolicy类属于org.eclipse.gef.editpolicies包,在下文中一共展示了ConnectionEditPolicy类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createEditPolicies
import org.eclipse.gef.editpolicies.ConnectionEditPolicy; //导入依赖的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());
}
});
}
示例2: createEditPolicies
import org.eclipse.gef.editpolicies.ConnectionEditPolicy; //导入依赖的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());
}
});
}
示例3: createConnectionEditPolicy
import org.eclipse.gef.editpolicies.ConnectionEditPolicy; //导入依赖的package包/类
/**
* @see nexcore.tool.uml.ui.core.diagram.edit.part.AbstractDiagramConnectionEditPart#createConnectionEditPolicy()
*/
@Override
protected ConnectionEditPolicy createConnectionEditPolicy() {
return new MessageConnectionEditPolicy();
}
示例4: createConnectionEditPolicy
import org.eclipse.gef.editpolicies.ConnectionEditPolicy; //导入依赖的package包/类
/**
* 컨넥션 에디트 폴리시(삭제정책)를 생성한다. EditPolicy.CONNECTION_ROLE 인스톨 된다.
*
* @return
*/
protected ConnectionEditPolicy createConnectionEditPolicy() {
return new DiagramConnectionEditPolicy();
}
示例5: createConnectionEditPolicy
import org.eclipse.gef.editpolicies.ConnectionEditPolicy; //导入依赖的package包/类
/**
* 컨넥션 에디트 폴리시(삭제정책)를 생성한다. EditPolicy.CONNECTION_ROLE 인스톨 된다.
*
* @return
*/
protected ConnectionEditPolicy createConnectionEditPolicy() {
return new ActivityDiagramConnectionEditPolicy();
}