本文整理了Java中org.eclipse.swt.widgets.Tree.addMenuDetectListener()
方法的一些代码示例,展示了Tree.addMenuDetectListener()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Tree.addMenuDetectListener()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Tree
类名称:Tree
方法名:addMenuDetectListener
暂无
代码示例来源:origin: pentaho/pentaho-kettle
private void createSelectionTree() {
// //////////////////////////////////////////////////////////////////////////////////////////////////
//
// Now set up the transformation/job tree
//
selectionTree = new Tree( viewTreeComposite, SWT.SINGLE );
selectionTreeManager = new TreeManager( selectionTree );
selectionTreeManager.addRoot( STRING_TRANSFORMATIONS, Arrays.asList( new DBConnectionFolderProvider(), new
StepsFolderProvider(), new HopsFolderProvider(), new PartitionsFolderProvider(), new SlavesFolderProvider(), new
ClustersFolderProvider() ) );
selectionTreeManager.addRoot( STRING_JOBS, Arrays.asList( new DBConnectionFolderProvider(), new
JobEntriesFolderProvider(), new SlavesFolderProvider() ) );
props.setLook( selectionTree );
selectionTree.setLayout( new FillLayout() );
addDefaultKeyListeners( selectionTree );
selectionTree.addMenuDetectListener( e -> setMenu( selectionTree ) );
selectionTree.addSelectionListener( new SelectionAdapter() {
@Override
public void widgetSelected( SelectionEvent e ) {
showSelection();
}
@Override
public void widgetDefaultSelected( SelectionEvent e ) {
doubleClickedInTree( selectionTree );
}
} );
// Set a listener on the tree
addDragSourceToTree( selectionTree );
}
代码示例来源:origin: pentaho/pentaho-kettle
wTree.addMenuDetectListener( new MenuDetectListener() {
public void menuDetected( MenuDetectEvent e ) {
setTreeMenu();
代码示例来源:origin: pentaho/pentaho-kettle
idColumn.setWidth( 300 );
tree.addMenuDetectListener( new MenuDetectListener() {
代码示例来源:origin: pentaho/pentaho-kettle
wTree.addMenuDetectListener( new MenuDetectListener() {
@Override
public void menuDetected( MenuDetectEvent e ) {
代码示例来源:origin: stackoverflow.com
tree.addMenuDetectListener(new MenuDetectListener()
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.ide
new FilterCopyDrop(filterView));
filterView.getTree().addMenuDetectListener(e -> {
MenuManager mgr = new MenuManager();
mgr.add(addSubFilterAction);
内容来源于网络,如有侵权,请联系作者删除!