public void newMap(boolean pastedData){
        checkEnabledMenuAction();
        if(!newMapItem.isEnabled()){ return; }
        
        DatabaseTreeItem parentItem = (DatabaseTreeItem) getCurrentItem();
        
        int id = generateId();
        
        DataMap gameData = null;
        DataEditorMap editorData = null;
        
        if(pastedData){
            gameData = (DataMap) TransferMgr.pasteGameData();
            if(gameData == null){
                gameData = new DataMap(0, "" , 16, 16);
            }
            //editorData = (DataEditorMap) TransferMgr.pasteEditorData();
        }
        else{
            gameData = new DataMap(0, "" , 16, 16);
            
        }
        
        gameData.id = id;
        gameData.name = "Map" + gameData.getIdName();
        editorData = new DataEditorMap(gameData.id, gameData.name);
        //editorData.id = gameData.id;
        //editorData.name = gameData.name;
        
        DatabaseTreeItem item = new DatabaseTreeItem(this, gameData.name, null, gameData, editorData);
        
        parentItem.addChild(item, true);
        setItemExpanded(parentItem, true);
        setCurrentItem(item);
        
        ((PropertyPanel) WidgetMgr.INSPECTOR.panels.get("property")).focusNameTextField();
        
        checkEnabledMenuAction();
        
        SaveMgr.requestSaveEnabled();
    }