// edit event
if (Arrays.asList(Scripts.getEvents()).contains(text)) {
diag.setEvent(text);
diag.setHandlerEnabled(false);
if (diag.open() == Dialog.OK) {
String event = diag.getEvent();
if (!event.equalsIgnoreCase(text)) {
composerPackage.getScripts().set(event,
composerPackage.getScripts().getAsArray(text));
composerPackage.getScripts().remove(text);