AbstractButton button = (AbstractButton) source;
String name = button.getText();
// Get the AntAction
String cmdStr = button.getActionCommand();
AntAction antAction = getContext().getActions().getAction(cmdStr);
if (antAction == null) {
return;
}
ACSElement e = vals[vals.length - 1];
// 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);