DOEditor panel = EditorFactory.getEditor(this, object, editorType); panel.addPropertyChangeListener(DOEditor.CANCEL_EDITION_PROPERTY,
EditorUI panel = EditorFactory.getEditor(this, object, editorType); panel.addPropertyChangeListener(EditorUI.CANCEL_EDITION_PROPERTY,
    public void showProperties(DataObject object, int editorType)    {        if (editorType == PROPERTIES_EDITOR || editorType == CREATE_EDITOR)            model.setEditorType(editorType);        else return;        model.setDataObject(object);        DOEditor panel = EditorFactory.getEditor(this, object, editorType);        panel.addPropertyChangeListener(DOEditor.CANCEL_EDITION_PROPERTY,                                         controller);        if ((object instanceof ImageData) || (object instanceof DatasetData)) {            model.fireAnnotationLoading(object);             fireStateChange();            UIUtilities.centerAndShow(view.getLoadingWindow());        } else view.addComponent(panel);     }