final JGrassService jgrassService = (JGrassService) firstElement;
URL identifier = jgrassService.getIdentifier();
String locationPath = URLUtils.urlToFile(identifier).getAbsolutePath();
InputDialog iDialog = new InputDialog(Display.getDefault().getActiveShell(), "New mapset name",
"Please enter the name for the new mapset to create.", "newmapset", null);
iDialog.open();
String mapsetName = iDialog.getValue();
if (mapsetName.indexOf(' ') != -1) {
MessageBox msgBox = new MessageBox(Display.getDefault().getActiveShell(), SWT.ICON_ERROR);
msgBox.setMessage("Mapset names can't contain spaces. Please choose a name without spaces.");
msgBox.open();