/**
* performDirectEdit void
*/
protected void performDirectEdit(Request req) {
if (getParent() != null && getParent() instanceof ScrollableEditPart) {
AbstractNode node = (AbstractNode) getParent().getModel();
Label label = (Label) getFigure();
if (((AbstractNode) node).getNodeType().equals(NodeType.PROVIDED_INTERFACES)) {
return;
} else if (((AbstractNode) node).getNodeType().equals(NodeType.REQUIRED_INTERFACES)) {
return;
}
setFigureLayout(label, GridData.BEGINNING);
} else if (getParent() != null && getParent() instanceof AbstractChildCompartmentEditPart) {
return;
}
if (directManager == null) {
directManager = new DirectEditorManager(this,
TextCellEditor.class,
new DirectEditCellEditorLocator(getFigure()));
}
directManager.show();
}
NotationNameEditPart.java 文件源码
java
阅读 22
收藏 0
点赞 0
评论 0
项目:NEXCORE-UML-Modeler
作者:
评论列表
文章目录