ApexDoc icon indicating copy to clipboard operation
ApexDoc copied to clipboard

Enums treated as properties, not separate item.

Open davidhabib opened this issue 10 years ago • 2 comments

should they be in a separate section?

davidhabib avatar Jan 08 '15 00:01 davidhabib

+1 to giving it a separate section.

ceiroa avatar Jan 08 '15 15:01 ceiroa

The way Salesforce documents enums in the Apex Documentation, is they get their own page and table listing, where each value is listed along with a full description. For ApexDoc to support this, enums would need to be formatted something like:

/**
* @description contains possible actions for a trigger.
*/
public enum triggerAction {
/** @description value for the beforeInsert trigger event. */
beforeInsert, 
/** @description value for the beforeUpdate trigger event. */
beforeUpdate, 
/** @description value for the beforeDelete trigger event. */
beforeDelete,
// etc!! 
afterInsert, afterUpdate, afterDelete, afterUndelete}

none of the NPSP triggers are in this verbose format. they all are typically one one line like:

public enum triggerAction {beforeInsert, beforeUpdate, beforeDelete, afterInsert, afterUpdate, afterDelete, afterUndelete}

So I think this enhancement is low priority to implement. note that since the enum is listed as a property, the user can click on its signature and be taken to the actual enum declaration on the hosted source (ie, gitHub).

davidhabib avatar Jan 15 '15 21:01 davidhabib