final ISelection selection = getViewer().getSelection();
final Object obj = ((IStructuredSelection) selection).getFirstElement();
if (obj instanceof Region || obj instanceof ScannedMap)
try {
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage()
.openEditor(new MapEditorInput((NamedUuidEntity) obj), MapEditor.ID);
}
catch (final PartInitException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}