// Should we prompt the user use the element type?
if (antAction.getName().equals(name)) {
// Display the dialog box.
ACSIntrospectedElement dtde = (ACSIntrospectedElement) e;
NewElementDlg dlg = new NewElementDlg(
getContext().getParentFrame(), true);
dlg.setLists(
dtde.getPossibleChildren(ACSIntrospectedElement.TASK_ELEMENTS),
dtde.getPossibleChildren(ACSIntrospectedElement.TYPE_ELEMENTS) );
dlg.pack();
WindowUtils.centerWindow(dlg);
dlg.setTitle("Select the new element type");
dlg.setVisible(true);