Code Generator Settings

Help index


These settings affect the code which is generated from the SystemBrowser's "Generate Code"- and the UIPainter's "Generate Aspect Methods"-menu items.

Generate Comments

If on, commented code is generated. That is nice for newcomers, as it describes what should be changed in the generated (template) code.
It might be anoying to more experienced users, these tend to not like and remove the comments.

Generate Comments for Getters

Same, but specific for generated getters. If the general "Generate Comments" flag is off, this setting has no effect.

Generate Comments for Setters

Same, but specific for generated setters. If the general "Generate Comments" flag is off, this setting has no effect.

Example

As an example, without comments, a generated aspect method from the UIPainter would be:

    nameSpaceHolder
	<resource: #uiAspect>

	nameSpaceHolder isNil ifTrue:[
	    nameSpaceHolder := lastNamespace asValue.
	].
	^ nameSpaceHolder.

whereas with comments, it generates:

    nameSpaceHolder
	<resource: #uiAspect>

	"automatically generated by UIPainter ..."

	"*** the code below creates a default model when invoked."
	"*** (which may not be the one you wanted)"
	"*** Please change as required and accept it in the browser."
	"*** (and replace this comment by something more useful ;-)"

	nameSpaceHolder isNil ifTrue:[
	    nameSpaceHolder := ValueHolder new.
    "/ if your app needs to be notified of changes, uncomment one of the lines below:
    "/       nameSpaceHolder addDependent:self.
    "/       nameSpaceHolder onChangeSend:#nameSpaceHolderChanged to:self.
	].
	^ nameSpaceHolder.




Copyright © 1999 eXept Software AG, all rights reserved


Doc $Revision: 1.3 $ $Date: 2011/07/04 14:59:24 $