editor.newMap();
NewMapDialog nmd = new NewMapDialog((JFrame)editor.getAppFrame()); Map newMap = nmd.create(); if (newMap != null) { editor.setCurrentMap(newMap); }
    protected void doPerformAction() {        editor.newMap();    }