              this.object = item
                if(this.incallbacks.onSelectReference)
                {
                    this.incallbacks.onSelectReference(this.propname, item)
                }
                var id = "addmodeldialog"
                var dialog = this.$$('#'+id)
                dialog.close()
            },

            ready: function()
            {
                this.dialogCallbacks =
                {
                    onSelect: this.onDialogSelect.bind(this)
                