[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.webtools] Re: new proj wizard
|
- From: jkenny <jkenny3112000@xxxxxxxxx>
- Date: Tue, 06 Nov 2007 16:29:02 -0500
- Newsgroups: eclipse.webtools
- Organization: EclipseCorner
- User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.13) Gecko/20060414
found this from Konstantin online (I'll try it out):
The API that you need is in org.eclipse.wst.server.core. You first need
to retrieve the IRuntimeType object that corresponds to the tomcat
runtime of the appropriate version. You can do that using the ServerCore
class. Once you have the IRuntimeType object, it has a factory method
for creating an IRuntimeWorkingCopy. You create the working copy, fill
it out and use the save method to persist your changes. That adds the
runtime to the workspace. Also, make sure to call validate prior to
calling save to make sure that you are not saving a mis-configured runtime.