C# Class FullInspector.BehaviorEditor

Mostra file Open project: jacobdufault/fullinspector Class Usage Examples

Public Methods

Method Description
Get ( Type behaviorType ) : IBehaviorEditor

Returns a behavior editor that can be used to edit the given behavior type.

Private Methods

Method Description
BehaviorEditor ( ) : System
CreateEditor ( Type behaviorType ) : IBehaviorEditor

Returns a set of property editors that can be used to edit the given property type.

SortByPropertyTypeRelevance ( List editors ) : void

If there are multiple user-defined property editors that report that they can edit a specific type, we sort the applicability of the property editor based on how close it's reported edited type is to the actual property type. This allows for, say, the IListPropertyEditor to override the ICollectionPropertyEditor.

Method Details

Get() public static method

Returns a behavior editor that can be used to edit the given behavior type.
public static Get ( Type behaviorType ) : IBehaviorEditor
behaviorType System.Type /// The type of behavior to edit. This should derive from BaseBehavior. ///
return IBehaviorEditor