|
Dan, You can use templates to do this in WDSc 5.0, WSSD 5.0 and WSAD 5.0. Templates are used in conjunction with the content assist feature to insert blocks of code. For example: In the Java editor enter public and then press Ctrl + Space. Select public_method from the list of suggestions and you get a basic public method. The cursor is initially positioned over the return type, so just start entering the return type then press tab to enter the method name and tab once more to enter the parameters. To customize the code that gets inserted go to Window -> Preferences then Java -> Templates. Here you can add, remove and modify templates. For example you could add a customized JavaDoc comment for the public method. IMHO templates are better for this than a full blown wizard because: a. You don't have to start a full GUI wizard (quicker once you get used to them) b. They are customizable and you can easily add your own. I can't remember off hand if this was in the V4.0 based tools or not (and I don't have access to a machine with V4.0 installed right now.) Don Yantzi WebSphere Development Studio Client for iSeries IBM Toronto Lab Phone: (905) 413-4476 IBM internal: IBMCA(yantzi) - Internet: yantzi@xxxxxxxxxx "Eyers, Daniel" <daniel.eyers@xxxxx To: "'Java Programming on and around the iSeries / AS400'" well.com> <java400-l@xxxxxxxxxxxx> Sent by: cc: java400-l-bounces@x Subject: Websphere studio / Eclipse idrange.com 07/05/2003 10:56 AM Please respond to Java Programming on and around the iSeries / AS400 Is there anywhere to tell eclipse to add a member to a class??? VAJ had a nice dialog box that had modifiers and generated Javadoc headers. Seems like it should be there..... thanks dan _______________________________________________ This is the Java Programming on and around the iSeries / AS400 (JAVA400-L) mailing list To post a message email: JAVA400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo.cgi/java400-l or email: JAVA400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/java400-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.