} if (s.length() > 255) { UserNotifier un = TreeViewerAgent.getRegistry().getUserNotifier(); un.notifyInfo("Editor", "The name is too long. Cannot be more " + "than 255 characters long."); doBasic.resetName(); return;
    void finish()    {        String s = doBasic.getNameText();        if (s == null || s.length() == 0) {            doBasic.resetNameArea();            handleNameAreaRemove(0);            return;        }        switch (model.getEditorType()) {            case Editor.CREATE_EDITOR:                controller.createObject(fillDataObject());                break;            case Editor.PROPERTIES_EDITOR:                finishEdit();        }    }