use of org.pentaho.di.ui.spoon.tree.provider.PartitionsFolderProvider in project pentaho-kettle by pentaho.
the class Spoon method createSelectionTree.
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);
}
use of org.pentaho.di.ui.spoon.tree.provider.PartitionsFolderProvider in project pentaho-kettle by pentaho.
the class SpoonRefreshPartitionsSubtreeTest method setUp.
@Before
public void setUp() throws Exception {
GUIResource guiResource = mock(GUIResource.class);
Spoon spoon = mock(Spoon.class);
partitionsFolderProvider = new PartitionsFolderProvider(guiResource, spoon);
treeNode = new TreeNode();
}
Aggregations