|
Re: How to define a custom ArtifactEdit? [message #157553 is a reply to message #157543] |
Fri, 20 January 2006 18:50 |
Eclipse User |
|
|
|
Originally posted by: daniel.rohe.stud.tu-ilmenau.de
Lefty A. Rivera schrieb:
> I'm looking for any documentation to define custom ArtifactEdits for
> Spring and Hibernate configuration files.
I've extended the WebArtifactEdit and created the same constructors as
in WebArtifactEdit, the four static methods
get*ArtifactEditFor*(IProject) and
get*ArtifactEditFor*(IVirtualComponent) for retrieving my ArtifactEdit
and the two methods createArtifactEditFor*(IVirtualComponent) to return
my ArtifactEdit for a Struts project. Then I've introduced some methods
to work with the Controller-Servlet and Servlet-Mapping therefor. It is
in CVS under http://sourceforge.net/projects/strutsbox. There is also a
Project Facet for Struts and more.
My problem currently is the EMF model of the configuration file. The
model is stored in an XML file (typically with .xml extension) which
name is configured in the WebApp. To use the correct Resource.Factory I
must update the Resource.Factory.Registry of the ResourceSet with the
configured filename and my Resource.Factory, but I don't know how :-(.
Maybe I have to extend an EditModel or something else, so here I need
some documentation, too.
Kind regards,
Daniel
|
|
|
Powered by
FUDForum. Page generated in 0.03596 seconds