private void openDialog(String name, String startKey, String endKey) {
Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow()
.getShell();
EventDialog eventDialog = new EventDialog(shell,
"New Event Configuration");
if (eventDialog.open() == Dialog.OK) {
String eventName = eventDialog.getEventName();
String eventStartKey = eventDialog.getStartEventKey();
String eventEndKey = eventDialog.getEndEventKey();
boolean punctual = eventDialog.isPunctual();
EventConfiguration ec = null;
if (!punctual) {
ec = new EventConfiguration(eventName, eventStartKey.charAt(0),
eventEndKey.charAt(0));