use of org.pentaho.di.ui.core.widget.tree.TreeNode in project pentaho-kettle by pentaho.
the class SpoonRefreshSlavesSubtreeTest method setUp.
@Before
public void setUp() throws Exception {
GUIResource guiResource = mock(GUIResource.class);
slavesFolderProvider = new SlavesFolderProvider(guiResource);
treeNode = new TreeNode();
}
use of org.pentaho.di.ui.core.widget.tree.TreeNode in project pentaho-kettle by pentaho.
the class SpoonRefreshClustersSubtreeTest method setUp.
@Before
public void setUp() throws Exception {
GUIResource guiResource = mock(GUIResource.class);
clustersFolderProvider = new ClustersFolderProvider(guiResource);
treeNode = new TreeNode();
}
use of org.pentaho.di.ui.core.widget.tree.TreeNode in project pentaho-kettle by pentaho.
the class SpoonRefreshHopsSubtreeTest method setUp.
@Before
public void setUp() throws Exception {
GUIResource guiResource = mock(GUIResource.class);
hopsFolderProvider = new HopsFolderProvider(guiResource);
treeNode = new TreeNode();
}
use of org.pentaho.di.ui.core.widget.tree.TreeNode in project pentaho-kettle by pentaho.
the class RootNode method create.
public TreeNode create(AbstractMeta abstractMeta, Image image, boolean expanded) {
TreeNode treeNode = new TreeNode(abstractMeta.getName(), image, expanded);
addChild(treeNode);
addAbstractMeta(abstractMeta, treeNode);
treeFolderProviders.forEach(treeFolderProvider -> treeFolderProvider.create(abstractMeta, treeNode));
return treeNode;
}
use of org.pentaho.di.ui.core.widget.tree.TreeNode in project pentaho-kettle by pentaho.
the class PartitionsFolderProvider method refresh.
@Override
public void refresh(AbstractMeta meta, TreeNode treeNode, String filter) {
TransMeta transMeta = (TransMeta) meta;
List<PartitionSchema> partitionSchemas;
try {
partitionSchemas = pickupPartitionSchemas(transMeta);
} catch (KettleException e) {
new ErrorDialog(Spoon.getInstance().getShell(), BaseMessages.getString(PKG, "Spoon.ErrorDialog.Title"), BaseMessages.getString(PKG, "Spoon.ErrorDialog.ErrorFetchingFromRepo.PartitioningSchemas"), e);
return;
}
// Put the steps below it.
for (PartitionSchema partitionSchema : partitionSchemas) {
if (!filterMatch(partitionSchema.getName(), filter)) {
continue;
}
TreeNode childTreeNode = createTreeNode(treeNode, partitionSchema.getName(), guiResource.getImagePartitionSchema());
if (partitionSchema.isShared()) {
childTreeNode.setFont(guiResource.getFontBold());
}
}
}
Aggregations