return s;
}
public void createUnionMember()
{
TopManager topmanager = TopManager.getDefault();
final UnionMemberPanel unionmemberpanel = new UnionMemberPanel();
DialogDescriptor exdialogdescriptor = new DialogDescriptor(unionmemberpanel, ResourceBundle.getBundle("org/netbeans/modules/openoffice/wizard/nodes/Bundle").getString("TXT_CreateMember"));
exdialogdescriptor.setButtonListener( new ActionListener() {
public void actionPerformed(ActionEvent actionevent)
{
if(actionevent.getActionCommand().equals("OK"))
{
String s = unionmemberpanel.getName();
String s1 = unionmemberpanel.getType();
String s3 = unionmemberpanel.getLabel();
UnionMemberKey unionmemberkey = new UnionMemberKey(11, s, s1, s3);
IDLBaseChildren mutablechildren = (IDLBaseChildren)getChildren();
int i = mutablechildren.getKeysCount();
if(i > 0)
{
BaseKey mutablekey = mutablechildren.getKey(i - 1);
if((mutablekey instanceof BaseKey) && ((UnionMemberKey)mutablekey).isDefaultValue()) i--;
}
mutablechildren.addKey(i, unionmemberkey);
}
dialog.setVisible(false);
dialog.dispose();
}
});
dialog = topmanager.createDialog(exdialogdescriptor);
dialog.setVisible(true);
}