this.profileNode = profileNode;
}
@Override
public void run() {
ContainerNode node = containerNode;
if (node == null) {
// we are invoked from another node so lets find it...
if (fabric != null) {
List<ContainerNode> roots = fabric.getRootContainers();
if (roots.size() > 0) {
node = roots.get(0);
}
}
}
if (node == null) {
FabricPlugin.getLogger().warning("No Roto container node available for fabric: " + fabric);
} else {
CreateChildContainerDialog dialog = new CreateChildContainerDialog(node, node.getFabric().getNewAgentName());
if (profileNode != null) {
CreateChildContainerForm childContainerForm = dialog.getChildContainerForm();
if (childContainerForm != null) {
childContainerForm.setInitialProfileSelections(Arrays.asList(profileNode.getProfile()));
}