Thought these live templates might be useful to other IDEA users!



This reminds me, here are some live templates work working with XDoclet that
I whipped up a while back. Not sure they're the best they could be, or
comprehensive, but that's what OSS is about right? ;)

--- xdc - Output an XDoclet create method
/**
 * @ejb:create-method
 */
public $TYPE$ ejbCreate($END$)
{
        return null;
}


--- xdf - XDoclet Persistent Field
/**
 * @ejb:persistent-field
 * @ejb:interface-method
 */
public abstract $TYPE$ get$EXPR$();

/**
 * @ejb:interface-method
 */
public abstract void set$EXPR$($TYPE$ value);

$END$


-- xdfg - XDoclet persistent Field (only Getter in interface)
/**
 * @ejb:persistent-field
 * @ejb:interface-method
 */
public abstract $TYPE$ get$EXPR$();

public abstract void set$EXPR$($TYPE$ value);

$END$


-- xdpk - XDoclet Primary Key field
/**
 * @ejb:pk-field
 * @ejb:persistent-field
 * @ejb:interface-method
 */
public abstract $TYPE$ get$EXPR$();

public abstract void set$EXPR$($TYPE$ value);

$END$



Enjoy!

-mike


Mike Cannon-Brookes :: [EMAIL PROTECTED]

Atlassian :: http://www.atlassian.com
     Supporting YOUR J2EE World



> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Rickard
> Oberg
> Sent: Sunday, November 18, 2001 9:53 PM
> To: Matt Baldree
> Cc: [EMAIL PROTECTED]
> Subject: Re: [Webwork-devel] interest check
>
>
> Matt Baldree wrote:
>
> > I am using WebWork on a project and the framework is working out real
> > well. The biggest need for me is a reference to the custom tags without
> > having to constantly reference examples and read the code. I know docs
> > are forthcoming which will help but inevitably you always
> forget some. I
> > was thinking about writing live templates for IntelliJ to
> facilitate JSP
> > creation. I would group them in a WebWork group. I know this will help
> > me and others quickly learn the tags and easily incorporate them in
> > future projects. I'm sure there will be other custom add-ons like this
> > that people would like to share. Thoughts?
>
> I wrote exactly that a month or so ago. Never got around to add it to
> CVS though. I'll do that on monday. And yes, it's very useful so you
> don't have to remember the tags and their properties and whatnot, and
> also minimizes the typing needed.
>
> /Rickard
>
> --
> Rickard �berg
>
>
>
> _______________________________________________
> Webwork-devel mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/webwork-devel


_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user


_______________________________________________
Eap-list mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-list

Reply via email to