本文整理汇总了Java中org.pentaho.di.ui.core.widget.TreeUtil.findTreeItem方法的典型用法代码示例。如果您正苦于以下问题:Java TreeUtil.findTreeItem方法的具体用法?Java TreeUtil.findTreeItem怎么用?Java TreeUtil.findTreeItem使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.pentaho.di.ui.core.widget.TreeUtil
的用法示例。
在下文中一共展示了TreeUtil.findTreeItem方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: refreshViewAndLog
import org.pentaho.di.ui.core.widget.TreeUtil; //导入方法依赖的package包/类
protected void refreshViewAndLog()
{
String[] selectionPath = null;
if (wTree.getSelectionCount()==1)
{
selectionPath = ConstUI.getTreeStrings( wTree.getSelection()[0] );
}
refreshView();
if (selectionPath!=null) // Select the same one again
{
TreeItem treeItem = TreeUtil.findTreeItem(wTree, selectionPath);
if (treeItem!=null) wTree.setSelection(treeItem);
}
showLog();
}
示例2: refreshViewAndLog
import org.pentaho.di.ui.core.widget.TreeUtil; //导入方法依赖的package包/类
protected void refreshViewAndLog() {
String[] selectionPath = null;
if (wTree.getSelectionCount() == 1) {
selectionPath = ConstUI.getTreeStrings(wTree.getSelection()[0]);
}
refreshView();
if (selectionPath != null) // Select the same one again
{
TreeItem treeItem = TreeUtil.findTreeItem(wTree, selectionPath);
if (treeItem != null) {
wTree.setSelection(treeItem);
wTree.showItem(treeItem);
treeItemSelected(treeItem);
treeItem.setExpanded(true);
}
}
showLog();
}
示例3: refreshViewAndLog
import org.pentaho.di.ui.core.widget.TreeUtil; //导入方法依赖的package包/类
protected void refreshViewAndLog() {
String[] selectionPath = null;
TreeItem selectedItem;
TreeEntry treeEntry = null;
if ( wTree.getSelectionCount() == 1 ) {
selectedItem = wTree.getSelection()[ 0 ];
treeEntry = new TreeEntry( selectedItem );
selectionPath = ConstUI.getTreeStrings( selectedItem );
}
refreshView();
if ( treeEntry != null ) { // Select the same one again
TreeItem treeItem = treeEntry.getTreeItem( wTree );
if ( treeItem == null ) {
treeItem = TreeUtil.findTreeItem( wTree, selectionPath );
}
if ( treeItem != null ) {
wTree.setSelection( treeItem );
if ( treeEntry.length < 3 ) {
wTree.showItem( treeItem );
treeItemSelected( treeItem );
treeItem.setExpanded( true );
}
}
}
showLog();
}