MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
kukeltje
Post subject: more intelligent wizzards  PostPosted: Aug 02, 2003 - 02:08 AM
Registered Member
Registered Member


Joined: Jul 22, 2003
Posts: 79

Hi,

Isn't it possible to make the j2ee wizzards more intelligent by giving them knowledge which app-servers are 'enabled' and add the right xdoclet config in advance? Including e.g. version numbers on the specific jboss version attribute? Especially new customers would be able to get a quicker start.

Ronald
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-scott
Post subject:   PostPosted: Aug 02, 2003 - 02:22 AM
Moderator
Moderator


Joined: May 06, 2003
Posts: 6760

Ronald,

That's an interesting enhancement idea. Of course, it's still dependent on the user adding the appropriate application server-specific doclet(s) to their projects. And, it also assumes that the users configured their servers fully before running the wizards. Unfortunately, the way the wizard template system works, the files are basically static, but minor substitutions are performed on them when the final class is generated. The flexibility to do what you're suggesting would require a rather large enhancement.

However, you can add your own templates to the system and extend them with the XDoclet tags if you'd like to create your own custom templates, based on the provided versions. This might worthwhile if you find yourself using the wizards a lot and then spending substantial time changing the generated content to suite your needs. Our wizards are a mildly enhanced version of the Aston wizards and while we don't provide the instructions on adding your own templates as part of the Help system, the documenation is provided in <MyEclipseInstallDir>/eclipse/plugins/com.genuitec.eclipse.wizards_<version>/docs. However, please be very careful if you choose to go down this path. :-)

--Scott
MyEclipse Support

_________________
--Scott
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
kukeltje
Post subject:   PostPosted: Aug 03, 2003 - 08:12 PM
Registered Member
Registered Member


Joined: Jul 22, 2003
Posts: 79

Scott,

Quote:
That's an interesting enhancement idea. Of course, it's still dependent on the user adding the appropriate application server-specific doclet(s) to their projects. And, it also assumes that the users configured their servers fully before running the wizards.


Hmm.. I just hoped e.g. the ejb wizard could
- add the default ejbdoclet
- detect a configured server
- add the right server specific xdoclet (and maybe setting some properties on e.g. the version)

Quote:
Unfortunately, the way the wizard template system works, the files are basically static, but minor substitutions are performed on them when the final class is generated.


It's not so much generating the default classes with xdoclet tags, but a preconfigured xdoclet-build.xml file

Quote:
The flexibility to do what you're suggesting would require a rather large enhancement.


Ok... to bad but not the end of the world :-)

Quote:
However, you can add your own templates to the system and extend them with the XDoclet tags if you'd like to create your own custom templates, based on the provided versions......<cut/>......... However, please be very careful if you choose to go down this path. :-)


I'll definately give it a try. We have some requirements for ejb's (like extending a baseclass we have) that an extended template doesn't provided a greater development speed, but a greater compliancy with our requirements (which we check afterwards with checkstyle anyway)

Ronald
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-scott
Post subject:   PostPosted: Aug 04, 2003 - 02:06 AM
Moderator
Moderator


Joined: May 06, 2003
Posts: 6760

Ronald,

Quote:

I'll definately give it a try. We have some requirements for ejb's (like extending a baseclass we have) that an extended template doesn't provided a greater development speed, but a greater compliancy with our requirements (which we check afterwards with checkstyle anyway)

If you need to extend your own base classes, and then you check for this with checkstyle, then creating your own templates is definately the way to go. You'll see that it really isn't very hard at all, and it will definately keep you in compliance much easier than remembering to edit them afterward.

--Scott
MyEclipse Support

_________________
--Scott
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits