GEF,DRAW2D,在子图形上点击鼠标左键,让父图形被选中的实现方式

来源:互联网 发布:centos apache 配置 编辑:程序博客网 时间:2024/05/22 03:18

转载地址:http://www.eclipse.org/forums/index.php/mv/tree/54897/


方法一:重载子图形对应Editpart的isSelectable方法为:(已验证可行)

public boolean isSelectable()
{
return false;
}


方法二:重载子图形对应Editpart的getTargetEditPart方法(未验证)

如果是SelectionRequest,则返回父图形的Editpart

原创粉丝点击