Optional<ProjectId> activeProjectId = Application.get().getActiveProject();
if(!activeProjectId.isPresent()) {
MessageBox.alert("No project is selected");
return;
}
SharingSettingsDialogController controller = new SharingSettingsDialogController(activeProjectId.get());
WebProtegeDialog.showDialog(controller);
}
});
}