本文整理汇总了Java中org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles类的典型用法代码示例。如果您正苦于以下问题:Java EditPolicyRoles类的具体用法?Java EditPolicyRoles怎么用?Java EditPolicyRoles使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
EditPolicyRoles类属于org.eclipse.gmf.runtime.diagram.ui.editpolicies包,在下文中一共展示了EditPolicyRoles类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: createDefaultEditPolicies
import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles; //导入依赖的package包/类
@Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
// Disables deletion of the text compartment view if additional elements
// are selected too
installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new SemanticEditPolicy() {
@Override
protected boolean shouldProceed(DestroyRequest destroyRequest) {
return false;
}
});
// Disables deletion of the text compartment view via keyboard
installEditPolicy(EditPolicy.COMPONENT_ROLE, new RootComponentEditPolicy());
removeEditPolicy(EditPolicyRoles.CONNECTION_HANDLES_ROLE);
installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new PreferredSizeHandlerEditPolicy() {
@Override
protected IFigure getPreferredSizeFigure() {
return getChildBySemanticHint(SemanticHints.STATECHART_NAME).getFigure();
}
});
}
开发者ID:Yakindu,项目名称:statecharts,代码行数:25,代码来源:StatechartTextEditPart.java
示例2: createDefaultEditPolicies
import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles; //导入依赖的package包/类
/**
* @generated
*/
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE,
new ResizableCompartmentEditPolicy());
installEditPolicy(
EditPolicyRoles.SEMANTIC_ROLE,
new SimpleBPMN.diagram.edit.policies.GroupGroupElementsCompartmentItemSemanticEditPolicy());
installEditPolicy(
EditPolicyRoles.CREATION_ROLE,
new CreationEditPolicyWithCustomReparent(
SimpleBPMN.diagram.part.SimpleBPMNVisualIDRegistry.TYPED_INSTANCE));
installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE,
new DragDropEditPolicy());
installEditPolicy(
EditPolicyRoles.CANONICAL_ROLE,
new SimpleBPMN.diagram.edit.policies.GroupGroupElementsCompartmentCanonicalEditPolicy());
}
开发者ID:bluezio,项目名称:simplified-bpmn-example,代码行数:21,代码来源:GroupGroupElementsCompartmentEditPart.java
示例3: createDefaultEditPolicies
import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles; //导入依赖的package包/类
/**
* @generated
*/
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE,
new ResizableCompartmentEditPolicy());
installEditPolicy(
EditPolicyRoles.SEMANTIC_ROLE,
new SimpleBPMN.diagram.edit.policies.GroupGroupElementsCompartment2ItemSemanticEditPolicy());
installEditPolicy(
EditPolicyRoles.CREATION_ROLE,
new CreationEditPolicyWithCustomReparent(
SimpleBPMN.diagram.part.SimpleBPMNVisualIDRegistry.TYPED_INSTANCE));
installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE,
new DragDropEditPolicy());
installEditPolicy(
EditPolicyRoles.CANONICAL_ROLE,
new SimpleBPMN.diagram.edit.policies.GroupGroupElementsCompartment2CanonicalEditPolicy());
}
开发者ID:bluezio,项目名称:simplified-bpmn-example,代码行数:21,代码来源:GroupGroupElementsCompartment2EditPart.java
示例4: createDefaultEditPolicies
import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles; //导入依赖的package包/类
/**
* @generated
*/
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE,
new StatemachineItemSemanticEditPolicy());
installEditPolicy(EditPolicyRoles.CANONICAL_ROLE,
new StatemachineCanonicalEditPolicy());
installEditPolicy(EditPolicyRoles.CREATION_ROLE,
new CreationEditPolicyWithCustomReparent(
StatemachineVisualIDRegistry.TYPED_INSTANCE));
// removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.POPUPBAR_ROLE);
}
开发者ID:spoenemann,项目名称:xtext-gef,代码行数:15,代码来源:StatemachineEditPart.java
示例5: createDefaultEditPolicies
import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles; //导入依赖的package包/类
/**
* @generated
*/
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE,
new StateItemSemanticEditPolicy());
installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
// XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
// removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
}
开发者ID:spoenemann,项目名称:xtext-gef,代码行数:12,代码来源:StateEditPart.java
示例6: createDefaultEditPolicies
import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles; //导入依赖的package包/类
@Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicyRoles.CONNECTION_HANDLES_ROLE, new OneWayConnectionHandlesEditPolicy(
HandleDirection.INCOMING));
installEditPolicy(EnlargeContainerEditPolicy.ROLE, new EnlargeContainerEditPolicy());
installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new FeedbackGraphicalNodeEditPolicy());
}
开发者ID:Yakindu,项目名称:statecharts,代码行数:9,代码来源:FinalStateEditPart.java
示例7: createDefaultEditPolicies
import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles; //导入依赖的package包/类
@Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
removeEditPolicy(EditPolicyRoles.SORT_FILTER_ROLE);
removeEditPolicy(EditPolicyRoles.CONNECTION_HANDLES_ROLE);
removeEditPolicy(EditPolicy.CONTAINER_ROLE);
removeEditPolicy(EditPolicy.COMPONENT_ROLE);
}
开发者ID:Yakindu,项目名称:statecharts,代码行数:9,代码来源:BorderItemEditPart.java
示例8: createDefaultEditPolicies
import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles; //导入依赖的package包/类
@Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
removeEditPolicy(EditPolicyRoles.CREATION_ROLE);
installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new PreferredSizeHandlerEditPolicy());
installEditPolicy(EnlargeContainerEditPolicy.ROLE, new EnlargeContainerEditPolicy());
installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new FeedbackGraphicalNodeEditPolicy());
}
开发者ID:Yakindu,项目名称:statecharts,代码行数:9,代码来源:StateEditPart.java
示例9: createDefaultEditPolicies
import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles; //导入依赖的package包/类
@Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicyRoles.CONNECTION_HANDLES_ROLE, new OneWayConnectionHandlesEditPolicy(
HandleDirection.OUTGOING));
installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new NonResizableEditPolicyEx());
installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new ContextSensitiveHelpPolicy(
HelpContextIds.SC_PROPERTIES_ENTRY_ENTRYKIND));
installEditPolicy(EnlargeContainerEditPolicy.ROLE, new EnlargeContainerEditPolicy());
}
开发者ID:Yakindu,项目名称:statecharts,代码行数:11,代码来源:EntryEditPart.java
示例10: createDefaultEditPolicies
import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles; //导入依赖的package包/类
@Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicyRoles.CREATION_ROLE, new CompartmentCreationEditPolicy());
installEditPolicy(EditPolicyRoles.CANONICAL_ROLE, new RegionCompartmentCanonicalEditPolicy());
installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
installEditPolicy(EditPolicy.LAYOUT_ROLE, new XYLayoutEditPolicy());
// Removes the collapse expand handler
installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new ResizableEditPolicyEx());
installEditPolicy(EditPolicyRoles.SNAP_FEEDBACK_ROLE, new SimpleSnapFeedbackPolicy());
}
开发者ID:Yakindu,项目名称:statecharts,代码行数:12,代码来源:RegionCompartmentEditPart.java
示例11: createDefaultEditPolicies
import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles; //导入依赖的package包/类
@Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
removeEditPolicy(EditPolicyRoles.CONNECTION_HANDLES_ROLE);
installEditPolicy(EditPolicy.LAYOUT_ROLE, new ConstrainedToolbarLayoutEditPolicy() {
@Override
protected Command getAutoSizeCommand(Request request) {
return UnexecutableCommand.INSTANCE;
}
});
installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new PreferredSizeHandlerEditPolicy());
}
开发者ID:Yakindu,项目名称:statecharts,代码行数:13,代码来源:RegionEditPart.java
示例12: createDefaultEditPolicies
import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles; //导入依赖的package包/类
@Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicyRoles.CREATION_ROLE, new StateCompartmentCreationEditPolicy());
installEditPolicy(EditPolicyRoles.CANONICAL_ROLE, new StateCompartmentCanonicalEditPolicy());
installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
installEditPolicy(EditPolicy.LAYOUT_ROLE, new CompartmentLayoutEditPolicy(
SGraphPackage.Literals.COMPOSITE_ELEMENT__REGIONS));
removeEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
}
开发者ID:Yakindu,项目名称:statecharts,代码行数:11,代码来源:StateFigureCompartmentEditPart.java
示例13: createDefaultEditPolicies
import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles; //导入依赖的package包/类
@Override
protected void createDefaultEditPolicies() {
installEditPolicy(EditPolicyRoles.CANONICAL_ROLE, new CompositeElementCanonicalEditPolicy());
super.createDefaultEditPolicies();
installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
installEditPolicy(EditPolicy.LAYOUT_ROLE, new XYLayoutEditPolicy());
removeEditPolicy(EditPolicyRoles.POPUPBAR_ROLE);
installEditPolicy(EditPolicyRoles.SNAP_FEEDBACK_ROLE, new SimpleSnapFeedbackPolicy());
}
开发者ID:Yakindu,项目名称:statecharts,代码行数:10,代码来源:StatechartDiagramEditPart.java
示例14: createDefaultEditPolicies
import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles; //导入依赖的package包/类
@Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicyRoles.CONNECTION_HANDLES_ROLE, new OneWayConnectionHandlesEditPolicy(
HandleDirection.INCOMING));
installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new NonResizableEditPolicyEx());
installEditPolicy(EnlargeContainerEditPolicy.ROLE, new EnlargeContainerEditPolicy());
}
开发者ID:Yakindu,项目名称:statecharts,代码行数:9,代码来源:ExitEditPart.java
示例15: createDefaultEditPolicies
import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles; //导入依赖的package包/类
/**
* @generated
*/
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE,
new SMCItemSemanticEditPolicy());
installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
// XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
// removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
}
开发者ID:road-framework,项目名称:ROADDesigner,代码行数:12,代码来源:SMCEditPart.java
示例16: createDefaultEditPolicies
import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles; //导入依赖的package包/类
/**
* @generated
*/
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE,
new SystemItemSemanticEditPolicy());
installEditPolicy(EditPolicyRoles.CANONICAL_ROLE,
new SystemCanonicalEditPolicy());
// removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.POPUPBAR_ROLE);
}
开发者ID:road-framework,项目名称:ROADDesigner,代码行数:12,代码来源:SystemEditPart.java
示例17: createDefaultEditPolicies
import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles; //导入依赖的package包/类
/**
* @generated
*/
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE,
new FactItemSemanticEditPolicy());
installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
// XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
// removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
}
开发者ID:road-framework,项目名称:ROADDesigner,代码行数:12,代码来源:FactEditPart.java
示例18: createDefaultEditPolicies
import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles; //导入依赖的package包/类
/**
* @generated NOT
*/
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE,
new ContractItemSemanticEditPolicy());
installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
// XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
// removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
// Install double click functionality
installEditPolicy(EditPolicyRoles.OPEN_ROLE,
new ContractEditorEditPolicy());
}
开发者ID:road-framework,项目名称:ROADDesigner,代码行数:16,代码来源:ContractEditPart.java
示例19: createDefaultEditPolicies
import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles; //导入依赖的package包/类
/**
* @generated
*/
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE,
new PlayerItemSemanticEditPolicy());
installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
// XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
// removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
}
开发者ID:road-framework,项目名称:ROADDesigner,代码行数:12,代码来源:PlayerEditPart.java
示例20: createDefaultEditPolicies
import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles; //导入依赖的package包/类
/**
* @generated
*/
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE,
new SMCSMCCompartmentItemSemanticEditPolicy());
installEditPolicy(EditPolicyRoles.CREATION_ROLE,
new CreationEditPolicy());
installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE,
new DragDropEditPolicy());
installEditPolicy(EditPolicyRoles.CANONICAL_ROLE,
new SMCSMCCompartmentCanonicalEditPolicy());
}
开发者ID:road-framework,项目名称:ROADDesigner,代码行数:15,代码来源:SMCSMCCompartmentEditPart.java
注:本文中的org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论