use of org.pentaho.di.ui.core.widget.tree.TreeNode 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();
}
use of org.pentaho.di.ui.core.widget.tree.TreeNode in project pentaho-kettle by pentaho.
the class RunConfigurationFolderProvider method createTreeNode.
@Override
public TreeNode createTreeNode(TreeNode parent, String text, Image image) {
TreeNode treeNode = super.createTreeNode(parent, text, image);
treeNode.setIndex(0);
return treeNode;
}
use of org.pentaho.di.ui.core.widget.tree.TreeNode in project pentaho-kettle by pentaho.
the class RunConfigurationFolderProvider method refresh.
@Override
public void refresh(AbstractMeta meta, TreeNode treeNode, String filter) {
GUIResource guiResource = GUIResource.getInstance();
for (RunConfiguration runConfiguration : runConfigurationDelegate.load()) {
if (!filterMatch(runConfiguration.getName(), filter)) {
continue;
}
String imageFile = runConfiguration.isReadOnly() ? "images/run_tree_disabled.svg" : "images/run_tree.svg";
TreeNode childTreeNode = createChildTreeNode(treeNode, runConfiguration.getName(), getRunConfigurationImage(guiResource, imageFile));
if (runConfiguration.isReadOnly()) {
childTreeNode.setForeground(getDisabledColor());
}
}
}
Aggregations