thumbnailLoaded = false;
    protected EditorModel(TreeViewer parentModel, int editorType,                          DataObject hierarchyObject, TreeImageDisplay parent)    {        if (parentModel == null)             throw new NullPointerException("No parent model.");        if (editorType != Editor.CREATE_EDITOR &&                 editorType != Editor.PROPERTIES_EDITOR)            throw new IllegalArgumentException("editor not supported.");        if (hierarchyObject == null)            throw new IllegalArgumentException("No Data object.");        state = Editor.NEW;        this.editorType = editorType;        this.parentModel = parentModel;        this.hierarchyObject = hierarchyObject;        if (editorType == Editor.CREATE_EDITOR) this.parent = parent;        else this.parent = null;        annotated = false;    }