private void openMap( final UDIGEditorInput input ) {
try {
IEditorPart part = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().openEditor(input,
input.getEditorId(), true, IWorkbenchPage.MATCH_NONE);
ProjectExplorer explorer = ProjectExplorer.getProjectExplorer();
explorer.setSelection(Collections.singleton(input.getProjectElement()), true);
if( part instanceof MapEditorPart ){
MapEditorPart mapEditor=(MapEditorPart) part;
while( !mapEditor.getComposite().isVisible() || !mapEditor.getComposite().isEnabled() ){
if( !Display.getCurrent().readAndDispatch() ){