org.eclipse.swt.widgets.Tree.addMenuDetectListener()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(2.1k)|赞(0)|评价(0)|浏览(104)

本文整理了Java中org.eclipse.swt.widgets.Tree.addMenuDetectListener()方法的一些代码示例,展示了Tree.addMenuDetectListener()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Tree.addMenuDetectListener()方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Tree
类名称:Tree
方法名:addMenuDetectListener

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);

相关文章

Tree类方法