本文整理汇总了Java中org.eclipse.gef.editparts.AbstractTreeEditPart类的典型用法代码示例。如果您正苦于以下问题:Java AbstractTreeEditPart类的具体用法?Java AbstractTreeEditPart怎么用?Java AbstractTreeEditPart使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
AbstractTreeEditPart类属于org.eclipse.gef.editparts包,在下文中一共展示了AbstractTreeEditPart类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: dispose
import org.eclipse.gef.editparts.AbstractTreeEditPart; //导入依赖的package包/类
/**
* Removes listeners
*
* @see org.eclipse.ui.part.IPage#dispose()
*/
public void dispose() {
getSite().getPage().removePartListener(this);
getSite().getPage().removeSelectionListener(this);
//getSite().getPage().removePostSelectionListener(this);
DisplayPreferences.getInstance().unregisterListener(this);
if (viewer != null) {
Object p = viewer.getRootEditPart();
if (p instanceof AbstractTreeEditPart) {
((AbstractTreeEditPart) p).setModel(null);
}
if (viewer.getEditDomain() instanceof UrnEditDomain) {
UrnEditDomain domain = (UrnEditDomain) viewer.getEditDomain();
domain.dispose();
}
}
// dispose
super.dispose();
viewer = null;
root = null;
}
示例2: dispose
import org.eclipse.gef.editparts.AbstractTreeEditPart; //导入依赖的package包/类
/**
* Removes listeners
*
* @see org.eclipse.ui.part.IPage#dispose()
*/
public void dispose() {
if (multieditor != null) {
// unhook outline viewer
// multieditor.getSelectionSynchronizer().removeViewer(viewer);
}
Object p = viewer.getRootEditPart();
if (p instanceof AbstractTreeEditPart) {
((AbstractTreeEditPart) p).setModel(null);
}
if (viewer.getContextMenu() != null) {
viewer.getContextMenu().dispose();
viewer.setContextMenu(null);
}
if (viewer.getEditDomain() instanceof UrnEditDomain) {
UrnEditDomain domain = (UrnEditDomain) viewer.getEditDomain();
domain.dispose();
}
DisplayPreferences.getInstance().unregisterListener(this);
getSite().getPage().removePartListener(this);
// dispose
super.dispose();
viewer = null;
multieditor = null;
currentIndicator = null;
currentSelection = null;
retrieveKPIValues = null;
showNodeNumberAction = null;
}