public void widgetSelected(SelectionEvent e) {
IStructuredSelection selection = (IStructuredSelection) viewer.getSelection();
Swimlane swimlane = (Swimlane) selection.getFirstElement();
String path = getDefinition().getSwimlaneGUIConfiguration().getEditorPath(swimlane.getName());
SwimlaneConfigDialog dialog = new SwimlaneConfigDialog(getDefinition(), swimlane, path);
if (dialog.open() == IDialogConstants.OK_ID) {
swimlane.setDelegationConfiguration(dialog.getConfiguration());
swimlane.setPublicVisibility(dialog.isPublicVisibility());
getDefinition().getSwimlaneGUIConfiguration().putSwimlanePath(swimlane.getName(), dialog.getPath());
viewer.setSelection(selection);
}
}