}
public void createConstant()
{
final ConstPanel constpanel = new ConstPanel();
TopManager topmanager = TopManager.getDefault();
DialogDescriptor exdialogdescriptor = new DialogDescriptor(constpanel, ResourceBundle.getBundle("org/netbeans/modules/openoffice/wizard/nodes/Bundle").getString("TXT_CreateConstant"));
exdialogdescriptor.setButtonListener( new ActionListener() {
public void actionPerformed(ActionEvent actionevent)
{
if(actionevent.getActionCommand().equals("OK"))
{
String s = constpanel.getName();
String s1 = constpanel.getType();
String s2 = constpanel.getValue();
ConstKey constkey = new ConstKey(5, s, s1, s2);
((IDLBaseChildren)getChildren()).addKey(constkey);
}
dialog.setVisible(false);
dialog.dispose();
}
});
dialog = topmanager.createDialog(exdialogdescriptor);
dialog.setVisible(true);
}