本文整理汇总了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());
}
});
}
开发者ID:lunifera,项目名称:lunifera-sharky-m2m,代码行数:14,代码来源:ConnectionEditPart.java
示例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());
}
});
}
开发者ID:GreenDelta,项目名称:olca-app,代码行数:11,代码来源:LinkPart.java
示例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();
}
开发者ID:SK-HOLDINGS-CC,项目名称:NEXCORE-UML-Modeler,代码行数:8,代码来源:MessageEditPart.java
示例4: createConnectionEditPolicy
import org.eclipse.gef.editpolicies.ConnectionEditPolicy; //导入依赖的package包/类
/**
* 컨넥션 에디트 폴리시(삭제정책)를 생성한다. EditPolicy.CONNECTION_ROLE 인스톨 된다.
*
* @return
*/
protected ConnectionEditPolicy createConnectionEditPolicy() {
return new DiagramConnectionEditPolicy();
}
开发者ID:SK-HOLDINGS-CC,项目名称:NEXCORE-UML-Modeler,代码行数:9,代码来源:AbstractDiagramConnectionEditPart.java
示例5: createConnectionEditPolicy
import org.eclipse.gef.editpolicies.ConnectionEditPolicy; //导入依赖的package包/类
/**
* 컨넥션 에디트 폴리시(삭제정책)를 생성한다. EditPolicy.CONNECTION_ROLE 인스톨 된다.
*
* @return
*/
protected ConnectionEditPolicy createConnectionEditPolicy() {
return new ActivityDiagramConnectionEditPolicy();
}
开发者ID:SK-HOLDINGS-CC,项目名称:NEXCORE-UML-Modeler,代码行数:9,代码来源:ActivityDiagramConnectionEditPart.java
注:本文中的org.eclipse.gef.editpolicies.ConnectionEditPolicy类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论