>From what I remember you can also use snippet variables in HomeSite+ to make
this simpler. I know you can in cfeclipse because I wrote it, but I took the
idea from Homesite.
e.g.
The following snippet will generate a getter/setter pair and prompt you for
the property name and type:
<cffunction name="get$${property}" access="public" returnType="$${type}"
output="false">
<cfreturn variables.instance.$${property} />
</cffunction>
<cffunction name="set$${property} access="public" returnType="void"
outpute="false">
<cfargument name="$${property}" required="true" type="$${type}" />
<cfset variables.instance.$${property} = arguments.$${property} />
</cffunction>
It sure beats the hell out of typing it all out by hand.
Spike
--------------------------------------------
Stephen Milligan
Code poet for hire
http://www.spike.org.uk
Do you cfeclipse? http://cfeclipse.tigris.org
>-----Original Message-----
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED] On Behalf Of Sean Corfield
>Sent: Monday, July 12, 2004 3:08 PM
>To: [EMAIL PROTECTED]
>Subject: Re: [CFCDev] Beans: Explicit vs Implicit arguments?
>
>There are also plugins for both DW and HS that automate bean
>generation. I found the DW one on the Macromedia Developer Exchange...
>
>On Mon, 12 Jul 2004 12:40:41 -0700, Barney Boisvert
><[EMAIL PROTECTED]> wrote:
>> If mindless repetition of code is the stumbling block for
>actually using
>> beans, that's something that can definitely be beaten by the
>computer.
>----------------------------------------------------------
>You are subscribed to cfcdev. To unsubscribe, send an email
>to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev'
>in the message of the email.
>
>CFCDev is run by CFCZone (www.cfczone.org) and supported
>by Mindtool, Corporation (www.mindtool.com).
>
>An archive of the CFCDev list is available at
>www.mail-archive.com/[EMAIL PROTECTED]
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev'
in the message of the email.
CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).
An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]