if( selectedLayer==null ){
finalDropHandler.setTarget(finalMap);
}else{
finalDropHandler.setTarget(selectedLayer);
}
finalDropHandler.addListener(new IDropHandlerListener(){
public void done( IDropAction action, Throwable error ) {
if( finalActiveEditor==null && finalMap.getMapLayers().size()==0 ){
finalMap.getProjectInternal().getElementsInternal().remove(finalMap);