String s = doBasic.getNameText(); if (s == null || s.length() == 0) { doBasic.resetNameArea(); handleEmptyNameArea(); return; }
    private void finish()    {        switch (model.getEditorType()) {            case Editor.CREATE_EDITOR:                controller.createObject(fillDataObject());                break;            case Editor.PROPERTIES_EDITOR:                finishEdit();        }    }