|
List Info
Thread: improved CodeGeneration api
|
|
| improved CodeGeneration api |

|
2007-10-09 04:35:06 |
|
Hello,
md_projects.patch (apply inside Core/src/MonoDevelop.Projects) --------------------------------------------------- * additional IInsertionLocation parameter for the AddMember and EncapsulateField command
the IInsertionLocation is used to specify where to insert a newly generated member, the parameter is optional if null, the default 'old39; behavior will be used
* EncapsulateFieldOptions class + parameter for the EncapsulateField method
allows to specify if a getter, setter or both must be generated, and also specifies the accessibility of the property (also allows to set the accessibility of the getter and setter individually, this is not yet supported by the CodeDOM code generation, but it is added with an eye for the future)
* InsertionLocationCodon codon to register new InsertionLocations
* IRefactorer changes string GetPropertyName (RefactorerContext ctx, IClass cls, IField field); --> method used to allow IRefactorers to override the property name suggested in the EncapsulateField dialog
int GetCurrentInsertionPosition (IEditableTextFile buffer, IClass cls); int GetAfterLastFieldInsertionPosition (IEditableTextFile buffer, IClass cls); int GetAfterLastEventInsertionPosition (IEditableTextFile buffer, IClass cls);
int GetAfterLastPropertyInsertionPosition (IEditableTextFile buffer, IClass cls); int GetAfterLastMethodInsertionPosition (IEditableTextFile buffer, IClass cls); int GetAfterLastConstructorInsertionPosition (IEditableTextFile buffer, IClass cls);
--> additional methods required to support the default InsertionLocations (see next item)
* default InsertionLocations After constructor, After method, After property, After field, Current Position, After event
md_ide.patch (apply inside Core/src/MonoDevelop.Ide) --------------------------------------------------- small changes in the EncapsulateField dialog to make use of the updated API
Are the changes ok to commit ?
(changelogs are not yet added in the patch, as usual, i'll include them if the changes are approved)
-- Ben
|
|
|
[1]
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|