/// class ProspectDirector.Web.UI.FeatureSets.JsonTargetEditorDialog
/// using ProspectDirector.Web.UI.FeatureSets.TargetEditorDialog

ProspectDirector.Web.UI.FeatureSets.JsonTargetEditorDialog = ProspectDirector.Web.UI.FeatureSets.TargetEditorDialog.extend({

    //================================
    // PROTECTED OVERRIDDEN METHODS
    //================================

    _getArbiter: function () {

        var data = this.get_options().data

        return {
            "initialized": false,
            "arbiter": {
                type: "ProspectDirector.Web.UI.FeatureSets.JsonArbiter",
                targetType: data.targetType,
                json: JSON.stringify(data.targetData),
                attributes: data.attributes
            }
        };

    }

});

//================================
// SHARED METHODS
//================================

/**
@method open
@static
@return {Web.UI.Canvas.PropertiesDialog}
**/
ProspectDirector.Web.UI.FeatureSets.JsonTargetEditorDialog.open = function (options) {
    return new ProspectDirector.Web.UI.FeatureSets.JsonTargetEditorDialog(options);
};