当前位置: 首页>>代码示例>>Java>>正文


Java ConnectionEndpointEditPolicy类代码示例

本文整理汇总了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());
}
 
开发者ID:gw4e,项目名称:gw4e.project,代码行数:9,代码来源:EdgePart.java

示例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());
}
 
开发者ID:roundrop,项目名称:ermasterr,代码行数:10,代码来源:AbstractERDiagramConnectionEditPart.java

示例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());
}
 
开发者ID:kozake,项目名称:ermaster-k,代码行数:11,代码来源:AbstractERDiagramConnectionEditPart.java

示例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());
}
 
开发者ID:leondart,项目名称:FRaMED,代码行数:11,代码来源:ORMRelationEditPart.java

示例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());
				}
			});
}
 
开发者ID:lunifera,项目名称:lunifera-sharky-m2m,代码行数:14,代码来源:ConnectionEditPart.java

示例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());
		}
	});
}
 
开发者ID:GreenDelta,项目名称:olca-app,代码行数:11,代码来源:LinkPart.java

示例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());
}
 
开发者ID:dstl,项目名称:Open_Source_ECOA_Toolset_AS5,代码行数:7,代码来源:LinkEditPart.java

示例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());
}
 
开发者ID:dstl,项目名称:Open_Source_ECOA_Toolset_AS5,代码行数:6,代码来源:LinkEditPart.java

示例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());
}
 
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:7,代码来源:RelationshipPart.java

示例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());
}
 
开发者ID:dbflute-session,项目名称:erflute,代码行数:7,代码来源:CommentConnectionEditPart.java

示例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());
}
 
开发者ID:dbflute-session,项目名称:erflute,代码行数:7,代码来源:RelationEditPart.java

示例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());
}
 
开发者ID:winture,项目名称:wt-studio,代码行数:6,代码来源:NodeConnectionEditPart.java

示例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());
}
 
开发者ID:winture,项目名称:wt-studio,代码行数:6,代码来源:FunctionTableConnectionEditPart.java

示例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());
}
 
开发者ID:hejiehui,项目名称:xeda,代码行数:5,代码来源:MessageRoutePart.java

示例15: createEditPolicies

import org.eclipse.gef.editpolicies.ConnectionEndpointEditPolicy; //导入依赖的package包/类
@Override
protected void createEditPolicies() {
	installEditPolicy(EditPolicy.CONNECTION_ENDPOINTS_ROLE, new ConnectionEndpointEditPolicy());
	
}
 
开发者ID:lunifera,项目名称:lunifera-sharky-m2m,代码行数:6,代码来源:HumanDiagramLinkEditPart.java


注:本文中的org.eclipse.gef.editpolicies.ConnectionEndpointEditPolicy类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。