Object obj = jcomboboxTypes.getSelectedItem();
if(obj == null || !(obj instanceof NodeAction)) {
return;
}
else {
NodeAction nodeaction = (NodeAction)obj;
Node node[] = tree.getExplorerManager().getSelectedNodes();
nodeaction.actionPerformed(new ActionEvent(node, 0, ""));
// Get nodes count.
int intNodesCount = node[ 0 ].getChildren().getNodesCount();
// Test if nodes count greater than zero.